Skip to contentSkip to conversation

OSD Hardware questions

DISCUSSION Stefan Priebe - Profihost AG 5 participants 26 messages Jun 27, 2012 – Jun 29, 2012 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello list,

i'm still thinking about optimal OSD hardware and while reading through the mailinglist and wiki had some questions.

I want to use SSD so my idea was to use a fast single socket cpu with 8-10 SSD disks per OSD.

I got the following recommandations through the mailinglist:
"Dual socket servers will be overkill given the setup you're describing. Our WAG rule of thumb is 1GHz of modern CPU per OSD daemon. You might consider it if you decided you wanted to do an OSD per disk instead (that's a more common configuration, but it requires more CPU and RAM per disk and we don't know yet which is the better choice)."

but in my tests i see a CPU usage of 160% + 15% kworker per OSD Daemon on a 3,6ghz intel xeon CPU. That's far away of 1GHz per OSD. That's around 6,3Ghz per OSD. Is anything wrong here?

When i want to use 8-10 SSD Disks i need around 20 cores with 3,6Ghz. But there is no single socket with 20 cores with 3,6Ghz.

Or should i consider using a Raid 5 or 6?

Anything wrong?

Stefan

#1 lore raw
Quoted 19 lines · Stefan Priebe - Profihost AG

Hello list,

i'm still thinking about optimal OSD hardware and while reading through the mailinglist and wiki had some questions.

I want to use SSD so my idea was to use a fast single socket cpu with 8-10 SSD disks per OSD.

I got the following recommandations through the mailinglist:
"Dual socket servers will be overkill given the setup you're describing. Our WAG rule of thumb is 1GHz of modern CPU per OSD daemon. You might consider it if you decided you wanted to do an OSD per disk instead (that's a more common configuration, but it requires more CPU and RAM per disk and we don't know yet which is the better choice)."

but in my tests i see a CPU usage of 160% + 15% kworker per OSD Daemon on a 3,6ghz intel xeon CPU. That's far away of 1GHz per OSD. That's around 6,3Ghz per OSD. Is anything wrong here?

Quoted 8 lines

When i want to use 8-10 SSD Disks i need around 20 cores with 3,6Ghz. But there is no single socket with 20 cores with 3,6Ghz.

Or should i consider using a Raid 5 or 6?

Anything wrong?

Stefan

Hi Stefan,

I'm not entirely clear how you are coming to the conclusion regarding the CPU requirements. If we go by the "1Ghz per OSD" suggestion, does that mean you plan to have 3.6GHz*20/1GHz = 72 OSDs per server?

Having said that, not all CPU cores are created equal. Intel CPUs tend to be faster per clock than AMD CPUs, though AMD systems can potentially have more cores per node (16 per socket). If you are really planning on having 72 OSDs per node, other things are going to come into play including CPU interconnnect, raid controller performance, PCI bus, network throughput, etc. I'd strongly recommend sticking with smaller nodes unless you have the time/budget to test such large systems. I haven't gotten a chance to really dig into CPU utilization yet, but I'd say if you are going to go for big nodes you might try putting a single Xeon E5 into a dual socket motherboard and see how it works. If it's not fast enough stick the second CPU (and associated memory) in.

For what it's worth, I've got a pair of Dell R515 setup with a single 2.8GHz 6-core 4184 Opteron, 16GB of RAM, and 10 SSDs that are capable of about 200MB/s each. Currently I'm topping out at about 600MB/s with rados bench using half of the drives for data and half for journals (at 2x replication). Putting journals on the same drive and doing 10 OSDs on each node is slower. Still working on figuring out why.

In terms of raid, the big consideration between raid 5 and raid 6 is the potential for drive failure during a rebuild. Raid6 gives you extra protection at the cost of reduced capacity and performance. If you have a small array with small fast drives raid 5 might be fine. If you have a large array with many high capacity drives, 6 may be better.

Mark

#2 lore raw

Hi Mark,

Quoted 2 lines · Mark Nelson

For what it's worth, I've got a pair of Dell R515 setup with a single 2.8GHz 6-core 4184 Opteron, 16GB of RAM, and 10 SSDs that are capable of about 200MB/s each. Currently I'm topping out at about 600MB/s with rados bench using half of the drives for data and half for journals (at 2x replication). Putting journals on the same drive and doing 10 OSDs on each node is slower. Still working on figuring out why.

Just for fun, try the following tunings to see if they make a difference for you.

This is my current best tuning for my hardware, which uses 24 SAS drives/server, and 1 OSD/drive with a journal partition on the outer tracks and btrfs for the data store.

journal dio = true
osd op threads = 24
osd disk threads = 24
filestore op threads = 6
filestore queue max ops = 24

osd client message size cap = 14000000
ms dispatch throttle bytes = 17500000

I'd be very curious to hear how these work for you. My current testing load is streaming writes from 166 linux clients, and the above tunings let me sustain ~2 GB/s on each server (2x replication, so 500 MB/s per server aggregate client bandwidth).

I have dual-port 10 GbE NICs, and use one port for the cluster and one for the clients. I use jumbo frames because it freed up ~10% CPU cycles over the default config of 1500-byte frames + GRO/GSO/etc on the load I'm currently testing with.

FWIW these servers are dual-socket Intel 5675 Xeons, so total 12 cores at 3.0 GHz. On the above load I usually see 15-30% idle.

FWIW, "perf top" has this to say about where time is being spent under the above load under normal conditions.

PerfTop: 19134 irqs/sec kernel:79.2% exact: 0.0% [1000Hz cycles], (all, 24 CPUs)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

             samples  pcnt function                                       DSO
             _______ _____ ______________________________________________ ________________________________________________________________________________________

            37656.00 15.3% ceph_crc32c_le                                 /usr/bin/ceph-osd
            23221.00  9.5% copy_user_generic_string                       [kernel.kallsyms]
            16857.00  6.9% btrfs_end_transaction_dmeta                    /lib/modules/3.5.0-rc4-00011-g15d0694/kernel/fs/btrfs/btrfs.ko
            16787.00  6.8% __crc32c_le                                    [kernel.kallsyms]

But, sometimes I see this:

PerfTop: 4930 irqs/sec kernel:97.8% exact: 0.0% [1000Hz cycles], (all, 24 CPUs)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

             samples  pcnt function                                       DSO
             _______ _____ ______________________________________________ ________________________________________________________________________________________

           147565.00 45.8% _raw_spin_lock_irqsave                         [kernel.kallsyms]
            24427.00  7.6% isolate_freepages_block                        [kernel.kallsyms]
            23759.00  7.4% ceph_crc32c_le                                 /usr/bin/ceph-osd
            16521.00  5.1% copy_user_generic_string                       [kernel.kallsyms]
            10549.00  3.3% __crc32c_le                                    [kernel.kallsyms]
             8901.00  2.8% btrfs_end_transaction_dmeta                    /lib/modules/3.5.0-rc4-00011-g15d0694/kernel/fs/btrfs/btrfs.ko

When this happens, OSDs cannot process heartbeats in a timely fashion, get wrongly marked down, thrashing ensues, clients stall. I'm still trying to learn how to get perf to tell me more....

-- Jim

#12 lore raw
In reply to Mark Nelson

Hi Mark,

Quoted 7 lines

Am 27.06.2012 15:55, schrieb Mark Nelson:
On 6/27/12 8:04 AM, Stefan Priebe - Profihost AG wrote:
Hi Stefan,

I'm not entirely clear how you are coming to the conclusion regarding the CPU requirements. If we go by the "1Ghz per OSD" suggestion, does that mean you plan to have 3.6GHz*20/1GHz = 72 OSDs per server?

oh i'm sorry it seems you got me wrong. I've a testsetup 4x OSDs with one disk each in ONE Server with a Intel Xeon 3,6Ghz. Each of the 4 ceph-osd processes take up to 170% CPU usage right now. So with these 4 osd disks and daemons i go up to 800% load. So EACH osd process takes up to 2 cores of 3,6 Ghz.

So i need right now 2 Core of 3,6Ghz each per OSD drive. So if i want to use 8-10 drives per osd server i need 20 cores of 3,6Ghz.

Anything wrong?

Greets
Stefan

#3 lore raw
In reply to Jim Schutt

Am 27.06.2012 16:55, schrieb Jim Schutt:

Quoted 3 lines

This is my current best tuning for my hardware, which uses 24 SAS drives/server, and 1 OSD/drive with a journal partition on the outer tracks and btrfs for the data store.

Which raid level do you use?

Quoted 5 lines

I'd be very curious to hear how these work for you. My current testing load is streaming writes from 166 linux clients, and the above tunings let me sustain ~2 GB/s on each server (2x replication, so 500 MB/s per server aggregate client bandwidth).

10GBe max speed shoudl be around 1Gbit/s. Do i miss something?

Quoted 5 lines

I have dual-port 10 GbE NICs, and use one port for the cluster and one for the clients. I use jumbo frames because it freed up ~10% CPU cycles over the default config of 1500-byte frames + GRO/GSO/etc on the load I'm currently testing with.

Do you have ntuple and lro on or off? Which kernel version do you use and which driver version? Intel cards?

Stefan

#14 lore raw
In reply to a message not in the archive
Quoted 7 lines

Am 27.06.2012 17:21, schrieb Gregory Farnum:

Well, as we said, 1GHz/OSD was a WAG (wild-ass guess), but 3.6GHz+/OSD is farther outside of that range than I would have expected. It might just be a consequence of using SSDs, since they can sustain so much more throughput.

Sure it was just so much away from 1Ghz that i wanted to ask.

Quoted 1 line

What is the cluster doing when you see those CPU usage numbers?

random write I/O from one KVM. 14k I/Ops with random 4k writes.

Stefan

#10 lore raw
In reply to Jim Schutt
Quoted 18 lines · Jim Schutt

Hi Mark,

Quoted 7 lines · Mark Nelson

For what it's worth, I've got a pair of Dell R515 setup with a single 2.8GHz 6-core 4184 Opteron, 16GB of RAM, and 10 SSDs that are capable of about 200MB/s each. Currently I'm topping out at about 600MB/s with rados bench using half of the drives for data and half for journals (at 2x replication). Putting journals on the same drive and doing 10 OSDs on each node is slower. Still working on figuring out why.

Just for fun, try the following tunings to see if they make a difference for you.

This is my current best tuning for my hardware, which uses 24 SAS drives/server, and 1 OSD/drive with a journal partition on the outer tracks and btrfs for the data store.

Quoted 8 lines

journal dio = true
osd op threads = 24
osd disk threads = 24
filestore op threads = 6
filestore queue max ops = 24

osd client message size cap = 14000000
ms dispatch throttle bytes = 17500000

I will definitely give this a try when I can get back to it. I seem to remember getting a bit better performance when increasing filestore op threads, but I haven't tried fiddling with osd op/disk threads yet.

Quoted 13 lines

I'd be very curious to hear how these work for you. My current testing load is streaming writes from 166 linux clients, and the above tunings let me sustain ~2 GB/s on each server (2x replication, so 500 MB/s per server aggregate client bandwidth).

I have dual-port 10 GbE NICs, and use one port for the cluster and one for the clients. I use jumbo frames because it freed up ~10% CPU cycles over the default config of 1500-byte frames + GRO/GSO/etc on the load I'm currently testing with.

Quoted 3 lines

FWIW these servers are dual-socket Intel 5675 Xeons, so total 12 cores at 3.0 GHz. On the above load I usually see 15-30% idle.

Yeah, you definitely have more horsepower in your nodes than the ones I've got.

Quoted 41 lines

FWIW, "perf top" has this to say about where time is being spent under the above load under normal conditions.

PerfTop: 19134 irqs/sec kernel:79.2% exact: 0.0% [1000Hz cycles], (all, 24 CPUs)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

samples pcnt function DSO
_______ _____ ______________________________________________
________________________________________________________________________________________

37656.00 15.3% ceph_crc32c_le /usr/bin/ceph-osd 23221.00 9.5% copy_user_generic_string [kernel.kallsyms] 16857.00 6.9% btrfs_end_transaction_dmeta /lib/modules/3.5.0-rc4-00011-g15d0694/kernel/fs/btrfs/btrfs.ko 16787.00 6.8% __crc32c_le [kernel.kallsyms]

But, sometimes I see this:

PerfTop: 4930 irqs/sec kernel:97.8% exact: 0.0% [1000Hz cycles], (all, 24 CPUs)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

samples pcnt function DSO
_______ _____ ______________________________________________
________________________________________________________________________________________

147565.00 45.8% _raw_spin_lock_irqsave [kernel.kallsyms] 24427.00 7.6% isolate_freepages_block [kernel.kallsyms] 23759.00 7.4% ceph_crc32c_le /usr/bin/ceph-osd 16521.00 5.1% copy_user_generic_string [kernel.kallsyms] 10549.00 3.3% __crc32c_le [kernel.kallsyms]
8901.00 2.8% btrfs_end_transaction_dmeta /lib/modules/3.5.0-rc4-00011-g15d0694/kernel/fs/btrfs/btrfs.ko

Quoted 6 lines

When this happens, OSDs cannot process heartbeats in a timely fashion, get wrongly marked down, thrashing ensues, clients stall. I'm still trying to learn how to get perf to tell me more....

-- Jim

Thanks for doing this! I've been wanting to get perf going on our test boxes for ages but haven't had time to get the packages built yet for our gitbuilder kernels.

Try generating a call-graph ala: http://lwn.net/Articles/340010/

Mark

#15 lore raw
In reply to Stefan Priebe
Quoted 8 lines · Stefan Priebe
Quoted 7 lines

Am 27.06.2012 17:21, schrieb Gregory Farnum:

Well, as we said, 1GHz/OSD was a WAG (wild-ass guess), but 3.6GHz+/OSD is farther outside of that range than I would have expected. It might just be a consequence of using SSDs, since they can sustain so much more throughput.

Quoted 6 lines

Sure it was just so much away from 1Ghz that i wanted to ask.

Quoted 1 line

What is the cluster doing when you see those CPU usage numbers?

random write I/O from one KVM. 14k I/Ops with random 4k writes.

Stefan

I think I was seeing about 80-85% CPU utilization with 5 SSD OSDs on our 6-core AMD nodes, but I was just doing sequential writes with rados bench.

Mark

#4 lore raw
In reply to Stefan Priebe
Quoted 6 lines · Stefan Priebe

Am 27.06.2012 16:55, schrieb Jim Schutt:

Quoted 3 lines

This is my current best tuning for my hardware, which uses 24 SAS drives/server, and 1 OSD/drive with a journal partition on the outer tracks and btrfs for the data store.

Which raid level do you use?

No RAID. Each OSD directly accesses a single disk, via a partition for the journal and a partition for the btrfs file store for that OSD.

I've got my 24 drives spread across three 6 Gb/s SAS HBAs, so I can sustain ~90 MB/s per drive with all drives active, when writing to the outer tracks using dd.

I want to rely on Ceph for data protection via replication. At some point I expect to play around with the RAID0 support in btrfs to explore the performance relationship between number of OSDs and size of each OSD, but haven't yet.

Quoted 7 lines
Quoted 6 lines

I'd be very curious to hear how these work for you. My current testing load is streaming writes from 166 linux clients, and the above tunings let me sustain ~2 GB/s on each server (2x replication, so 500 MB/s per server aggregate client bandwidth).

10GBe max speed shoudl be around 1Gbit/s. Do i miss something?

Hmmm, not sure. My servers are limited by the bandwidth of the SAS drives and HBAs. So 2 GB/s aggregate disk bandwidth is 1 GB/s for journals and 1 GB/s for data. At 2x replication, that's 500 MB/s client data bandwidth.

Quoted 7 lines
Quoted 6 lines

I have dual-port 10 GbE NICs, and use one port for the cluster and one for the clients. I use jumbo frames because it freed up ~10% CPU cycles over the default config of 1500-byte frames + GRO/GSO/etc on the load I'm currently testing with.

Do you have ntuple and lro on or off? Which kernel version do you use and which driver version? Intel cards?

# ethtool -k eth2
Offload parameters for eth2:
rx-checksumming: on
tx-checksumming: on
scatter-gather: on
tcp-segmentation-offload: on
udp-fragmentation-offload: off
generic-segmentation-offload: on
generic-receive-offload: on
large-receive-offload: off

The NICs are Chelsio T4, but I'm not using any of the TCP stateful offload features for this testing. I don't know if they have ntuple support, but the ethtool version I'm using (2.6.33) doesn't mention it.

For kernels I switch back and forth between latest development kernel from Linus's tree, or latest stable kernel, depending on where the kernel development cycle is. I usually switch to the development kernel around -rc4 or so.

-- Jim

Quoted 4 lines

Stefan

#5 lore raw

Am 27.06.2012 um 19:23 schrieb "Jim Schutt" <[email protected]>:

Quoted 11 lines · Stefan Priebe
Quoted 6 lines

Am 27.06.2012 16:55, schrieb Jim Schutt:

Quoted 3 lines

This is my current best tuning for my hardware, which uses 24 SAS drives/server, and 1 OSD/drive with a journal partition on the outer tracks and btrfs for the data store.

Which raid level do you use?

No RAID. Each OSD directly accesses a single disk, via a partition for the journal and a partition for the btrfs file store for that OSD.

So you have 24 threads x 24 osds 576 threads running?

Quoted 10 lines

The NICs are Chelsio T4, but I'm not using any of the TCP stateful offload features for this testing. I don't know if they have ntuple support, but the ethtool version I'm using (2.6.33) doesn't mention it.

For kernels I switch back and forth between latest development kernel from Linus's tree, or latest stable kernel, depending on where the kernel development cycle is. I usually switch to the development kernel around -rc4 or so.

Crazy that this works for you. Btrfs is crashing to me in 20s while running full speed on ssd.

Stefan

#11 lore raw
In reply to Mark Nelson
Quoted 9 lines · Mark Nelson
Quoted 5 lines

I'm still
trying to learn how to get perf to tell me more....

-- Jim

Thanks for doing this! I've been wanting to get perf going on our test boxes for ages but haven't had time to get the packages built yet for our gitbuilder kernels.

Try generating a call-graph ala: http://lwn.net/Articles/340010/

That looks like exactly what I need.

Thanks!

I'll post when I've learned more.

-- Jim

Quoted 2 lines

Mark

#6 lore raw
In reply to Stefan Priebe
Quoted 8 lines · Stefan Priebe

Am 27.06.2012 um 19:23 schrieb "Jim Schutt"<[email protected]>:

Quoted 6 lines · Stefan Priebe
Quoted 5 lines

Am 27.06.2012 16:55, schrieb Jim Schutt:

Quoted 3 lines

This is my current best tuning for my hardware, which uses 24 SAS drives/server, and 1 OSD/drive with a journal partition on the outer tracks and btrfs for the data store.

Quoted 6 lines
Quoted 5 lines
Quoted 1 line

Which raid level do you use?

No RAID. Each OSD directly accesses a single disk, via a partition for the journal and a partition for the btrfs file store for that OSD.

So you have 24 threads x 24 osds 576 threads running?

Actually, when my 166-client test is running,
"ps -o pid,nlwp,args -C ceph-osd"
tells me that I typically have ~1200 threads/OSD.

Since NPTL uses a 1:1 threading model, I recently had to increase /proc/sys/kernel/pid_max from the default 32768 to get them all to fit.....

Quoted 6 lines
Quoted 6 lines

The NICs are Chelsio T4, but I'm not using any of the TCP stateful offload features for this testing. I don't know if they have ntuple support, but the ethtool version I'm using (2.6.33) doesn't mention it.

Quoted 7 lines
Quoted 5 lines

For kernels I switch back and forth between latest development kernel from Linus's tree, or latest stable kernel, depending on where the kernel development cycle is. I usually switch to the development kernel around -rc4 or so.

Crazy that this works for you. Btrfs is crashing to me in 20s while running full speed on ssd.

Hmmm. The only other obvious difference, based on what I remember from your other posts, is that you're testing against RBD, right? I've been testing exclusively with the Linux kernel client.

???

-- Jim

Quoted 8 lines

Stefan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw

Am 27.06.2012 20:38, schrieb Jim Schutt:

Quoted 3 lines

Actually, when my 166-client test is running,
"ps -o pid,nlwp,args -C ceph-osd"
tells me that I typically have ~1200 threads/OSD.

huh i see only 124 threads per OSD even with your settings.

Quoted 4 lines

Hmmm. The only other obvious difference, based on what I remember from your other posts, is that you're testing against RBD, right? I've been testing exclusively with the Linux kernel client.

right and SSD. So it might be some timing issues.

Stefan

#8 lore raw
Quoted 6 lines · Stefan Priebe

Am 27.06.2012 20:38, schrieb Jim Schutt:

Quoted 3 lines

Actually, when my 166-client test is running, "ps -o pid,nlwp,args -C ceph-osd"
tells me that I typically have ~1200 threads/OSD.

huh i see only 124 threads per OSD even with your settings.

FWIW:

2 threads/messenger (reader+writer):
166 clients
~200 OSD data peers (this depends on PG distribution/number) ~200 OSD heartbeat peers (ditto)
plus
24 OSD op threads (my tuning)
24 OSD disk threads (my tuning)
6 OSD filestore op threads (my tuning)

So, 2*566 + 54 = 1186 threads/OSD

Plus, there's various other worker threads, such as the timer, message dispatch threads, monitor/MDS messenger, etc.

Quoted 7 lines
Quoted 5 lines

Hmmm. The only other obvious difference, based on what I remember from your other posts, is that you're testing against RBD, right? I've been testing exclusively with the Linux kernel client.

right and SSD. So it might be some timing issues.

I guess so.

-- Jim

Quoted 4 lines

Stefan

#9 lore raw
Quoted 6 lines · Jim Schutt
Quoted 5 lines · Stefan Priebe

Am 27.06.2012 20:38, schrieb Jim Schutt:

Quoted 3 lines

Actually, when my 166-client test is running, "ps -o pid,nlwp,args -C ceph-osd"
tells me that I typically have ~1200 threads/OSD.

Quoted 8 lines
Quoted 1 line

huh i see only 124 threads per OSD even with your settings.

FWIW:

2 threads/messenger (reader+writer):
166 clients
~200 OSD data peers (this depends on PG distribution/number) ~200 OSD heartbeat peers (ditto)

~200 OSD peers because I have 12 such servers
with 24 OSDs each.

-- Jim

Quoted 27 lines

plus
24 OSD op threads (my tuning)
24 OSD disk threads (my tuning)
6 OSD filestore op threads (my tuning)

So, 2*566 + 54 = 1186 threads/OSD

Plus, there's various other worker threads, such as the timer, message dispatch threads, monitor/MDS messenger, etc.

Quoted 7 lines
Quoted 5 lines

Hmmm. The only other obvious difference, based on what I remember from your other posts, is that you're testing against RBD, right? I've been testing exclusively with the Linux kernel client.

right and SSD. So it might be some timing issues.

I guess so.

-- Jim

Quoted 4 lines

Stefan

#16 lore raw
In reply to Mark Nelson

Am 27.06.2012 18:00, schrieb Mark Nelson:

Quoted 8 lines · Stefan Priebe
Quoted 7 lines
Quoted 4 lines

Well, as we said, 1GHz/OSD was a WAG (wild-ass guess), but 3.6GHz+/OSD is farther outside of that range than I would have expected. It might just be a consequence of using SSDs, since they can sustain so much more throughput.

Sure it was just so much away from 1Ghz that i wanted to ask.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

What is the cluster doing when you see those CPU usage numbers?

random write I/O from one KVM. 14k I/Ops with random 4k writes.

Stefan

I think I was seeing about 80-85% CPU utilization with 5 SSD OSDs on our 6-core AMD nodes, but I was just doing sequential writes with rados bench.

While doing sequential writes i see pretty low CPU usage. Random writes is the problem.

Stefan

#17 lore raw
Quoted 15 lines · Stefan Priebe - Profihost AG

Am 27.06.2012 18:00, schrieb Mark Nelson:

Quoted 14 lines · Stefan Priebe
Quoted 12 lines
Quoted 5 lines

Well, as we said, 1GHz/OSD was a WAG (wild-ass guess), but 3.6GHz+/OSD is farther outside of that range than I would have expected. It might just be a consequence of using SSDs, since they can sustain so much more
throughput.

Sure it was just so much away from 1Ghz that i wanted to ask.

Quoted 1 line

What is the cluster doing when you see those CPU usage numbers?

random write I/O from one KVM. 14k I/Ops with random 4k writes.

Stefan

Quoted 8 lines
Quoted 3 lines

I think I was seeing about 80-85% CPU utilization with 5 SSD OSDs on our 6-core AMD nodes, but I was just doing sequential writes with rados bench.

While doing sequential writes i see pretty low CPU usage. Random writes is the problem.

Stefan

It would be interesting to see where all your CPU time is being spent. What benchmark are you using to do the random writes?

Mark

#18 lore raw

Hi,
maybe it can help, I'm doing same tests that stefan,
random write with 4K with 3 nodes with 5 osds (with 15K drives)
fio --filename=[disk] --direct=1 --rw=randwrite --bs=4k --size=100M --numjobs=50 --runtime=30 --group_reporting --name=file1

I can achieve 5500io/s (disks are not at 100%)

cpu is around 30%idle ( 8 cores E5420 @ 2.50GHz)

----- Mail original -----

De: "Mark Nelson" <[email protected]>
À: "Stefan Priebe - Profihost AG" <[email protected]>
Cc: "Gregory Farnum" <[email protected]>, [email protected] Envoyé: Jeudi 28 Juin 2012 16:38:32
Objet: Re: OSD Hardware questions

Quoted 15 lines · Stefan Priebe - Profihost AG

Am 27.06.2012 18:00, schrieb Mark Nelson:

Quoted 14 lines · Stefan Priebe
Quoted 12 lines
Quoted 5 lines

Well, as we said, 1GHz/OSD was a WAG (wild-ass guess), but 3.6GHz+/OSD is farther outside of that range than I would have expected. It might just be a consequence of using SSDs, since they can sustain so much more
throughput.

Sure it was just so much away from 1Ghz that i wanted to ask.

Quoted 1 line

What is the cluster doing when you see those CPU usage numbers?

random write I/O from one KVM. 14k I/Ops with random 4k writes.

Stefan

Quoted 8 lines
Quoted 3 lines

I think I was seeing about 80-85% CPU utilization with 5 SSD OSDs on our 6-core AMD nodes, but I was just doing sequential writes with rados bench.

While doing sequential writes i see pretty low CPU usage. Random writes is the problem.

Stefan

It would be interesting to see where all your CPU time is being spent. What benchmark are you using to do the random writes?

Mark

Signature · 30 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in 
the body of a message to [email protected] 
More majordomo info at http://vger.kernel.org/majordomo-info.html 



-- 

-- 



	

Alexandre D e rumier 

Ingénieur Systèmes et Réseaux 


Fixe : 03 20 68 88 85 

Fax : 03 20 68 90 88 


45 Bvd du Général Leclerc 59100 Roubaix 
12 rue Marivaux 75002 Paris 
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#19 lore raw
Quoted 8 lines · Alexandre DERUMIER

Hi,
maybe it can help, I'm doing same tests that stefan,
random write with 4K with 3 nodes with 5 osds (with 15K drives)
fio --filename=[disk] --direct=1 --rw=randwrite --bs=4k --size=100M --numjobs=50 --runtime=30 --group_reporting --name=file1

I can achieve 5500io/s (disks are not at 100%)

cpu is around 30%idle ( 8 cores E5420 @ 2.50GHz)

Have you tried adjusting 'osd op threads'? The default is 2, but bumping that to, say, 8, might give you better concurrency and throughput.

Quoted 2 lines · Mark Nelson

It would be interesting to see where all your CPU time is being spent. What benchmark are you using to do the random writes?

Definitely. Seeing perf/oprofile/whatever results for the osd under that workload would be very interesting! We need to get perf going in our testing environment...

sage

#20 lore raw
Quoted 2 lines
Quoted 2 lines

Have you tried adjusting 'osd op threads'? The default is 2, but bumping that to, say, 8, might give you better concurrency and throughput.

Not yet,I'll try that tomorrow

Quoted 3 lines
Quoted 3 lines

Definitely. Seeing perf/oprofile/whatever results for the osd under that workload would be very interesting! We need to get perf going in our testing environment...

I'm not an expert, but if you give me command line, I'll do it ;)

BTW : wip-flushmin improve a lot the performance with random write. I jump from 1500-2000 iop/s (with spikes/slowdown),to constant 5500 iop/s.
With btrfs, I see random write flushed each x seconds sequentially. (so it's really help with seeks)
But with xfs,I see constant random writes...(maybe it's an xfs bug...)

----- Mail original -----

De: "Sage Weil" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Gregory Farnum" <[email protected]>, [email protected], "Stefan Priebe - Profihost AG" <[email protected]> Envoyé: Jeudi 28 Juin 2012 17:33:31
Objet: Re: OSD Hardware questions

Quoted 8 lines · Alexandre DERUMIER

Hi,
maybe it can help, I'm doing same tests that stefan,
random write with 4K with 3 nodes with 5 osds (with 15K drives)
fio --filename=[disk] --direct=1 --rw=randwrite --bs=4k --size=100M --numjobs=50 --runtime=30 --group_reporting --name=file1

I can achieve 5500io/s (disks are not at 100%)

cpu is around 30%idle ( 8 cores E5420 @ 2.50GHz)

Have you tried adjusting 'osd op threads'? The default is 2, but bumping that to, say, 8, might give you better concurrency and throughput.

Quoted 2 lines · Mark Nelson

It would be interesting to see where all your CPU time is being spent. What benchmark are you using to do the random writes?

Definitely. Seeing perf/oprofile/whatever results for the osd under that workload would be very interesting! We need to get perf going in our testing environment...

sage

Signature · 22 lines
-- 



	

Alexandre D e rumier 

Ingénieur Systèmes et Réseaux 


Fixe : 03 20 68 88 85 

Fax : 03 20 68 90 88 


45 Bvd du Général Leclerc 59100 Roubaix 
12 rue Marivaux 75002 Paris 
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#21 lore raw
Quoted 4 lines · Alexandre DERUMIER
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Definitely. Seeing perf/oprofile/whatever results for the osd under that workload would be very interesting! We need to get perf going in our testing environment...

I'm not an expert, but if you give me command line, I'll do it ;)

Thanks to Mark's help, I'm now using:

perf record -g -a sleep 10
perf report --sort symbol --call-graph fractal,5 | more

-- Jim

#26 lore raw
In reply to Mark Nelson

Am 28.06.2012 16:38, schrieb Mark Nelson:

Quoted 7 lines · Stefan Priebe - Profihost AG
Quoted 4 lines

While doing sequential writes i see pretty low CPU usage. Random writes is the problem.

Stefan

It would be interesting to see where all your CPU time is being spent.

Correct - what do you need?

Quoted 1 line

What benchmark are you using to do the random writes?

in KVM VM:
export DISK=/dev/vda

fio --filename=$DISK --direct=1 --rw=randwrite --bs=4k --size=200G --numjobs=50 --runtime=90 --group_reporting --name=file1

Stefan

#25 lore raw
In reply to Alexandre DERUMIER

Am 28.06.2012 17:18, schrieb Alexandre DERUMIER:

Quoted 8 lines

Hi,
maybe it can help, I'm doing same tests that stefan,
random write with 4K with 3 nodes with 5 osds (with 15K drives)
fio --filename=[disk] --direct=1 --rw=randwrite --bs=4k --size=100M --numjobs=50 --runtime=30 --group_reporting --name=file1

I can achieve 5500io/s (disks are not at 100%)

cpu is around 30%idle ( 8 cores E5420 @ 2.50GHz)

mine is 25-30% idle? May be this is the limit? So our osds are the problem?

Stefan

#22 lore raw
In reply to Sage Weil

Am 28.06.2012 17:33, schrieb Sage Weil:

Quoted 2 lines

Have you tried adjusting 'osd op threads'? The default is 2, but bumping that to, say, 8, might give you better concurrency and throughput.

For me this doesn't change anything. I believe the ceph-osd processes are the problem. I mean i've 8 cores x 3,6Ghz and 4 ceph-osd processses use around 80%.

Quoted 7 lines
Quoted 2 lines · Mark Nelson

It would be interesting to see where all your CPU time is being spent. What benchmark are you using to do the random writes?

Definitely. Seeing perf/oprofile/whatever results for the osd under that workload would be very interesting! We need to get perf going in our testing environment...

I have it working. But even a call graph of 10s is around 120 000 lines long ?!

Stefan

#23 lore raw
Quoted 11 lines · Stefan Priebe

Am 28.06.2012 17:33, schrieb Sage Weil:

Quoted 2 lines

Have you tried adjusting 'osd op threads'? The default is 2, but bumping that to, say, 8, might give you better concurrency and throughput.

For me this doesn't change anything. I believe the ceph-osd processes are the problem. I mean i've 8 cores x 3,6Ghz and 4 ceph-osd processses use around 80%.

Quoted 4 lines
Quoted 2 lines · Mark Nelson

It would be interesting to see where all your CPU time is being spent. What benchmark are you using to do the random writes?

Quoted 7 lines
Quoted 3 lines

Definitely. Seeing perf/oprofile/whatever results for the osd under that workload would be very interesting! We need to get perf going in our testing environment...

I have it working. But even a call graph of 10s is around 120 000 lines long ?!

Stefan

What tool did you use to do the profiling?

Mark

#24 lore raw

Am 29.06.2012 13:37, schrieb Mark Nelson:

Quoted 15 lines · Stefan Priebe
Quoted 14 lines

Am 28.06.2012 17:33, schrieb Sage Weil:

Quoted 2 lines

Have you tried adjusting 'osd op threads'? The default is 2, but bumping that to, say, 8, might give you better concurrency and throughput.

For me this doesn't change anything. I believe the ceph-osd processes are the problem. I mean i've 8 cores x 3,6Ghz and 4 ceph-osd processses use around 80%.

Quoted 7 lines
Quoted 2 lines · Mark Nelson

It would be interesting to see where all your CPU time is being spent. What benchmark are you using to do the random writes?

Definitely. Seeing perf/oprofile/whatever results for the osd under that workload would be very interesting! We need to get perf going in our testing environment...

Quoted 6 lines
Quoted 4 lines

I have it working. But even a call graph of 10s is around 120 000 lines long ?!

Stefan

What tool did you use to do the profiling?

i used the perf tool bundled with the kernel source. I can send you the perf.data file if you want. But i don't see anything interesting. But maybe i've just used perf the wrong way.

Stefan