RBD fio Performance concerns
Quoted 2 lines · Sébastien Han
First of all, I would like to thank you for this well explained, structured and clear answer. I guess I got better IOPS thanks to the 10K disks.
10K RPM would bring your per-drive throughput (for 4K random writes)
up to 142 IOPS and your aggregate cluster throughput up to 1700.
This would predict a corresponding RADOSbench throughput somewhere
above 425 (how much better depending on write aggregation and cylinder affinity). Your RADOSbench 708 now seems even more reasonable.
Quoted 3 lines
To be really honest I wasn't so concerned about the RADOS benchmarks but more about the RBD fio benchmarks and the amont of IOPS that comes out of it, which I found à bit to low.
Sticking with 4K random writes, it looks to me like you were running fio with libaio (which means direct, no buffer cache). Because it is direct, every I/O operation is really happening and the best sustained throughput you should expect from this cluster is the aggregate raw fio 4K write throughput (1700 IOPS) divided by two copies = 850 random 4K writes per second. If I read the output correctly you got 763 or about 90% of back-of-envelope.
BUT, there are some footnotes (there always are with performance)
If you had been doing buffered I/O you would have seen a lot more (up front) benefit from page caching ... but you wouldn't have been measuring real (and hence sustainable) I/O throughput ... which is ultimately limited by the heads on those twelve disk drives, where all of those writes ultimately wind up. It is easy to be fast if you aren't really doing the writes :-)
I would have expected write aggregation and cylinder affinity to have eliminated some seeks and improved rotational latency resulting in better than theoretical random write throughput. Against those expectations 763/850 IOPS is not so impressive. But, it looks to me like you were running fio in a 1G file with 100 parallel requests. The default RBD stripe width is 4M. This means that those 100 parallel requests were being spread across 256 (1G/4M) objects. People in the know tell me that writes to a single object are serialized, which means that many of those (potentially) parallel writes were to the same object, and hence serialized. This would increase the average request time for the colliding operations, and reduce the aggregate throughput correspondingly. Use a bigger file (or a narrower stripe) and this will get better.
Thus, getting 763 random 4K write IOPs out of those 12 drives still sounds about right to me.
Quoted 29 lines · Mark Kampe
Quoted 28 lines
Dear Sebastien,
Ross Turn forwarded me your e-mail. You sent a great deal of information, but it was not immediately obvious to me what your specific concern was.
You have 4 servers, 3 OSDs per, 2 copy, and you measured a radosbench (4K object creation) throughput of 2.9MB/s (or 708 IOPS). I infer that you were disappointed by this number, but it looks right to me.
Assuming typical 7200 RPM drives, I would guess that each of them would deliver a sustained direct 4K random write performance in the general neighborhood of:
4ms seek (short seeks with write-settle-downs) 4ms latency (1/2 rotation)
0ms write (4K/144MB/s ~ 30us)
-----
8ms or about 125 IOPSYour twelve drives should therefore have a sustainable aggregate direct 4K random write throughput of 1500 IOPS.
Each 4K object create involves four writes (two copies, each getting one data write and one data update). Thus I would expect a (crude) 4K create rate of 375 IOPS (1500/4).
Quoted 7 lines
Quoted 7 lines
You are getting almost twice the expected raw IOPS ... and we should expect that a large number of parallel operations would realize some write/seek aggregation benefits ... so these numbers look right to me.
Is this the number you were concerned about, or have I misunderstood?
--
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
Hello Mark,
First of all, thank you again for another accurate answer :-).
Quoted 5 lines
I would have expected write aggregation and cylinder affinity to have eliminated some seeks and improved rotational latency resulting in better than theoretical random write throughput. Against those expectations 763/850 IOPS is not so impressive. But, it looks to me like you were running fio in a 1G file with 100 parallel requests.
Quoted 8 lines
The default RBD stripe width is 4M. This means that those 100 parallel requests were being spread across 256 (1G/4M) objects. People in the know tell me that writes to a single object are serialized, which means that many of those (potentially) parallel writes were to the same object, and hence serialized. This would increase the average request time for the colliding operations, and reduce the aggregate throughput correspondingly. Use a bigger file (or a narrower stripe) and this will get better.
I followed your advice and used a bigger file (10G) and an iodepth of 128 and I've been able to reach ~27k iops for rand reads but I couldn't reach more than 870 iops in randwrites... It's kind of expected. But the thing a still don't understand is: why the sequential read/writes are lower than the randoms onces? Or maybe do I just need to care about the bandwidth for those values?
Thank you.
Regards.
--
Bien cordialement.
Sébastien HAN.
Quoted 49 lines · Mark Kampe
Quoted 3 lines · Sébastien Han
First of all, I would like to thank you for this well explained, structured and clear answer. I guess I got better IOPS thanks to the 10K disks.
10K RPM would bring your per-drive throughput (for 4K random writes) up to 142 IOPS and your aggregate cluster throughput up to 1700. This would predict a corresponding RADOSbench throughput somewhere above 425 (how much better depending on write aggregation and cylinder affinity). Your RADOSbench 708 now seems even more reasonable.
Quoted 3 lines
To be really honest I wasn't so concerned about the RADOS benchmarks but more about the RBD fio benchmarks and the amont of IOPS that comes out of it, which I found à bit to low.
Sticking with 4K random writes, it looks to me like you were running fio with libaio (which means direct, no buffer cache). Because it is direct, every I/O operation is really happening and the best sustained throughput you should expect from this cluster is the aggregate raw fio 4K write throughput (1700 IOPS) divided by two copies = 850 random 4K writes per second. If I read the output correctly you got 763 or about 90% of back-of-envelope.
BUT, there are some footnotes (there always are with performance)
If you had been doing buffered I/O you would have seen a lot more (up front) benefit from page caching ... but you wouldn't have been measuring real (and hence sustainable) I/O throughput ... which is ultimately limited by the heads on those twelve disk drives, where all of those writes ultimately wind up. It is easy to be fast if you aren't really doing the writes :-)
I would have expected write aggregation and cylinder affinity to have eliminated some seeks and improved rotational latency resulting in better than theoretical random write throughput. Against those expectations 763/850 IOPS is not so impressive. But, it looks to me like you were running fio in a 1G file with 100 parallel requests. The default RBD stripe width is 4M. This means that those 100 parallel requests were being spread across 256 (1G/4M) objects. People in the know tell me that writes to a single object are serialized, which means that many of those (potentially) parallel writes were to the same object, and hence serialized. This would increase the average request time for the colliding operations, and reduce the aggregate throughput correspondingly. Use a bigger file (or a narrower stripe) and this will get better.
Quoted 40 lines
Thus, getting 763 random 4K write IOPs out of those 12 drives still sounds about right to me.
Quoted 36 lines · Mark Kampe
Quoted 35 lines
Dear Sebastien,
Ross Turn forwarded me your e-mail. You sent a great deal of information, but it was not immediately obvious to me what your specific concern was.
You have 4 servers, 3 OSDs per, 2 copy, and you measured a radosbench (4K object creation) throughput of 2.9MB/s (or 708 IOPS). I infer that you were disappointed by this number, but it looks right to me.
Assuming typical 7200 RPM drives, I would guess that each of them would deliver a sustained direct 4K random write performance in the general neighborhood of:
4ms seek (short seeks with write-settle-downs) 4ms latency (1/2 rotation)
0ms write (4K/144MB/s ~ 30us)
-----
8ms or about 125 IOPSYour twelve drives should therefore have a sustainable aggregate direct 4K random write throughput of 1500 IOPS.
Each 4K object create involves four writes (two copies, each getting one data write and one data update). Thus I would expect a (crude) 4K create rate of 375 IOPS (1500/4).
You are getting almost twice the expected raw IOPS ... and we should expect that a large number of parallel operations would realize some write/seek aggregation benefits ... so these numbers look right to me.
Is this the number you were concerned about, or have I misunderstood?
--
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
Quoted 3 lines
Quoted 3 lines
why the
sequential read/writes are lower than the randoms onces? Or maybe do I just need to care about the bandwidth for those values?
If I remember, you use fio with 4MB block size for sequential. So it's normal that you have less ios, but more bandwith.
----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Mark Kampe" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Envoyé: Lundi 19 Novembre 2012 15:56:35
Objet: Re: RBD fio Performance concerns
Hello Mark,
First of all, thank you again for another accurate answer :-).
Quoted 5 lines
I would have expected write aggregation and cylinder affinity to have eliminated some seeks and improved rotational latency resulting in better than theoretical random write throughput. Against those expectations 763/850 IOPS is not so impressive. But, it looks to me like you were running fio in a 1G file with 100 parallel requests.
Quoted 8 lines
The default RBD stripe width is 4M. This means that those 100 parallel requests were being spread across 256 (1G/4M) objects. People in the know tell me that writes to a single object are serialized, which means that many of those (potentially) parallel writes were to the same object, and hence serialized. This would increase the average request time for the colliding operations, and reduce the aggregate throughput correspondingly. Use a bigger file (or a narrower stripe) and this will get better.
I followed your advice and used a bigger file (10G) and an iodepth of 128 and I've been able to reach ~27k iops for rand reads but I couldn't reach more than 870 iops in randwrites... It's kind of expected. But the thing a still don't understand is: why the sequential read/writes are lower than the randoms onces? Or maybe do I just need to care about the bandwidth for those values?
Thank you.
Regards.
Signature · 2 lines
Bien cordialement. Sébastien HAN.
Quoted 89 lines · Mark Kampe
Quoted 3 lines · Sébastien Han
First of all, I would like to thank you for this well explained, structured and clear answer. I guess I got better IOPS thanks to the 10K disks.
10K RPM would bring your per-drive throughput (for 4K random writes) up to 142 IOPS and your aggregate cluster throughput up to 1700. This would predict a corresponding RADOSbench throughput somewhere above 425 (how much better depending on write aggregation and cylinder affinity). Your RADOSbench 708 now seems even more reasonable.
Quoted 3 lines
To be really honest I wasn't so concerned about the RADOS benchmarks but more about the RBD fio benchmarks and the amont of IOPS that comes out of it, which I found à bit to low.
Sticking with 4K random writes, it looks to me like you were running fio with libaio (which means direct, no buffer cache). Because it is direct, every I/O operation is really happening and the best sustained throughput you should expect from this cluster is the aggregate raw fio 4K write throughput (1700 IOPS) divided by two copies = 850 random 4K writes per second. If I read the output correctly you got 763 or about 90% of back-of-envelope.
BUT, there are some footnotes (there always are with performance)
If you had been doing buffered I/O you would have seen a lot more (up front) benefit from page caching ... but you wouldn't have been measuring real (and hence sustainable) I/O throughput ... which is ultimately limited by the heads on those twelve disk drives, where all of those writes ultimately wind up. It is easy to be fast if you aren't really doing the writes :-)
I would have expected write aggregation and cylinder affinity to have eliminated some seeks and improved rotational latency resulting in better than theoretical random write throughput. Against those expectations 763/850 IOPS is not so impressive. But, it looks to me like you were running fio in a 1G file with 100 parallel requests. The default RBD stripe width is 4M. This means that those 100 parallel requests were being spread across 256 (1G/4M) objects. People in the know tell me that writes to a single object are serialized, which means that many of those (potentially) parallel writes were to the same object, and hence serialized. This would increase the average request time for the colliding operations, and reduce the aggregate throughput correspondingly. Use a bigger file (or a narrower stripe) and this will get better.
Thus, getting 763 random 4K write IOPs out of those 12 drives still sounds about right to me.
Quoted 36 lines · Mark Kampe
Quoted 35 lines
Dear Sebastien,
Ross Turn forwarded me your e-mail. You sent a great deal of information, but it was not immediately obvious to me what your specific concern was.
You have 4 servers, 3 OSDs per, 2 copy, and you measured a radosbench (4K object creation) throughput of 2.9MB/s (or 708 IOPS). I infer that you were disappointed by this number, but it looks right to me.
Assuming typical 7200 RPM drives, I would guess that each of them would deliver a sustained direct 4K random write performance in the general neighborhood of:
4ms seek (short seeks with write-settle-downs) 4ms latency (1/2 rotation)
0ms write (4K/144MB/s ~ 30us)
-----
8ms or about 125 IOPSYour twelve drives should therefore have a sustainable aggregate direct 4K random write throughput of 1500 IOPS.
Each 4K object create involves four writes (two copies, each getting one data write and one data update). Thus I would expect a (crude) 4K create rate of 375 IOPS (1500/4).
You are getting almost twice the expected raw IOPS ... and we should expect that a large number of parallel operations would realize some write/seek aggregation benefits ... so these numbers look right to me.
Is this the number you were concerned about, or have I misunderstood?
Signature · 7 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 -- 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
Quoted 2 lines
If I remember, you use fio with 4MB block size for sequential. So it's normal that you have less ios, but more bandwith.
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio
seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256
rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256
seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256
rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256
fio 1.59
Starting 4 processes
Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s]
seq-read: (groupid=0, jobs=1): err= 0: pid=15096
read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec
slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90
clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63
lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62
bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06
cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0 lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10%
rand-read: (groupid=1, jobs=1): err= 0: pid=16846
read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec
slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87
clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40
lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21
bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0
lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=18653
write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec
slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97
clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19
lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17
bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65, stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%, >=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0
lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60%
lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20%
rand-write: (groupid=3, jobs=1): err= 0: pid=20446
write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec
slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37
clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27
lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84
bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0
lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10%
lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s,
mint=60053msec, maxt=60053msec
Run status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s,
maxb=111425KB/s, mint=60005msec, maxt=60005msec
Run status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s,
mint=60725msec, maxt=60725msec
Run status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s,
mint=60822msec, maxt=60822msec
Disk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132,
in_queue=33434120, util=99.79%
Cheers!
--
Bien cordialement.
Sébastien HAN.
Quoted 139 lines · Alexandre DERUMIER
Quoted 3 lines
Quoted 3 lines
why the
sequential read/writes are lower than the randoms onces? Or maybe do I just need to care about the bandwidth for those values?If I remember, you use fio with 4MB block size for sequential. So it's normal that you have less ios, but more bandwith.
----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Mark Kampe" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Envoyé: Lundi 19 Novembre 2012 15:56:35
Objet: Re: RBD fio Performance concernsHello Mark,
First of all, thank you again for another accurate answer :-).
Quoted 5 lines
I would have expected write aggregation and cylinder affinity to have eliminated some seeks and improved rotational latency resulting in better than theoretical random write throughput. Against those expectations 763/850 IOPS is not so impressive. But, it looks to me like you were running fio in a 1G file with 100 parallel requests.
Quoted 8 lines
The default RBD stripe width is 4M. This means that those 100 parallel requests were being spread across 256 (1G/4M) objects. People in the know tell me that writes to a single object are serialized, which means that many of those (potentially) parallel writes were to the same object, and hence serialized. This would increase the average request time for the colliding operations, and reduce the aggregate throughput correspondingly. Use a bigger file (or a narrower stripe) and this will get better.
I followed your advice and used a bigger file (10G) and an iodepth of 128 and I've been able to reach ~27k iops for rand reads but I couldn't reach more than 870 iops in randwrites... It's kind of expected. But the thing a still don't understand is: why the sequential read/writes are lower than the randoms onces? Or maybe do I just need to care about the bandwidth for those values?
Thank you.
Regards.
--
Bien cordialement.
Sébastien HAN.Quoted 87 lines · Mark Kampe
Quoted 3 lines · Sébastien Han
First of all, I would like to thank you for this well explained, structured and clear answer. I guess I got better IOPS thanks to the 10K disks.
10K RPM would bring your per-drive throughput (for 4K random writes) up to 142 IOPS and your aggregate cluster throughput up to 1700. This would predict a corresponding RADOSbench throughput somewhere above 425 (how much better depending on write aggregation and cylinder affinity). Your RADOSbench 708 now seems even more reasonable.
Quoted 3 lines
To be really honest I wasn't so concerned about the RADOS benchmarks but more about the RBD fio benchmarks and the amont of IOPS that comes out of it, which I found à bit to low.
Sticking with 4K random writes, it looks to me like you were running fio with libaio (which means direct, no buffer cache). Because it is direct, every I/O operation is really happening and the best sustained throughput you should expect from this cluster is the aggregate raw fio 4K write throughput (1700 IOPS) divided by two copies = 850 random 4K writes per second. If I read the output correctly you got 763 or about 90% of back-of-envelope.
BUT, there are some footnotes (there always are with performance)
If you had been doing buffered I/O you would have seen a lot more (up front) benefit from page caching ... but you wouldn't have been measuring real (and hence sustainable) I/O throughput ... which is ultimately limited by the heads on those twelve disk drives, where all of those writes ultimately wind up. It is easy to be fast if you aren't really doing the writes :-)
I would have expected write aggregation and cylinder affinity to have eliminated some seeks and improved rotational latency resulting in better than theoretical random write throughput. Against those expectations 763/850 IOPS is not so impressive. But, it looks to me like you were running fio in a 1G file with 100 parallel requests. The default RBD stripe width is 4M. This means that those 100 parallel requests were being spread across 256 (1G/4M) objects. People in the know tell me that writes to a single object are serialized, which means that many of those (potentially) parallel writes were to the same object, and hence serialized. This would increase the average request time for the colliding operations, and reduce the aggregate throughput correspondingly. Use a bigger file (or a narrower stripe) and this will get better.
Thus, getting 763 random 4K write IOPs out of those 12 drives still sounds about right to me.
Quoted 34 lines · Mark Kampe
Quoted 33 lines
Dear Sebastien,
Ross Turn forwarded me your e-mail. You sent a great deal of information, but it was not immediately obvious to me what your specific concern was.
You have 4 servers, 3 OSDs per, 2 copy, and you measured a radosbench (4K object creation) throughput of 2.9MB/s (or 708 IOPS). I infer that you were disappointed by this number, but it looks right to me.
Assuming typical 7200 RPM drives, I would guess that each of them would deliver a sustained direct 4K random write performance in the general neighborhood of:
4ms seek (short seeks with write-settle-downs) 4ms latency (1/2 rotation)
0ms write (4K/144MB/s ~ 30us)
-----
8ms or about 125 IOPSYour twelve drives should therefore have a sustainable aggregate direct 4K random write throughput of 1500 IOPS.
Each 4K object create involves four writes (two copies, each getting one data write and one data update). Thus I would expect a (crude) 4K create rate of 375 IOPS (1500/4).
You are getting almost twice the expected raw IOPS ... and we should expect that a large number of parallel operations would realize some write/seek aggregation benefits ... so these numbers look right to me.
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Is this the number you were concerned about, or have I misunderstood?
--
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
--
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
Quoted 5 lines · S?bastien Han
Quoted 2 lines
If I remember, you use fio with 4MB block size for sequential. So it's normal that you have less ios, but more bandwith.
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
Small IOs striped over large objects tends to mean that many IOs may get piled up behind a single object at a time. There is a new striping feature in RBD that lets you stripe small blocks over larger objects to mitigate this, but it means slower performance the rest of the time, and is only really useful for specific workloads (e.g., database journal file/device).
sage
Quoted 242 lines
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=100.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.1% issued r/w/d: total=200473/0/0, short=0/0/0lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10% rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62 cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=100.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.1% issued r/w/d: total=1632349/0/0, short=0/0/0 lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01% seq-write: (groupid=2, jobs=1): err= 0: pid=18653 write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65, stdev=353.97 cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%, >=64=99.4% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.1% issued r/w/d: total=0/11171/0, short=0/0/0 lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20% rand-write: (groupid=3, jobs=1): err= 0: pid=20446 write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45 cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=99.9% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.1% issued r/w/d: total=0/52147/0, short=0/0/0 lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s,mint=60053msec, maxt=60053msec
Run status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s,maxb=111425KB/s, mint=60005msec, maxt=60005msec
Run status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s,
mint=60725msec, maxt=60725msecRun status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s,
mint=60822msec, maxt=60822msecDisk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132,
in_queue=33434120, util=99.79%Cheers!
--
Bien cordialement.
S?bastien HAN.Quoted 139 lines · Alexandre DERUMIER
Quoted 3 lines
Quoted 3 lines
why the
sequential read/writes are lower than the randoms onces? Or maybe do I just need to care about the bandwidth for those values?If I remember, you use fio with 4MB block size for sequential. So it's normal that you have less ios, but more bandwith.
----- Mail original -----
De: "S?bastien Han" <[email protected]>
?: "Mark Kampe" <[email protected]>
Cc: "ceph-devel" <[email protected]>
Envoy?: Lundi 19 Novembre 2012 15:56:35
Objet: Re: RBD fio Performance concernsHello Mark,
First of all, thank you again for another accurate answer :-).
Quoted 5 lines
I would have expected write aggregation and cylinder affinity to have eliminated some seeks and improved rotational latency resulting in better than theoretical random write throughput. Against those expectations 763/850 IOPS is not so impressive. But, it looks to me like you were running fio in a 1G file with 100 parallel requests.
Quoted 8 lines
The default RBD stripe width is 4M. This means that those 100 parallel requests were being spread across 256 (1G/4M) objects. People in the know tell me that writes to a single object are serialized, which means that many of those (potentially) parallel writes were to the same object, and hence serialized. This would increase the average request time for the colliding operations, and reduce the aggregate throughput correspondingly. Use a bigger file (or a narrower stripe) and this will get better.
I followed your advice and used a bigger file (10G) and an iodepth of 128 and I've been able to reach ~27k iops for rand reads but I couldn't reach more than 870 iops in randwrites... It's kind of expected. But the thing a still don't understand is: why the sequential read/writes are lower than the randoms onces? Or maybe do I just need to care about the bandwidth for those values?
Thank you.
Regards.
--
Bien cordialement.
S?bastien HAN.Quoted 87 lines · Mark Kampe
Quoted 3 lines · S?bastien Han
First of all, I would like to thank you for this well explained, structured and clear answer. I guess I got better IOPS thanks to the 10K disks.
10K RPM would bring your per-drive throughput (for 4K random writes) up to 142 IOPS and your aggregate cluster throughput up to 1700. This would predict a corresponding RADOSbench throughput somewhere above 425 (how much better depending on write aggregation and cylinder affinity). Your RADOSbench 708 now seems even more reasonable.
Quoted 3 lines
To be really honest I wasn't so concerned about the RADOS benchmarks but more about the RBD fio benchmarks and the amont of IOPS that comes out of it, which I found ? bit to low.
Sticking with 4K random writes, it looks to me like you were running fio with libaio (which means direct, no buffer cache). Because it is direct, every I/O operation is really happening and the best sustained throughput you should expect from this cluster is the aggregate raw fio 4K write throughput (1700 IOPS) divided by two copies = 850 random 4K writes per second. If I read the output correctly you got 763 or about 90% of back-of-envelope.
BUT, there are some footnotes (there always are with performance)
If you had been doing buffered I/O you would have seen a lot more (up front) benefit from page caching ... but you wouldn't have been measuring real (and hence sustainable) I/O throughput ... which is ultimately limited by the heads on those twelve disk drives, where all of those writes ultimately wind up. It is easy to be fast if you aren't really doing the writes :-)
I would have expected write aggregation and cylinder affinity to have eliminated some seeks and improved rotational latency resulting in better than theoretical random write throughput. Against those expectations 763/850 IOPS is not so impressive. But, it looks to me like you were running fio in a 1G file with 100 parallel requests. The default RBD stripe width is 4M. This means that those 100 parallel requests were being spread across 256 (1G/4M) objects. People in the know tell me that writes to a single object are serialized, which means that many of those (potentially) parallel writes were to the same object, and hence serialized. This would increase the average request time for the colliding operations, and reduce the aggregate throughput correspondingly. Use a bigger file (or a narrower stripe) and this will get better.
Thus, getting 763 random 4K write IOPs out of those 12 drives still sounds about right to me.
Quoted 34 lines · Mark Kampe
Quoted 33 lines
Dear Sebastien,
Ross Turn forwarded me your e-mail. You sent a great deal of information, but it was not immediately obvious to me what your specific concern was.
You have 4 servers, 3 OSDs per, 2 copy, and you measured a radosbench (4K object creation) throughput of 2.9MB/s (or 708 IOPS). I infer that you were disappointed by this number, but it looks right to me.
Assuming typical 7200 RPM drives, I would guess that each of them would deliver a sustained direct 4K random write performance in the general neighborhood of:
4ms seek (short seeks with write-settle-downs) 4ms latency (1/2 rotation)
0ms write (4K/144MB/s ~ 30us)
-----
8ms or about 125 IOPSYour twelve drives should therefore have a sustainable aggregate direct 4K random write throughput of 1500 IOPS.
Each 4K object create involves four writes (two copies, each getting one data write and one data update). Thus I would expect a (crude) 4K create rate of 375 IOPS (1500/4).
You are getting almost twice the expected raw IOPS ... and we should expect that a large number of parallel operations would realize some write/seek aggregation benefits ... so these numbers look right to me.
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Is this the number you were concerned about, or have I misunderstood?
--
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--
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
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects
2. distinct writes to a single RADOS object are serialized
Your sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 85 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=100.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.1% issued r/w/d: total=200473/0/0, short=0/0/0lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10% rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62 cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=100.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.1% issued r/w/d: total=1632349/0/0, short=0/0/0 lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01% seq-write: (groupid=2, jobs=1): err= 0: pid=18653 write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65, stdev=353.97 cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%, >=64=99.4% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.1% issued r/w/d: total=0/11171/0, short=0/0/0 lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20% rand-write: (groupid=3, jobs=1): err= 0: pid=20446 write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45 cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=99.9% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.1% issued r/w/d: total=0/52147/0, short=0/0/0 lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s,mint=60053msec, maxt=60053msec
Run status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s,maxb=111425KB/s, mint=60005msec, maxt=60005msec
Run status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s,mint=60725msec, maxt=60725msec
Run status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s,mint=60822msec, maxt=60822msec
Disk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132,in_queue=33434120, util=99.79%
@Sage, thanks for the info :)
@Mark:
Quoted 3 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio results if it's needed.
Quoted 5 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
I know why I use direct I/O. It's synthetic benchmarks, it's far away from a real life scenario and how common applications works. I just try to see the maximum I/O throughput that I can get from my RBD. All my applications use buffered I/O.
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
Thanks to all of you..
Quoted 124 lines · Mark Kampe
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects
2. distinct writes to a single RADOS object are serializedYour sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 104 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,Quoted 1 line
=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0 lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10% rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48,stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,Quoted 1 line
=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0 lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01% seq-write: (groupid=2, jobs=1): err= 0: pid=18653 write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65,stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%,Quoted 1 line
=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,Quoted 1 line
=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0 lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20% rand-write: (groupid=3, jobs=1): err= 0: pid=20446 write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21,stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,Quoted 1 line
=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0 lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s,mint=60053msec, maxt=60053msec
Run status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s,maxb=111425KB/s, mint=60005msec, maxt=60005msec
Run status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s,mint=60725msec, maxt=60725msec
Run status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s,mint=60822msec, maxt=60822msec
Disk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132,in_queue=33434120, util=99.79%
Quoted 1 line
Quoted 1 line
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
rand read 4K : 6000 iops
seq read 4K : 3500 iops
seq read 4M : 31iops (1gigabit client bandwith limit)
rand write 4k: 6000iops (tmpfs journal)
seq write 4k: 1600iops
seq write 4M : 31iops (1gigabit client bandwith limit)
I really don't understand why I can't get more rand read iops with 4K block ...
I try with high end cpu for client, it doesn't change nothing.
But test cluster use old 8 cores E5420 @ 2.50GHZ (But cpu is around 15% on cluster during read bench)
----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Mark Kampe" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]> Envoyé: Lundi 19 Novembre 2012 19:03:40
Objet: Re: RBD fio Performance concerns
@Sage, thanks for the info :)
@Mark:
Quoted 3 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio results if it's needed.
Quoted 5 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
I know why I use direct I/O. It's synthetic benchmarks, it's far away from a real life scenario and how common applications works. I just try to see the maximum I/O throughput that I can get from my RBD. All my applications use buffered I/O.
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
Thanks to all of you..
Quoted 13 lines · Mark Kampe
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects
2. distinct writes to a single RADOS object are serializedYour sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
Quoted 111 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 104 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0
lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10%
rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0
lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=18653
write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65, stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%,Quoted 1 line
=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0
lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20%
rand-write: (groupid=3, jobs=1): err= 0: pid=20446
write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0
lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%
Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s, mint=60053msec, maxt=60053msecRun status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s, maxb=111425KB/s, mint=60005msec, maxt=60005msecRun status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s, mint=60725msec, maxt=60725msecRun status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s, mint=60822msec, maxt=60822msecDisk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132, in_queue=33434120, util=99.79%
--
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
Which iodepth did you use for those benchs?
Quoted 1 line
I really don't understand why I can't get more rand read iops with 4K block ...
Me neither, hope to get some clarification from the Inktank guys. It doesn't make any sense to me...
--
Bien cordialement.
Sébastien HAN.
Quoted 48 lines · Alexandre DERUMIER
Quoted 1 line
Quoted 1 line
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
rand read 4K : 6000 iops
seq read 4K : 3500 iops
seq read 4M : 31iops (1gigabit client bandwith limit)rand write 4k: 6000iops (tmpfs journal)
seq write 4k: 1600iops
seq write 4M : 31iops (1gigabit client bandwith limit)I really don't understand why I can't get more rand read iops with 4K block ...
I try with high end cpu for client, it doesn't change nothing.
But test cluster use old 8 cores E5420 @ 2.50GHZ (But cpu is around 15% on cluster during read bench)----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Mark Kampe" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]> Envoyé: Lundi 19 Novembre 2012 19:03:40
Objet: Re: RBD fio Performance concerns@Sage, thanks for the info :)
@Mark:Quoted 3 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio results if it's needed.
Quoted 5 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
I know why I use direct I/O. It's synthetic benchmarks, it's far away from a real life scenario and how common applications works. I just try to see the maximum I/O throughput that I can get from my RBD. All my applications use buffered I/O.
Quoted 130 lines
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
Thanks to all of you..
Quoted 124 lines · Mark Kampe
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects
2. distinct writes to a single RADOS object are serializedYour sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 104 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0
lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10%
rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0
lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=18653
write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65, stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%,Quoted 1 line
=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0
lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20%
rand-write: (groupid=3, jobs=1): err= 0: pid=20446
write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0
lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%
Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s, mint=60053msec, maxt=60053msecRun status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s, maxb=111425KB/s, mint=60005msec, maxt=60005msecRun status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s, mint=60725msec, maxt=60725msecRun status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s, mint=60822msec, maxt=60822msecDisk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132, in_queue=33434120, util=99.79%
--
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
Hello Mark,
See below my benchmarks results:
-RADOS Bench with 4M block size write:
# rados -p bench bench 300 write -t 32 --no-cleanup Maintaining 32 concurrent writes of 4194304 bytes for at least 300 seconds.
2012-11-19 21:35:01.722143min lat: 0.255396 max lat: 8.40212 avg lat: 1.14076 sec Cur ops started finished avg MB/s cur MB/s last lat avg lat 300 32 8414 8382 111.737 104 0.502774 1.14076 Total time run: 300.814954 Total writes made: 8414 Write size: 4194304 Bandwidth (MB/sec): 111.883
Stddev Bandwidth: 7.4274 Max bandwidth (MB/sec): 132 Min bandwidth (MB/sec): 56 Average Latency: 1.14352 Stddev Latency: 1.18344 Max latency: 8.40212 Min latency: 0.255396
-RADOS Bench with 4M block size seq:
# rados -p bench bench 300 seq -t 32 --no-cleanup
2012-11-19 21:40:35.128728min lat: 0.224415 max lat: 6.14781 avg lat: 1.1591 sec Cur ops started finished avg MB/s cur MB/s last lat avg lat 300 31 8284 8253 110.021 108 1.87698 1.1591 Total time run: 300.931287 Total reads made: 8285 Read size: 4194304 Bandwidth (MB/sec): 110.125
Average Latency: 1.16177 Max latency: 6.14781 Min latency: 0.224415
-RBD FIO test, as you recommend I used 4M block size for seq tests for the first test. See below the fio configuration file used:
[global]
ioengine=libaio
iodepth=4
size=1G
runtime=60
filename=/dev/rbd1
[seq-read]
rw=read
bs=4M
stonewall
direct=1
[rand-read]
rw=randread
bs=4K
stonewall
direct=1
[seq-write]
rw=write
bs=4M
stonewall
direct=1
[rand-write]
rw=randwrite
bs=4K
stonewall
direct=1
Results iodepth 4 and 1G file:
# fio rbd-bench.fio
seq-read: (g=0): rw=read, bs=4M-4M/4M-4M, ioengine=libaio, iodepth=4
rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=4
seq-write: (g=2): rw=write, bs=4M-4M/4M-4M, ioengine=libaio, iodepth=4
rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=4
fio 1.59
Starting 4 processes
Jobs: 1 (f=1): [___w] [64.2% done] [0K/2588K /s] [0 /632 iops] [eta 01m:18s]
seq-read: (groupid=0, jobs=1): err= 0: pid=10586
read : io=1024.0MB, bw=110656KB/s, iops=27 , runt= 9476msec
slat (usec): min=250 , max=1812 , avg=389.88, stdev=178.26
clat (msec): min=37 , max=615 , avg=147.42, stdev=102.77
lat (msec): min=38 , max=615 , avg=147.81, stdev=102.77
bw (KB/s) : min=84216, max=122390, per=99.60%, avg=110208.50, stdev=9149.98
cpu : usr=0.00%, sys=0.97%, ctx=1552, majf=0, minf=4119
IO depths : 1=0.4%, 2=0.8%, 4=98.8%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
issued r/w/d: total=256/0/0, short=0/0/0 lat (msec): 50=4.69%, 100=31.64%, 250=50.78%, 500=11.72%, 750=1.17%
rand-read: (groupid=1, jobs=1): err= 0: pid=10868
read : io=161972KB, bw=2697.1KB/s, iops=674 , runt= 60036msec
slat (usec): min=12 , max=346 , avg=39.89, stdev=10.04
clat (usec): min=570 , max=50215 , avg=5885.64, stdev=12119.46
lat (usec): min=601 , max=50258 , avg=5926.07, stdev=12117.44
bw (KB/s) : min= 2015, max= 3356, per=100.15%, avg=2701.03, stdev=276.41
cpu : usr=0.51%, sys=2.14%, ctx=66054, majf=0, minf=26
IO depths : 1=0.1%, 2=0.1%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
issued r/w/d: total=40493/0/0, short=0/0/0
lat (usec): 750=3.69%, 1000=60.21%
lat (msec): 2=19.37%, 4=1.49%, 10=1.30%, 20=0.30%, 50=13.64%
lat (msec): 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=12619
write: io=1024.0MB, bw=112412KB/s, iops=27 , runt= 9328msec
slat (usec): min=510 , max=1683 , avg=820.63, stdev=150.32
clat (msec): min=47 , max=744 , avg=144.21, stdev=73.99
lat (msec): min=48 , max=744 , avg=145.03, stdev=74.00
bw (KB/s) : min=103193, max=124830, per=100.87%, avg=113390.71,
stdev=6178.93
cpu : usr=1.46%, sys=0.81%, ctx=267, majf=0, minf=21
IO depths : 1=0.4%, 2=0.8%, 4=98.8%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
issued r/w/d: total=0/256/0, short=0/0/0
lat (msec): 50=0.78%, 100=17.97%, 250=75.39%, 500=5.08%, 750=0.78%
rand-write: (groupid=3, jobs=1): err= 0: pid=12934
write: io=125352KB, bw=2088.1KB/s, iops=522 , runt= 60007msec
slat (usec): min=13 , max=388 , avg=50.47, stdev=13.73
clat (msec): min=1 , max=1271 , avg= 7.60, stdev=22.16
lat (msec): min=1 , max=1271 , avg= 7.66, stdev=22.16
bw (KB/s) : min= 155, max= 2944, per=102.13%, avg=2132.45, stdev=563.22
cpu : usr=0.45%, sys=1.87%, ctx=51594, majf=0, minf=19
IO depths : 1=0.1%, 2=0.1%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
issued r/w/d: total=0/31338/0, short=0/0/0
lat (msec): 2=5.84%, 4=59.28%, 10=12.47%, 20=15.83%, 50=5.72%
lat (msec): 100=0.30%, 250=0.44%, 500=0.07%, 750=0.02%, 1000=0.02%
lat (msec): 2000=0.01%Run status group 0 (all jobs):
READ: io=1024.0MB, aggrb=110655KB/s, minb=113311KB/s,
maxb=113311KB/s, mint=9476msec, maxt=9476msec
Run status group 1 (all jobs):
READ: io=161972KB, aggrb=2697KB/s, minb=2762KB/s, maxb=2762KB/s,
mint=60036msec, maxt=60036msec
Run status group 2 (all jobs):
WRITE: io=1024.0MB, aggrb=112411KB/s, minb=115109KB/s,
maxb=115109KB/s, mint=9328msec, maxt=9328msec
Run status group 3 (all jobs):
WRITE: io=125352KB, aggrb=2088KB/s, minb=2139KB/s, maxb=2139KB/s,
mint=60007msec, maxt=60007msec
Disk stats (read/write):
rbd1: ios=42707/33325, merge=0/0, ticks=439568/438892,
in_queue=878724, util=99.57%
With an iodepth of 64 and 10G file:
seq-read: (g=0): rw=read, bs=4M-4M/4M-4M, ioengine=libaio, iodepth=64
rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=64
seq-write: (g=2): rw=write, bs=4M-4M/4M-4M, ioengine=libaio, iodepth=64
rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=64 fio 1.59
Starting 4 processes
Jobs: 1 (f=1): [___w] [58.1% done] [0K/0K /s] [0 /0 iops] [eta 02m:57s]
seq-read: (groupid=0, jobs=1): err= 0: pid=25257
read : io=6564.0MB, bw=110816KB/s, iops=27 , runt= 60655msec
slat (usec): min=204 , max=287661 , avg=36605.14, stdev=63984.12
clat (msec): min=573 , max=5910 , avg=2305.13, stdev=715.03
lat (msec): min=712 , max=5938 , avg=2341.74, stdev=716.44
bw (KB/s) : min= 0, max=116819, per=61.34%, avg=67975.54, stdev=54174.75
cpu : usr=0.00%, sys=1.08%, ctx=10644, majf=0, minf=65559
IO depths : 1=0.1%, 2=0.1%, 4=0.2%, 8=0.5%, 16=1.0%, 32=2.0%, >=64=96.2%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=99.9%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.1%, >=64=0.0%
issued r/w/d: total=1641/0/0, short=0/0/0
lat (msec): 750=0.30%, 1000=0.37%, 2000=41.13%, >=2000=58.20%
rand-read: (groupid=1, jobs=1): err= 0: pid=27045
read : io=6170.6MB, bw=105242KB/s, iops=26310 , runt= 60039msec
slat (usec): min=9 , max=2456 , avg=26.68, stdev= 9.23
clat (usec): min=501 , max=42630 , avg=2403.11, stdev=1136.11
lat (usec): min=544 , max=42654 , avg=2430.20, stdev=1135.87
bw (KB/s) : min= 0, max=107376, per=65.94%, avg=69395.09, stdev=50034.68
cpu : usr=9.62%, sys=53.77%, ctx=1804080, majf=0, minf=86
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.1%, >=64=0.0%
issued r/w/d: total=1579662/0/0, short=0/0/0
lat (usec): 750=0.34%, 1000=2.07%
lat (msec): 2=38.96%, 4=51.17%, 10=7.37%, 20=0.08%, 50=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=28845
write: io=6776.0MB, bw=114538KB/s, iops=27 , runt= 60579msec
slat (usec): min=419 , max=237721 , avg=35415.33, stdev=60635.70
clat (msec): min=572 , max=6468 , avg=2229.49, stdev=935.01
lat (msec): min=695 , max=6469 , avg=2264.91, stdev=931.13
bw (KB/s) : min= 0, max=136533, per=61.73%, avg=70705.08, stdev=56037.47
cpu : usr=1.96%, sys=0.75%, ctx=623, majf=0, minf=21
IO depths : 1=0.1%, 2=0.1%, 4=0.2%, 8=0.5%, 16=0.9%, 32=1.9%, >=64=96.3%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=99.9%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.1%, >=64=0.0%
issued r/w/d: total=0/1694/0, short=0/0/0
lat (msec): 750=0.30%, 1000=0.47%, 2000=63.64%, >=2000=35.60%
rand-write: (groupid=3, jobs=1): err= 0: pid=30722
write: io=203724KB, bw=3250.5KB/s, iops=812 , runt= 62675msec
slat (usec): min=12 , max=589 , avg=50.66, stdev=12.44
clat (msec): min=1 , max=3603 , avg=78.65, stdev=242.01
lat (msec): min=1 , max=3603 , avg=78.70, stdev=242.01
bw (KB/s) : min= 0, max= 7001, per=70.93%, avg=2305.36, stdev=2413.85
cpu : usr=0.59%, sys=2.66%, ctx=81900, majf=0, minf=19
IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%, >=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.1%, >=64=0.0%
issued r/w/d: total=0/50931/0, short=0/0/0
lat (msec): 2=9.94%, 4=34.46%, 10=6.95%, 20=11.34%, 50=14.86%
lat (msec): 100=7.69%, 250=7.06%, 500=3.90%, 750=1.59%, 1000=0.73%
lat (msec): 2000=1.15%, >=2000=0.33%Run status group 0 (all jobs):
READ: io=6564.0MB, aggrb=110815KB/s, minb=113475KB/s,
maxb=113475KB/s, mint=60655msec, maxt=60655msec
Run status group 1 (all jobs):
READ: io=6170.6MB, aggrb=105242KB/s, minb=107768KB/s,
maxb=107768KB/s, mint=60039msec, maxt=60039msec
Run status group 2 (all jobs):
WRITE: io=6776.0MB, aggrb=114538KB/s, minb=117287KB/s,
maxb=117287KB/s, mint=60579msec, maxt=60579msec
Run status group 3 (all jobs):
WRITE: io=203724KB, aggrb=3250KB/s, minb=3328KB/s, maxb=3328KB/s,
mint=62675msec, maxt=62675msec
Disk stats (read/write):
rbd1: ios=1592951/64482, merge=0/0, ticks=12415028/12528984,
in_queue=24945216, util=99.68%
Thank you in advance.
Quoted 10 lines · Mark Kampe
Quoted 4 lines · Sébastien Han
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio results if it's needed.
Quoted 3 lines
Yes, please send me your 4M random and sequential write results both radosbench (or better smalliobench, which is more directly comparable) and fio to an RBD.
--
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
Quoted 1 line
Quoted 1 line
Which iodepth did you use for those benchs?
iodepth = 100
filesize = 1G, 10G, 30G , same result
(3 nodes,8 cores 2,5GHZ,32GB ram, with 6 osd each (15k drive) + journal on tmpfs)
Note that I can't get more than 6000 iops on a rbd device, but with more devices it's scale. (each fio is at 6000iops)
(I have same result with rbd module or with kvm guest)
----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]> Envoyé: Lundi 19 Novembre 2012 21:57:59
Objet: Re: RBD fio Performance concerns
Which iodepth did you use for those benchs?
Quoted 1 line
I really don't understand why I can't get more rand read iops with 4K block ...
Me neither, hope to get some clarification from the Inktank guys. It doesn't make any sense to me...
Signature · 2 lines
Bien cordialement. Sébastien HAN.
Quoted 48 lines · Alexandre DERUMIER
Quoted 1 line
Quoted 1 line
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
rand read 4K : 6000 iops
seq read 4K : 3500 iops
seq read 4M : 31iops (1gigabit client bandwith limit)rand write 4k: 6000iops (tmpfs journal)
seq write 4k: 1600iops
seq write 4M : 31iops (1gigabit client bandwith limit)I really don't understand why I can't get more rand read iops with 4K block ...
I try with high end cpu for client, it doesn't change nothing.
But test cluster use old 8 cores E5420 @ 2.50GHZ (But cpu is around 15% on cluster during read bench)----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Mark Kampe" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]> Envoyé: Lundi 19 Novembre 2012 19:03:40
Objet: Re: RBD fio Performance concerns@Sage, thanks for the info :)
@Mark:Quoted 3 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio results if it's needed.
Quoted 5 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
I know why I use direct I/O. It's synthetic benchmarks, it's far away from a real life scenario and how common applications works. I just try to see the maximum I/O throughput that I can get from my RBD. All my applications use buffered I/O.
Quoted 130 lines
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
Thanks to all of you..
Quoted 124 lines · Mark Kampe
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects
2. distinct writes to a single RADOS object are serializedYour sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 104 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0
lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10%
rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0
lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=18653
write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65, stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%,Quoted 1 line
=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0
lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20%
rand-write: (groupid=3, jobs=1): err= 0: pid=20446
write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0
lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%
Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s, mint=60053msec, maxt=60053msecRun status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s, maxb=111425KB/s, mint=60005msec, maxt=60005msecRun status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s, mint=60725msec, maxt=60725msecRun status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s, mint=60822msec, maxt=60822msecDisk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132, in_queue=33434120, util=99.79%
--
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: thanks for publishing your results as well :)
I also tried with different sizes and no difference.
Quoted 28 lines · Alexandre DERUMIER
Quoted 1 line
Quoted 1 line
Which iodepth did you use for those benchs?
iodepth = 100
filesize = 1G, 10G, 30G , same result
(3 nodes,8 cores 2,5GHZ,32GB ram, with 6 osd each (15k drive) + journal on tmpfs)
Note that I can't get more than 6000 iops on a rbd device, but with more devices it's scale. (each fio is at 6000iops)
(I have same result with rbd module or with kvm guest)
----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]> Envoyé: Lundi 19 Novembre 2012 21:57:59
Objet: Re: RBD fio Performance concernsWhich iodepth did you use for those benchs?
Quoted 1 line
I really don't understand why I can't get more rand read iops with 4K block ...
Quoted 186 lines
Me neither, hope to get some clarification from the Inktank guys. It doesn't make any sense to me...
--
Bien cordialement.
Sébastien HAN.Quoted 178 lines · Alexandre DERUMIER
Quoted 1 line
Quoted 1 line
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
rand read 4K : 6000 iops
seq read 4K : 3500 iops
seq read 4M : 31iops (1gigabit client bandwith limit)rand write 4k: 6000iops (tmpfs journal)
seq write 4k: 1600iops
seq write 4M : 31iops (1gigabit client bandwith limit)I really don't understand why I can't get more rand read iops with 4K block ...
I try with high end cpu for client, it doesn't change nothing.
But test cluster use old 8 cores E5420 @ 2.50GHZ (But cpu is around 15% on cluster during read bench)----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Mark Kampe" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]> Envoyé: Lundi 19 Novembre 2012 19:03:40
Objet: Re: RBD fio Performance concerns@Sage, thanks for the info :)
@Mark:Quoted 3 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio results if it's needed.
Quoted 5 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
I know why I use direct I/O. It's synthetic benchmarks, it's far away from a real life scenario and how common applications works. I just try to see the maximum I/O throughput that I can get from my RBD. All my applications use buffered I/O.
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
Thanks to all of you..
Quoted 124 lines · Mark Kampe
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects
2. distinct writes to a single RADOS object are serializedYour sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 104 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0
lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10%
rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0
lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=18653
write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65, stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%,Quoted 1 line
=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0
lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20%
rand-write: (groupid=3, jobs=1): err= 0: pid=20446
write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0
lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%
Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s, mint=60053msec, maxt=60053msecRun status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s, maxb=111425KB/s, mint=60005msec, maxt=60005msecRun status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s, mint=60725msec, maxt=60725msecRun status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s, mint=60822msec, maxt=60822msecDisk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132, in_queue=33434120, util=99.79%
--
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
Hi Guys,
I'm late to this thread but thought I'd chime in. Crazy that you are getting higher performance with random reads/writes vs sequential! It would be interesting to see what kind of throughput smalliobench reports (should be packaged in bobtail) and also see if this behavior happens with cephfs. It's still too early in the morning for me right now to come up with a reasonable explanation for what's going on. It might be worth running blktrace and seekwatcher to see what the io patterns on the underlying disk look like in each case. Maybe something unexpected is going on.
Mark
Quoted 188 lines · Sébastien Han
Which iodepth did you use for those benchs?
Quoted 1 line
I really don't understand why I can't get more rand read iops with 4K block ...
Me neither, hope to get some clarification from the Inktank guys. It doesn't make any sense to me...
--
Bien cordialement.
Sébastien HAN.Quoted 175 lines · Alexandre DERUMIER
Quoted 1 line
Quoted 1 line
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
rand read 4K : 6000 iops
seq read 4K : 3500 iops
seq read 4M : 31iops (1gigabit client bandwith limit)rand write 4k: 6000iops (tmpfs journal)
seq write 4k: 1600iops
seq write 4M : 31iops (1gigabit client bandwith limit)I really don't understand why I can't get more rand read iops with 4K block ...
I try with high end cpu for client, it doesn't change nothing.
But test cluster use old 8 cores E5420 @ 2.50GHZ (But cpu is around 15% on cluster during read bench)----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Mark Kampe" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]> Envoyé: Lundi 19 Novembre 2012 19:03:40
Objet: Re: RBD fio Performance concerns@Sage, thanks for the info :)
@Mark:Quoted 3 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio results if it's needed.
Quoted 5 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
I know why I use direct I/O. It's synthetic benchmarks, it's far away from a real life scenario and how common applications works. I just try to see the maximum I/O throughput that I can get from my RBD. All my applications use buffered I/O.
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
Thanks to all of you..
Quoted 121 lines · Mark Kampe
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects
2. distinct writes to a single RADOS object are serializedYour sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 101 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0
lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10%
rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0
lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=18653
write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65, stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%,Quoted 1 line
=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0
lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20%
rand-write: (groupid=3, jobs=1): err= 0: pid=20446
write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0
lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%
Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s, mint=60053msec, maxt=60053msecRun status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s, maxb=111425KB/s, mint=60005msec, maxt=60005msecRun status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s, mint=60725msec, maxt=60725msecRun status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s, mint=60822msec, maxt=60822msec
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Disk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132, in_queue=33434120, util=99.79%--
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
--
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
Responding to my own message. :)
Talked to Sage a bit offline about this. I think there are two opposing forces:
On one hand, random IO may be spreading reads/writes out across more OSDs than sequential IO that presumably would be hitting a single OSD more regularly.
On the other hand, you'd expect that sequential writes would be getting coalesced either at the RBD layer or on the OSD, and that the drive/controller/filesystem underneath the OSD would be doing some kind of readahead or prefetching.
On the third hand, maybe coalescing/prefetching is in fact happening but we are IOP limited by some per-osd limitation.
It could be interesting to do the test with a single OSD and see what happens.
Mark
Quoted 12 lines · Mark Nelson
Hi Guys,
I'm late to this thread but thought I'd chime in. Crazy that you are getting higher performance with random reads/writes vs sequential! It would be interesting to see what kind of throughput smalliobench reports (should be packaged in bobtail) and also see if this behavior happens with cephfs. It's still too early in the morning for me right now to come up with a reasonable explanation for what's going on. It might be worth running blktrace and seekwatcher to see what the io patterns on the underlying disk look like in each case. Maybe something unexpected is going on.
Quoted 211 lines
Mark
Quoted 207 lines · Sébastien Han
Which iodepth did you use for those benchs?
Quoted 2 lines
I really don't understand why I can't get more rand read iops with 4K block ...
Me neither, hope to get some clarification from the Inktank guys. It doesn't make any sense to me...
--
Bien cordialement.
Sébastien HAN.Quoted 53 lines · Alexandre DERUMIER
Quoted 2 lines
Quoted 2 lines
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
rand read 4K : 6000 iops
seq read 4K : 3500 iops
seq read 4M : 31iops (1gigabit client bandwith limit)rand write 4k: 6000iops (tmpfs journal)
seq write 4k: 1600iops
seq write 4M : 31iops (1gigabit client bandwith limit)I really don't understand why I can't get more rand read iops with 4K block ...
I try with high end cpu for client, it doesn't change nothing. But test cluster use old 8 cores E5420 @ 2.50GHZ (But cpu is around 15% on cluster during read bench)
----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Mark Kampe" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>
Envoyé: Lundi 19 Novembre 2012 19:03:40
Objet: Re: RBD fio Performance concerns@Sage, thanks for the info :)
@Mark:Quoted 3 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio results if it's needed.
Quoted 6 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
I know why I use direct I/O. It's synthetic benchmarks, it's far away from a real life scenario and how common applications works. I just try to see the maximum I/O throughput that I can get from my RBD. All my applications use buffered I/O.
Quoted 134 lines
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
Thanks to all of you..
Quoted 126 lines · Mark Kampe
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects
2. distinct writes to a single RADOS object are serializedYour sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 105 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0
lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10%
rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0
lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=18653
write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65, stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%,Quoted 1 line
=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0
lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20%
rand-write: (groupid=3, jobs=1): err= 0: pid=20446
write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0
lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%
Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s, mint=60053msec, maxt=60053msecRun status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s, maxb=111425KB/s, mint=60005msec, maxt=60005msecRun status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s, mint=60725msec, maxt=60725msecRun status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s, mint=60822msec, maxt=60822msecDisk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132, in_queue=33434120, util=99.79%--
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
--
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
Quoted 1 line
journal is running on tmpfs to me but that changes nothing.
I don't think it works then. According to the doc: Enables using libaio for asynchronous writes to the journal. Requires journal dio set to true.
Quoted 9 lines · Stefan Priebe - Profihost AG
Am 22.11.2012 11:49, schrieb Sébastien Han:
Quoted 3 lines
@Alexandre: cool!
@ Stefan: Full SSD cluster and 10G switches?
Yes
Quoted 6 lines
Quoted 2 lines
Couple of weeks ago I saw
that you use journal aio, did you notice performance improvement with it?journal is running on tmpfs to me but that changes nothing.
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
Quoted 4 lines
Quoted 4 lines
Haven't tested that. But does this makes sense? I mean data goes to Disk journal - same disk then has to copy the Data from part A to part B.
Why is this an advantage?
Well, if you are cpu limited, I don't think you can use all 8*35000iops by node. So, maybe a benchmark can tell us if the difference is really big.
Using tmpfs and ups can be ok, but if you have a kernel panic or hardware problem, you'll lost your journal.
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Mark Nelson" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]> Envoyé: Jeudi 22 Novembre 2012 16:01:56
Objet: Re: RBD fio Performance concerns
Am 22.11.2012 15:46, schrieb Mark Nelson:
Quoted 3 lines
I haven't played a whole lot with SSD only OSDs yet (other than noting last summer that iop performance wasn't as high as I wanted it). Is a second partition on the SSD for the journal not an option for you?
Haven't tested that. But does this makes sense? I mean data goes to Disk journal - same disk then has to copy the Data from part A to part B.
Why is this an advantage?
Stefan
Quoted 50 lines
Mark
Quoted 45 lines · Stefan Priebe - Profihost AG
Am 22.11.2012 15:37, schrieb Mark Nelson:
Quoted 2 lines
I don't think we recommend tmpfs at all for anything other than playing around. :)
I discussed this with somebody frmo inktank. Had to search the mailinglist. It might be OK if you're working with enough replicas and UPS.
I see no other option while working with SSDs - the only Option would be to be able to deaktivate the journal at all. But ceph does not support this.
Stefan
Quoted 31 lines · Stefan Priebe - Profihost AG
Quoted 28 lines
Hi,
can someone from inktank comment this? Might be using
/dev/ram0with an fs on it be better than tmpfs as we can use dio?Greets,
StefanQuoted 20 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Sébastien Han" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>
Envoyé: Jeudi 22 Novembre 2012 14:29:03
Objet: Re: RBD fio Performance concernsAm 22.11.2012 14:22, schrieb Sébastien Han:
Quoted 3 lines
And RAMDISK devices are too expensive.
It would make sense in your infra, but yes they are really expensive.
We need something like tmpfs - running in local memory but support dio.
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
Quoted 2 lines
Quoted 2 lines
But who cares? it's also on the 2nd node. or even on the 3rd if you have replicas 3.
Yes but you could also suffer a crash while writing the first replica. If the journal is in tmpfs, there is nothing to replay.
Quoted 3 lines · Alexandre DERUMIER
Quoted 3 lines
Quoted 3 lines
But who cares? it's also on the 2nd node. or even on the 3rd if you have replicas 3.
Hum sorry, you're right. Forget about what I said :)
Quoted 18 lines · Stefan Priebe - Profihost AG
I thought the Client would then write to the 2nd is this wrong?
Stefan
Am 22.11.2012 um 16:49 schrieb Sébastien Han <[email protected]>:
Quoted 12 lines
Quoted 2 lines
Quoted 2 lines
But who cares? it's also on the 2nd node. or even on the 3rd if you have replicas 3.
Yes but you could also suffer a crash while writing the first replica. If the journal is in tmpfs, there is nothing to replay.
Quoted 3 lines · Alexandre DERUMIER
Quoted 3 lines
Quoted 3 lines
But who cares? it's also on the 2nd node. or even on the 3rd if you have replicas 3.
--
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
Quoted 1 line
Quoted 1 line
We need something like tmpfs - running in local memory but support dio.
Maybe with ramdisk, /dev/ram0 ?
we can format it with standard filesystem (ext3,ext4,...) so maybe dio works with it ?
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Sébastien Han" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]> Envoyé: Jeudi 22 Novembre 2012 14:29:03
Objet: Re: RBD fio Performance concerns
Am 22.11.2012 14:22, schrieb Sébastien Han:
Quoted 3 lines
And RAMDISK devices are too expensive.
It would make sense in your infra, but yes they are really expensive.
We need something like tmpfs - running in local memory but support dio.
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
Quoted 2 lines
Quoted 2 lines
But who cares? it's also on the 2nd node. or even on the 3rd if you have replicas 3.
Yes, but rebuilding a dead node use cpu and ios. (but it should be benched too, to see the impact on the production)
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]>, "Mark Nelson" <[email protected]> Envoyé: Jeudi 22 Novembre 2012 16:28:57
Objet: Re: RBD fio Performance concerns
Am 22.11.2012 16:26, schrieb Alexandre DERUMIER:
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
Haven't tested that. But does this makes sense? I mean data goes to Disk journal - same disk then has to copy the Data from part A to part B.
Why is this an advantage?
Well, if you are cpu limited, I don't think you can use all 8*35000iops by node. So, maybe a benchmark can tell us if the difference is really big.
Using tmpfs and ups can be ok, but if you have a kernel panic or hardware problem, you'll lost your journal.
But who cares? it's also on the 2nd node. or even on the 3rd if you have replicas 3.
Stefan
Quoted 13 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Mark Nelson" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]> Envoyé: Jeudi 22 Novembre 2012 16:01:56
Objet: Re: RBD fio Performance concernsAm 22.11.2012 15:46, schrieb Mark Nelson:
Quoted 3 lines
I haven't played a whole lot with SSD only OSDs yet (other than noting last summer that iop performance wasn't as high as I wanted it). Is a second partition on the SSD for the journal not an option for you?
Quoted 57 lines
Haven't tested that. But does this makes sense? I mean data goes to Disk journal - same disk then has to copy the Data from part A to part B.
Why is this an advantage?
Stefan
Quoted 50 lines
Mark
Quoted 45 lines · Stefan Priebe - Profihost AG
Am 22.11.2012 15:37, schrieb Mark Nelson:
Quoted 2 lines
I don't think we recommend tmpfs at all for anything other than playing around. :)
I discussed this with somebody frmo inktank. Had to search the mailinglist. It might be OK if you're working with enough replicas and UPS.
I see no other option while working with SSDs - the only Option would be to be able to deaktivate the journal at all. But ceph does not support this.
Stefan
Quoted 31 lines · Stefan Priebe - Profihost AG
Quoted 28 lines
Hi,
can someone from inktank comment this? Might be using
/dev/ram0with an fs on it be better than tmpfs as we can use dio?Greets,
StefanQuoted 20 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Sébastien Han" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>
Envoyé: Jeudi 22 Novembre 2012 14:29:03
Objet: Re: RBD fio Performance concernsAm 22.11.2012 14:22, schrieb Sébastien Han:
Quoted 3 lines
And RAMDISK devices are too expensive.
It would make sense in your infra, but yes they are really expensive.
We need something like tmpfs - running in local memory but support dio.
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
I thought the Client would then write to the 2nd is this wrong?
Stefan
Am 22.11.2012 um 16:49 schrieb Sébastien Han <[email protected]>:
Quoted 12 lines
Quoted 2 lines
Quoted 2 lines
But who cares? it's also on the 2nd node. or even on the 3rd if you have replicas 3.
Yes but you could also suffer a crash while writing the first replica. If the journal is in tmpfs, there is nothing to replay.
Quoted 3 lines · Alexandre DERUMIER
Quoted 3 lines
Quoted 3 lines
But who cares? it's also on the 2nd node. or even on the 3rd if you have replicas 3.
--
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
Am 22.11.2012 13:50, schrieb Sébastien Han:
Quoted 5 lines
Quoted 1 line
journal is running on tmpfs to me but that changes nothing.
I don't think it works then. According to the doc: Enables using libaio for asynchronous writes to the journal. Requires journal dio set to true.
Ah might be but as the SSDs are pretty fast i don't know which device to use as journal except tmpfs.
And RAMDISK devices are too expensive.
Greets,
Stefan
Quoted 11 lines
Quoted 9 lines · Stefan Priebe - Profihost AG
Am 22.11.2012 11:49, schrieb Sébastien Han:
Quoted 3 lines
@Alexandre: cool!
@ Stefan: Full SSD cluster and 10G switches?
Yes
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines
Couple of weeks ago I saw
that you use journal aio, did you notice performance improvement with it?journal is running on tmpfs to me but that changes nothing.
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
Am 22.11.2012 15:37, schrieb Mark Nelson:
Quoted 2 lines
I don't think we recommend tmpfs at all for anything other than playing around. :)
I discussed this with somebody frmo inktank. Had to search the mailinglist. It might be OK if you're working with enough replicas and UPS.
I see no other option while working with SSDs - the only Option would be to be able to deaktivate the journal at all. But ceph does not support this.
Stefan
Quoted 20 lines · Stefan Priebe - Profihost AG
Quoted 19 lines
Hi,
can someone from inktank comment this? Might be using
/dev/ram0with an fs on it be better than tmpfs as we can use dio?Greets,
StefanQuoted 11 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Sébastien Han" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>
Envoyé: Jeudi 22 Novembre 2012 14:29:03
Objet: Re: RBD fio Performance concernsAm 22.11.2012 14:22, schrieb Sébastien Han:
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
And RAMDISK devices are too expensive.
It would make sense in your infra, but yes they are really expensive.
We need something like tmpfs - running in local memory but support dio.
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
Quoted 48 lines · Sébastien Han
@Alexandre: cool!
@ Stefan: Full SSD cluster and 10G switches? Couple of weeks ago I saw that you use journal aio, did you notice performance improvement with it?
@Mark Kampe
Quoted 2 lines
If I read the above correctly, your random operations are 4K and your sequential operations are 4M.
As you recommend. (see below what you previously said):
Quoted 8 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The block-size difference makes the random and sequential results incomparable.
Ok let's do it again then (short output that fits on a screen), with a single OSD and 4K blocks:
seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=42
rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=42
seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=42
rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=42seq-read: (groupid=0, jobs=1): err= 0: pid=7542
read : io=912716KB, bw=15210KB/s, iops=3802 , runt= 60009msec
rand-read: (groupid=1, jobs=1): err= 0: pid=7546
read : io=980504KB, bw=16339KB/s, iops=4084 , runt= 60009msec
seq-write: (groupid=2, jobs=1): err= 0: pid=7547
write: io=54216KB, bw=922718 B/s, iops=225 , runt= 60167msec
rand-write: (groupid=3, jobs=1): err= 0: pid=7557
write: io=66116KB, bw=1098.5KB/s, iops=274 , runt= 60192msecSequentials and random operations are getting closer to each others, but random operations remain higher.
Quoted 3 lines
the more data you send me, the longer it takes me to find time to review your results. If you send me a message that fits on a single screen, I will try to answer it immediately.
Quoted 7 lines
I just don't want to miss any information that you may find useful.
@ Mark Nelson
See below the new blkparse trace with 4K block for all operations:
Inline image 1
Thanks for doing this! Unfortunately it's only showing writes so we don't know what read behavior looks like in these graphs. That might be important. Also, do you know approximately how the tests line up with timestamps on the seekwatcher results? Seekwatcher only seems to be going for 228 seconds, but the 4 tests should be lasting 240+ seconds?
If I just break this down into 60s chunks with seq-read, rand-read, seq-write, rand-write in that order, my wildly speculative guess is that there's a chunk of time missing at the beginning where the read tests are happening that extend out to about second ~80-85 in the graph. After that it's the write tests from ~85 out to ~205. After that, I guess that there are no more incoming writes, but existing writes are being flushed and that with no incoming writes we see a bump in performance (possibly due to a reduction in lock contention? What version of ceph is this again?)
A couple of thoughts:
- You may want to pause between the tests for a while (or even reformat between every test!)
- That spike in performance at the end is interesting. I'd really like to know if that happened during the rand-write test or after the test completed (once the data hit the jouranl the writes would have been acknowledged letting the test end while the data was still being flushed out to disk).
- If my interpretation is right, it looks like the typical seq-write throughput is slightly higher according to blktrace but with regular dips, while the random write performance is typically lower but with no dips (and maybe a big increase at the end). In both cases we have a very high number of seeks! Do you have WB cache on your controller? These are 10K RPM drives?
- Read behavior would be really useful!
- You can pretty clearly see the different AGs in XFS doing their thing. I wonder if 1 AG would be better here. On the other hand, there's a
pretty long thread that discusses IOPs heavy workload on XFS here:
- It would be very interesting to try this test on EXT4 or BTRFS and see if the results are the same. I forget, did someone already do this?
Mark
Quoted 313 lines
Thanks again everyone, for your help.
Cheers!
Quoted 7 lines · On Thu, Nov 22, 2012 at 11:19 AM, Stefan Priebe - Profihost AG…
Same to me:
rand 4k: 23.000 iops
seq 4k: 13.000 iopsEven in writeback mode where normally seq 4k should be merged into
bigger requests.
Quoted 34 lines
Stefan
Am 21.11.2012 17:34, schrieb Mark Nelson:
Quoted 29 lines
Responding to my own message. :)
Talked to Sage a bit offline about this. I think there are two opposing forces:
On one hand, random IO may be spreading reads/writes out across more OSDs than sequential IO that presumably would be hitting a single OSD more regularly.
On the other hand, you'd expect that sequential writes would be getting coalesced either at the RBD layer or on the OSD, and that the drive/controller/filesystem underneath the OSD would be doing some kind of readahead or prefetching.
On the third hand, maybe coalescing/prefetching is in fact happening but we are IOP limited by some per-osd limitation.
It could be interesting to do the test with a single OSD and see what happens.
Mark
Quoted 6 lines · Mark Nelson
Hi Guys,
I'm late to this thread but thought I'd chime in. Crazy that you are getting higher performance with random reads/writes vs sequential! It would be interesting to see what kind of throughput smalliobench
reports
Quoted 44 lines
Quoted 44 lines
Quoted 44 lines
(should be packaged in bobtail) and also see if this behavior happens with cephfs. It's still too early in the morning for me right now to come up with a reasonable explanation for what's going on. It might be worth running blktrace and seekwatcher to see what the io patterns on the underlying disk look like in each case. Maybe something unexpected is going on.
Mark
Quoted 34 lines · Sébastien Han
Which iodepth did you use for those benchs?
Quoted 2 lines
I really don't understand why I can't get more rand read iops with 4K block ...
Me neither, hope to get some clarification from the Inktank guys. It doesn't make any sense to me...
--
Bien cordialement.
Sébastien HAN.Quoted 17 lines · On Mon, Nov 19, 2012 at 8:11 PM, Alexandre DERUMIER <[email protected]…
Quoted 3 lines
Quoted 3 lines
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
rand read 4K : 6000 iops
seq read 4K : 3500 iops
seq read 4M : 31iops (1gigabit client bandwith limit)rand write 4k: 6000iops (tmpfs journal)
seq write 4k: 1600iops
seq write 4M : 31iops (1gigabit client bandwith limit)I really don't understand why I can't get more rand read iops with 4K block ...
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
I try with high end cpu for client, it doesn't change nothing. But test cluster use old 8 cores E5420 @ 2.50GHZ (But cpu is around 15% on cluster during read bench)
----- Mail original -----
De: "Sébastien Han" <[email protected]
<mailto:[email protected]>>
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
À: "Mark Kampe" <[email protected]
<mailto:[email protected]>>
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Cc "Alexandre DERUMIER" <[email protected]<mailto:[email protected]>>, "ceph-devel"
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
<[email protected] <mailto:[email protected]>> Envoyé: Lundi 19 Novembre 2012 19:03:40
Objet: Re: RBD fio Performance concerns@Sage, thanks for the info :)
@Mark:Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio
results if
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
it's needed.
Quoted 6 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
I know why I use direct I/O. It's synthetic benchmarks, it's far away from a real life scenario and how common applications works. I just try to see the maximum I/O throughput that I can get from my RBD. All my applications use buffered I/O.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
Thanks to all of you..
On Mon, Nov 19, 2012 at 5:54 PM, Mark Kampe
<[email protected] <mailto:[email protected]>>
Quoted 150 lines
Quoted 150 lines
Quoted 150 lines
Quoted 150 lines
Quoted 150 lines
Quoted 149 lines · wrote:
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects
2. distinct writes to a single RADOS object are serializedYour sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 127 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0
lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10%
rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0
lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=18653
write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65, stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%,Quoted 2 lines
=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0
lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20%
rand-write: (groupid=3, jobs=1): err= 0: pid=20446
write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0
lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%
Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s, mint=60053msec, maxt=60053msecRun status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s, maxb=111425KB/s, mint=60005msec, maxt=60005msecRun status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s, mint=60725msec, maxt=60725msecRun status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s, mint=60822msec, maxt=60822msecQuoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Disk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132, in_queue=33434120, util=99.79%--
To unsubscribe from this list: send the line "unsubscribeceph-devel" in
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
the body of a message to [email protected]
<mailto:[email protected]>
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]<mailto:[email protected]>
Quoted 1 line
Quoted 1 line
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 7 lines
Mark Nelson Performance Engineer Inktank -- 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
Otherwise you would have the same problem with the disk crashes
Am 22.11.2012 um 16:55 schrieb Sébastien Han <[email protected]>:
Quoted 23 lines
Hum sorry, you're right. Forget about what I said :)
Quoted 18 lines · Stefan Priebe - Profihost AG
I thought the Client would then write to the 2nd is this wrong?
Stefan
Am 22.11.2012 um 16:49 schrieb Sébastien Han <[email protected]>:
Quoted 12 lines
Quoted 2 lines
Quoted 2 lines
But who cares? it's also on the 2nd node. or even on the 3rd if you have replicas 3.
Yes but you could also suffer a crash while writing the first replica. If the journal is in tmpfs, there is nothing to replay.
Quoted 3 lines · Alexandre DERUMIER
Quoted 3 lines
Quoted 3 lines
But who cares? it's also on the 2nd node. or even on the 3rd if you have replicas 3.
--
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
In my test it was just recovering some replicas not the whole osd.
Am 22.11.2012 um 16:35 schrieb Alexandre DERUMIER <[email protected]>:
Quoted 23 lines
Quoted 2 lines
Quoted 2 lines
But who cares? it's also on the 2nd node. or even on the 3rd if you have replicas 3.
Yes, but rebuilding a dead node use cpu and ios. (but it should be benched too, to see the impact on the production)
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]>, "Mark Nelson" <[email protected]> Envoyé: Jeudi 22 Novembre 2012 16:28:57
Objet: Re: RBD fio Performance concernsAm 22.11.2012 16:26, schrieb Alexandre DERUMIER:
Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Haven't tested that. But does this makes sense? I mean data goes to Disk journal - same disk then has to copy the Data from part A to part B.
Why is this an advantage?
Well, if you are cpu limited, I don't think you can use all 8*35000iops by node. So, maybe a benchmark can tell us if the difference is really big.
Quoted 75 lines
Quoted 1 line
Using tmpfs and ups can be ok, but if you have a kernel panic or hardware problem, you'll lost your journal.
But who cares? it's also on the 2nd node. or even on the 3rd if you have replicas 3.
Stefan
Quoted 67 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Mark Nelson" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]> Envoyé: Jeudi 22 Novembre 2012 16:01:56
Objet: Re: RBD fio Performance concernsAm 22.11.2012 15:46, schrieb Mark Nelson:
Quoted 3 lines
I haven't played a whole lot with SSD only OSDs yet (other than noting last summer that iop performance wasn't as high as I wanted it). Is a second partition on the SSD for the journal not an option for you?
Haven't tested that. But does this makes sense? I mean data goes to Disk journal - same disk then has to copy the Data from part A to part B.
Why is this an advantage?
Stefan
Quoted 47 lines
Mark
Quoted 42 lines · Stefan Priebe - Profihost AG
Am 22.11.2012 15:37, schrieb Mark Nelson:
Quoted 2 lines
I don't think we recommend tmpfs at all for anything other than playing around. :)
I discussed this with somebody frmo inktank. Had to search the mailinglist. It might be OK if you're working with enough replicas and UPS.
I see no other option while working with SSDs - the only Option would be to be able to deaktivate the journal at all. But ceph does not support this.
Stefan
Quoted 28 lines · Stefan Priebe - Profihost AG
Quoted 27 lines
Hi,
can someone from inktank comment this? Might be using
/dev/ram0with an fs on it be better than tmpfs as we can use dio?Greets,
StefanQuoted 19 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Sébastien Han" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>
Envoyé: Jeudi 22 Novembre 2012 14:29:03
Objet: Re: RBD fio Performance concernsAm 22.11.2012 14:22, schrieb Sébastien Han:
Quoted 3 lines
And RAMDISK devices are too expensive.
It would make sense in your infra, but yes they are really expensive.
We need something like tmpfs - running in local memory but support dio.
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
I don't think we recommend tmpfs at all for anything other than playing around. :)
Quoted 27 lines · Stefan Priebe - Profihost AG
Hi,
can someone from inktank comment this? Might be using
/dev/ram0with an fs on it be better than tmpfs as we can use dio?Greets,
StefanQuoted 19 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Sébastien Han" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>
Envoyé: Jeudi 22 Novembre 2012 14:29:03
Objet: Re: RBD fio Performance concernsAm 22.11.2012 14:22, schrieb Sébastien Han:
Quoted 3 lines
And RAMDISK devices are too expensive.
It would make sense in your infra, but yes they are really expensive.
We need something like tmpfs - running in local memory but support dio.
Stefan
Signature · 7 lines
Mark Nelson Performance Engineer Inktank -- 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
I haven't played a whole lot with SSD only OSDs yet (other than noting last summer that iop performance wasn't as high as I wanted it). Is a second partition on the SSD for the journal not an option for you?
Mark
Quoted 43 lines · Stefan Priebe - Profihost AG
Am 22.11.2012 15:37, schrieb Mark Nelson:
Quoted 2 lines
I don't think we recommend tmpfs at all for anything other than playing around. :)
I discussed this with somebody frmo inktank. Had to search the mailinglist. It might be OK if you're working with enough replicas and UPS.
I see no other option while working with SSDs - the only Option would be to be able to deaktivate the journal at all. But ceph does not support this.
Stefan
Quoted 30 lines · Stefan Priebe - Profihost AG
Quoted 27 lines
Hi,
can someone from inktank comment this? Might be using
/dev/ram0with an fs on it be better than tmpfs as we can use dio?Greets,
StefanQuoted 19 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Sébastien Han" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>
Envoyé: Jeudi 22 Novembre 2012 14:29:03
Objet: Re: RBD fio Performance concernsAm 22.11.2012 14:22, schrieb Sébastien Han:
Quoted 3 lines
And RAMDISK devices are too expensive.
It would make sense in your infra, but yes they are really expensive.
We need something like tmpfs - running in local memory but support dio.
Stefan
Signature · 7 lines
Mark Nelson Performance Engineer Inktank -- 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
Am 22.11.2012 14:22, schrieb Sébastien Han:
Quoted 3 lines
And RAMDISK devices are too expensive.
It would make sense in your infra, but yes they are really expensive.
We need something like tmpfs - running in local memory but support dio.
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
Hi Mark,
Well the most concerning thing is that I have 2 Ceph clusters and both of them show better rand than seq...
I don't have enough background to argue on your assomptions but I could try to skrink my test platform to a single OSD and how it performs. We keep in touch on that one.
But it seems that Alexandre and I have the same results (more rand than seq), he has (at least) one cluster and I have 2. Thus I start to think that's not an isolated issue.
Is it different for you? Do you usually get more seq IOPS from an RBD thant rand?
Quoted 17 lines · Mark Nelson
Responding to my own message. :)
Talked to Sage a bit offline about this. I think there are two opposing forces:
On one hand, random IO may be spreading reads/writes out across more OSDs than sequential IO that presumably would be hitting a single OSD more regularly.
On the other hand, you'd expect that sequential writes would be getting coalesced either at the RBD layer or on the OSD, and that the drive/controller/filesystem underneath the OSD would be doing some kind of readahead or prefetching.
On the third hand, maybe coalescing/prefetching is in fact happening but we are IOP limited by some per-osd limitation.
Quoted 264 lines
It could be interesting to do the test with a single OSD and see what happens.
Mark
Quoted 256 lines · Mark Nelson
Hi Guys,
I'm late to this thread but thought I'd chime in. Crazy that you are getting higher performance with random reads/writes vs sequential! It would be interesting to see what kind of throughput smalliobench reports (should be packaged in bobtail) and also see if this behavior happens with cephfs. It's still too early in the morning for me right now to come up with a reasonable explanation for what's going on. It might be worth running blktrace and seekwatcher to see what the io patterns on the underlying disk look like in each case. Maybe something unexpected is going on.
Mark
Quoted 239 lines · Sébastien Han
Which iodepth did you use for those benchs?
Quoted 2 lines
I really don't understand why I can't get more rand read iops with 4K block ...
Me neither, hope to get some clarification from the Inktank guys. It doesn't make any sense to me...
--
Bien cordialement.
Sébastien HAN.Quoted 57 lines · Alexandre DERUMIER
Quoted 3 lines
Quoted 3 lines
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
rand read 4K : 6000 iops
seq read 4K : 3500 iops
seq read 4M : 31iops (1gigabit client bandwith limit)rand write 4k: 6000iops (tmpfs journal)
seq write 4k: 1600iops
seq write 4M : 31iops (1gigabit client bandwith limit)I really don't understand why I can't get more rand read iops with 4K block ...
I try with high end cpu for client, it doesn't change nothing. But test cluster use old 8 cores E5420 @ 2.50GHZ (But cpu is around 15% on cluster during read bench)
----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Mark Kampe" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>
Envoyé: Lundi 19 Novembre 2012 19:03:40
Objet: Re: RBD fio Performance concerns@Sage, thanks for the info :)
@Mark:Quoted 3 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio results if it's needed.
Quoted 6 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
I know why I use direct I/O. It's synthetic benchmarks, it's far away from a real life scenario and how common applications works. I just try to see the maximum I/O throughput that I can get from my RBD. All my applications use buffered I/O.
Quoted 159 lines
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
Thanks to all of you..
Quoted 151 lines · Mark Kampe
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects
2. distinct writes to a single RADOS object are serializedYour sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 129 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0
lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10%
rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0
lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=18653
write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65, stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%,Quoted 2 lines
=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0
lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20%
rand-write: (groupid=3, jobs=1): err= 0: pid=20446
write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0
lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%
Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s, mint=60053msec, maxt=60053msecRun status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s, maxb=111425KB/s, mint=60005msec, maxt=60005msecRun status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s, mint=60725msec, maxt=60725msecRun status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s, mint=60822msec, maxt=60822msecDisk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132, in_queue=33434120, util=99.79%--
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
--
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
Am 22.11.2012 11:49, schrieb Sébastien Han:
Quoted 3 lines
@Alexandre: cool!
@ Stefan: Full SSD cluster and 10G switches?
Yes
Quoted 2 lines
Couple of weeks ago I saw
that you use journal aio, did you notice performance improvement with it?
journal is running on tmpfs to me but that changes nothing.
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
Am 22.11.2012 15:52, schrieb Alexandre DERUMIER:
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
I discussed this with somebody frmo inktank. Had to search the mailinglist. It might be OK if you're working with enough replicas and UPS.
I see no other option while working with SSDs - the only Option would be to be able to deaktivate the journal at all. But ceph does not support this.
Do you have a big difference with putting 1 journal by osd on each ssd drive ?
Not tested.
Quoted 5 lines
another alternative can be (but indeed costly):
- stec zeus ram ssd drive, around 2000$ for 8G (I have benched it around 100000 iops ;)
- ddrdrive (http://www.ddrdrive.com/) (around 200000iops, don't know the price)
- fusionio card (iodrive2, 360GB, around 3000€ , but they are 160GB model, maybe half the price)
All too expensive.
Quoted 1 line
- maybe ocz talos, around 600€ for OCZ Talos 2 R 200 Go (don't have benched them, but spec say around 35000iops random)
Not usable as each OSD can do 35.000 random IOP/s in my case and have 8 of them in each node...
Stefan
Quoted 12 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Mark Nelson" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]> Envoyé: Jeudi 22 Novembre 2012 15:42:14
Objet: Re: RBD fio Performance concernsAm 22.11.2012 15:37, schrieb Mark Nelson:
Quoted 2 lines
I don't think we recommend tmpfs at all for anything other than playing around. :)
Quoted 38 lines
I discussed this with somebody frmo inktank. Had to search the mailinglist. It might be OK if you're working with enough replicas and UPS.
I see no other option while working with SSDs - the only Option would be to be able to deaktivate the journal at all. But ceph does not support this.
Stefan
Quoted 30 lines · Stefan Priebe - Profihost AG
Quoted 27 lines
Hi,
can someone from inktank comment this? Might be using
/dev/ram0with an fs on it be better than tmpfs as we can use dio?Greets,
StefanQuoted 19 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Sébastien Han" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>
Envoyé: Jeudi 22 Novembre 2012 14:29:03
Objet: Re: RBD fio Performance concernsAm 22.11.2012 14:22, schrieb Sébastien Han:
Quoted 3 lines
And RAMDISK devices are too expensive.
It would make sense in your infra, but yes they are really expensive.
We need something like tmpfs - running in local memory but support dio.
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
Am 22.11.2012 15:46, schrieb Mark Nelson:
Quoted 3 lines
I haven't played a whole lot with SSD only OSDs yet (other than noting last summer that iop performance wasn't as high as I wanted it). Is a second partition on the SSD for the journal not an option for you?
Haven't tested that. But does this makes sense? I mean data goes to Disk journal - same disk then has to copy the Data from part A to part B.
Why is this an advantage?
Stefan
Quoted 50 lines
Mark
Quoted 45 lines · Stefan Priebe - Profihost AG
Am 22.11.2012 15:37, schrieb Mark Nelson:
Quoted 2 lines
I don't think we recommend tmpfs at all for anything other than playing around. :)
I discussed this with somebody frmo inktank. Had to search the mailinglist. It might be OK if you're working with enough replicas and UPS.
I see no other option while working with SSDs - the only Option would be to be able to deaktivate the journal at all. But ceph does not support this.
Stefan
Quoted 31 lines · Stefan Priebe - Profihost AG
Quoted 28 lines
Hi,
can someone from inktank comment this? Might be using
/dev/ram0with an fs on it be better than tmpfs as we can use dio?Greets,
StefanQuoted 20 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Sébastien Han" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>
Envoyé: Jeudi 22 Novembre 2012 14:29:03
Objet: Re: RBD fio Performance concernsAm 22.11.2012 14:22, schrieb Sébastien Han:
Quoted 3 lines
And RAMDISK devices are too expensive.
It would make sense in your infra, but yes they are really expensive.
We need something like tmpfs - running in local memory but support dio.
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
Quoted 5 lines
Quoted 5 lines
I discussed this with somebody frmo inktank. Had to search the mailinglist. It might be OK if you're working with enough replicas and UPS.
I see no other option while working with SSDs - the only Option would be to be able to deaktivate the journal at all. But ceph does not support this.
Do you have a big difference with putting 1 journal by osd on each ssd drive ?
another alternative can be (but indeed costly):
- stec zeus ram ssd drive, around 2000$ for 8G (I have benched it around 100000 iops ;)
- ddrdrive (http://www.ddrdrive.com/) (around 200000iops, don't know the price)
- fusionio card (iodrive2, 360GB, around 3000€ , but they are 160GB model, maybe half the price)
- maybe ocz talos, around 600€ for OCZ Talos 2 R 200 Go (don't have benched them, but spec say around 35000iops random)
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Mark Nelson" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]> Envoyé: Jeudi 22 Novembre 2012 15:42:14
Objet: Re: RBD fio Performance concerns
Am 22.11.2012 15:37, schrieb Mark Nelson:
Quoted 2 lines
I don't think we recommend tmpfs at all for anything other than playing around. :)
I discussed this with somebody frmo inktank. Had to search the mailinglist. It might be OK if you're working with enough replicas and UPS.
I see no other option while working with SSDs - the only Option would be to be able to deaktivate the journal at all. But ceph does not support this.
Stefan
Quoted 20 lines · Stefan Priebe - Profihost AG
Quoted 19 lines
Hi,
can someone from inktank comment this? Might be using
/dev/ram0with an fs on it be better than tmpfs as we can use dio?Greets,
StefanQuoted 11 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Sébastien Han" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>
Envoyé: Jeudi 22 Novembre 2012 14:29:03
Objet: Re: RBD fio Performance concernsAm 22.11.2012 14:22, schrieb Sébastien Han:
Quoted 10 lines
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
And RAMDISK devices are too expensive.
It would make sense in your infra, but yes they are really expensive.
We need something like tmpfs - running in local memory but support dio.
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
Same to me:
rand 4k: 23.000 iops
seq 4k: 13.000 iops
Even in writeback mode where normally seq 4k should be merged into bigger requests.
Stefan
Am 21.11.2012 17:34, schrieb Mark Nelson:
Quoted 248 lines
Responding to my own message. :)
Talked to Sage a bit offline about this. I think there are two opposing forces:
On one hand, random IO may be spreading reads/writes out across more OSDs than sequential IO that presumably would be hitting a single OSD more regularly.
On the other hand, you'd expect that sequential writes would be getting coalesced either at the RBD layer or on the OSD, and that the drive/controller/filesystem underneath the OSD would be doing some kind of readahead or prefetching.
On the third hand, maybe coalescing/prefetching is in fact happening but we are IOP limited by some per-osd limitation.
It could be interesting to do the test with a single OSD and see what happens.
Mark
Quoted 12 lines · Mark Nelson
Hi Guys,
I'm late to this thread but thought I'd chime in. Crazy that you are getting higher performance with random reads/writes vs sequential! It would be interesting to see what kind of throughput smalliobench reports (should be packaged in bobtail) and also see if this behavior happens with cephfs. It's still too early in the morning for me right now to come up with a reasonable explanation for what's going on. It might be worth running blktrace and seekwatcher to see what the io patterns on the underlying disk look like in each case. Maybe something unexpected is going on.
Quoted 212 lines
Mark
Quoted 208 lines · Sébastien Han
Which iodepth did you use for those benchs?
Quoted 2 lines
I really don't understand why I can't get more rand read iops with 4K block ...
Me neither, hope to get some clarification from the Inktank guys. It doesn't make any sense to me...
--
Bien cordialement.
Sébastien HAN.Quoted 53 lines · Alexandre DERUMIER
Quoted 2 lines
Quoted 2 lines
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
rand read 4K : 6000 iops
seq read 4K : 3500 iops
seq read 4M : 31iops (1gigabit client bandwith limit)rand write 4k: 6000iops (tmpfs journal)
seq write 4k: 1600iops
seq write 4M : 31iops (1gigabit client bandwith limit)I really don't understand why I can't get more rand read iops with 4K block ...
I try with high end cpu for client, it doesn't change nothing. But test cluster use old 8 cores E5420 @ 2.50GHZ (But cpu is around 15% on cluster during read bench)
----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Mark Kampe" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>
Envoyé: Lundi 19 Novembre 2012 19:03:40
Objet: Re: RBD fio Performance concerns@Sage, thanks for the info :)
@Mark:Quoted 3 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio results if it's needed.
Quoted 6 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
I know why I use direct I/O. It's synthetic benchmarks, it's far away from a real life scenario and how common applications works. I just try to see the maximum I/O throughput that I can get from my RBD. All my applications use buffered I/O.
Quoted 135 lines
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
Thanks to all of you..
Quoted 127 lines · Mark Kampe
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects
2. distinct writes to a single RADOS object are serializedYour sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 106 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0
lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10%
rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0
lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=18653
write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65, stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%,Quoted 1 line
=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0
lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20%
rand-write: (groupid=3, jobs=1): err= 0: pid=20446
write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 1 line
=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 1 line
=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0
lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%
Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s, mint=60053msec, maxt=60053msecRun status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s, maxb=111425KB/s, mint=60005msec, maxt=60005msecRun status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s, mint=60725msec, maxt=60725msecRun status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s, mint=60822msec, maxt=60822msecDisk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132, in_queue=33434120, util=99.79%--
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
Quoted 4 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
--
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
Quoted 3 lines
Quoted 3 lines
but it seems that Alexandre and I have the same results (more rand than seq), he has (at least) one cluster and I have 2. Thus I start to think that's not an isolated issue.
Hi, I have bought new servers with more powerfull cpus to made a new 3 nodes cluster to compare. I'll redo tests in 1 or 2 week.
I hope performance will improve.
I'll keep you in touch !
Alexandre
----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Mark Nelson" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]> Envoyé: Mercredi 21 Novembre 2012 22:47:08
Objet: Re: RBD fio Performance concerns
Hi Mark,
Well the most concerning thing is that I have 2 Ceph clusters and both of them show better rand than seq...
I don't have enough background to argue on your assomptions but I could try to skrink my test platform to a single OSD and how it performs. We keep in touch on that one.
But it seems that Alexandre and I have the same results (more rand than seq), he has (at least) one cluster and I have 2. Thus I start to think that's not an isolated issue.
Is it different for you? Do you usually get more seq IOPS from an RBD thant rand?
Quoted 17 lines · Mark Nelson
Responding to my own message. :)
Talked to Sage a bit offline about this. I think there are two opposing forces:
On one hand, random IO may be spreading reads/writes out across more OSDs than sequential IO that presumably would be hitting a single OSD more regularly.
On the other hand, you'd expect that sequential writes would be getting coalesced either at the RBD layer or on the OSD, and that the drive/controller/filesystem underneath the OSD would be doing some kind of readahead or prefetching.
On the third hand, maybe coalescing/prefetching is in fact happening but we are IOP limited by some per-osd limitation.
Quoted 264 lines
It could be interesting to do the test with a single OSD and see what happens.
Mark
Quoted 256 lines · Mark Nelson
Hi Guys,
I'm late to this thread but thought I'd chime in. Crazy that you are getting higher performance with random reads/writes vs sequential! It would be interesting to see what kind of throughput smalliobench reports (should be packaged in bobtail) and also see if this behavior happens with cephfs. It's still too early in the morning for me right now to come up with a reasonable explanation for what's going on. It might be worth running blktrace and seekwatcher to see what the io patterns on the underlying disk look like in each case. Maybe something unexpected is going on.
Mark
Quoted 239 lines · Sébastien Han
Which iodepth did you use for those benchs?
Quoted 2 lines
I really don't understand why I can't get more rand read iops with 4K block ...
Me neither, hope to get some clarification from the Inktank guys. It doesn't make any sense to me...
Signature · 5 lines
Bien cordialement. Sébastien HAN. On Mon, Nov 19, 2012 at 8:11 PM, Alexandre DERUMIERQuoted 216 lines · <[email protected]> wrote:
Quoted 3 lines
Quoted 3 lines
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
rand read 4K : 6000 iops
seq read 4K : 3500 iops
seq read 4M : 31iops (1gigabit client bandwith limit)rand write 4k: 6000iops (tmpfs journal)
seq write 4k: 1600iops
seq write 4M : 31iops (1gigabit client bandwith limit)I really don't understand why I can't get more rand read iops with 4K block ...
I try with high end cpu for client, it doesn't change nothing. But test cluster use old 8 cores E5420 @ 2.50GHZ (But cpu is around 15% on cluster during read bench)
----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Mark Kampe" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>
Envoyé: Lundi 19 Novembre 2012 19:03:40
Objet: Re: RBD fio Performance concerns@Sage, thanks for the info :)
@Mark:Quoted 3 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio results if it's needed.
Quoted 6 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
I know why I use direct I/O. It's synthetic benchmarks, it's far away from a real life scenario and how common applications works. I just try to see the maximum I/O throughput that I can get from my RBD. All my applications use buffered I/O.
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
Thanks to all of you..
Quoted 151 lines · Mark Kampe
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects
2. distinct writes to a single RADOS object are serializedYour sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 129 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0
lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10%
rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read : io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec): min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec): min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) : min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0
lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=18653
write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec): min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65, stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%,Quoted 2 lines
=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0
lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20%
rand-write: (groupid=3, jobs=1): err= 0: pid=20446
write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) : min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0
lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%
Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s, mint=60053msec, maxt=60053msecRun status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s, maxb=111425KB/s, mint=60005msec, maxt=60005msecRun status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s, mint=60725msec, maxt=60725msecRun status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s, mint=60822msec, maxt=60822msecDisk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132, in_queue=33434120, util=99.79%Signature · 3 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
--
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
Am 22.11.2012 16:26, schrieb Alexandre DERUMIER:
Quoted 9 lines
Quoted 4 lines
Quoted 4 lines
Haven't tested that. But does this makes sense? I mean data goes to Disk journal - same disk then has to copy the Data from part A to part B.
Why is this an advantage?
Well, if you are cpu limited, I don't think you can use all 8*35000iops by node. So, maybe a benchmark can tell us if the difference is really big.
Using tmpfs and ups can be ok, but if you have a kernel panic or hardware problem, you'll lost your journal.
But who cares? it's also on the 2nd node. or even on the 3rd if you have replicas 3.
Stefan
Quoted 13 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Mark Nelson" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]> Envoyé: Jeudi 22 Novembre 2012 16:01:56
Objet: Re: RBD fio Performance concernsAm 22.11.2012 15:46, schrieb Mark Nelson:
Quoted 3 lines
I haven't played a whole lot with SSD only OSDs yet (other than noting last summer that iop performance wasn't as high as I wanted it). Is a second partition on the SSD for the journal not an option for you?
Quoted 57 lines
Haven't tested that. But does this makes sense? I mean data goes to Disk journal - same disk then has to copy the Data from part A to part B.
Why is this an advantage?
Stefan
Quoted 50 lines
Mark
Quoted 45 lines · Stefan Priebe - Profihost AG
Am 22.11.2012 15:37, schrieb Mark Nelson:
Quoted 2 lines
I don't think we recommend tmpfs at all for anything other than playing around. :)
I discussed this with somebody frmo inktank. Had to search the mailinglist. It might be OK if you're working with enough replicas and UPS.
I see no other option while working with SSDs - the only Option would be to be able to deaktivate the journal at all. But ceph does not support this.
Stefan
Quoted 31 lines · Stefan Priebe - Profihost AG
Quoted 28 lines
Hi,
can someone from inktank comment this? Might be using
/dev/ram0with an fs on it be better than tmpfs as we can use dio?Greets,
StefanQuoted 20 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Sébastien Han" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>
Envoyé: Jeudi 22 Novembre 2012 14:29:03
Objet: Re: RBD fio Performance concernsAm 22.11.2012 14:22, schrieb Sébastien Han:
Quoted 3 lines
And RAMDISK devices are too expensive.
It would make sense in your infra, but yes they are really expensive.
We need something like tmpfs - running in local memory but support dio.
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
Hi,
can someone from inktank comment this? Might be using /dev/ram0 with an fs on it be better than tmpfs as we can use dio?
Greets,
Stefan
Quoted 8 lines
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Sébastien Han" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]> Envoyé: Jeudi 22 Novembre 2012 14:29:03
Objet: Re: RBD fio Performance concerns
Quoted 9 lines
Am 22.11.2012 14:22, schrieb Sébastien Han:
Quoted 3 lines
And RAMDISK devices are too expensive.
It would make sense in your infra, but yes they are really expensive.
We need something like tmpfs - running in local memory but support dio.
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
Sequential is faster than random on a disk, but we are not doing I/O to a disk, but a distributed storage cluster:
small random operations are striped over multiple objects and servers, and so can proceed in parallel and take advantage of more nodes and disks. This parallelism can overcome the added latencies of network I/O to yield very good throughput.
small sequential read and write operations are serialized on a single server, NIC, and drive. This serialization eliminates parallelism, and the network and other queuing delays are no longer compensated for.
This striping is a good idea for the small random I/O that is typical of the way Linux systems talk to their disks. But for other I/O patterns, it is not optimal.
Quoted 8 lines · Sébastien Han
Hi Mark,
Well the most concerning thing is that I have 2 Ceph clusters and both of them show better rand than seq...
I don't have enough background to argue on your assomptions but I could try to skrink my test platform to a single OSD and how it performs. We keep in touch on that one.
Quoted 7 lines
But it seems that Alexandre and I have the same results (more rand than seq), he has (at least) one cluster and I have 2. Thus I start to think that's not an isolated issue.
Is it different for you? Do you usually get more seq IOPS from an RBD thant rand?
--
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
Hi,
when i switch the journal to the OSD Disk seperate partiton on each disk (/dev/sdX1 for journal 1GB and /dev/sdX2 for OSD) i go down from 23.000 iops to 200 iops random 4k.
Greets,
Stefan
Am 22.11.2012 13:50, schrieb Sébastien Han:
Quoted 21 lines
Quoted 1 line
journal is running on tmpfs to me but that changes nothing.
I don't think it works then. According to the doc: Enables using libaio for asynchronous writes to the journal. Requires journal dio set to true.
Quoted 12 lines · Stefan Priebe - Profihost AG
Am 22.11.2012 11:49, schrieb Sébastien Han:
Quoted 3 lines
@Alexandre: cool!
@ Stefan: Full SSD cluster and 10G switches?
Yes
Quoted 2 lines
Couple of weeks ago I saw
that you use journal aio, did you notice performance improvement with it?
Quoted 8 lines
Quoted 3 lines
journal is running on tmpfs to me but that changes nothing.
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
--
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
Quoted 3 lines
Quoted 3 lines
when i switch the journal to the OSD Disk seperate partiton on each disk (
/dev/sdX1for journal 1GB and/dev/sdX2for OSD) i go down from 23.000 iops to 200 iops random 4k.
O_o , that's seem crazy...
Are you sure that your partitions are correctly aligned ? (starting first partition at sector 2048 is best for ssd)
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Sébastien Han" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]> Envoyé: Vendredi 23 Novembre 2012 11:31:15
Objet: Re: RBD fio Performance concerns
Hi,
when i switch the journal to the OSD Disk seperate partiton on each disk (/dev/sdX1 for journal 1GB and /dev/sdX2 for OSD) i go down from 23.000 iops to 200 iops random 4k.
Greets,
Stefan
Am 22.11.2012 13:50, schrieb Sébastien Han:
Quoted 18 lines
Quoted 1 line
journal is running on tmpfs to me but that changes nothing.
I don't think it works then. According to the doc: Enables using libaio for asynchronous writes to the journal. Requires journal dio set to true.
Quoted 9 lines · Stefan Priebe - Profihost AG
Am 22.11.2012 11:49, schrieb Sébastien Han:
Quoted 3 lines
@Alexandre: cool!
@ Stefan: Full SSD cluster and 10G switches?
Yes
Quoted 11 lines
Quoted 6 lines
Quoted 2 lines
Couple of weeks ago I saw
that you use journal aio, did you notice performance improvement with it?journal is running on tmpfs to me but that changes nothing.
Stefan
Signature · 3 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
--
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
Am 23.11.2012 11:47, schrieb Alexandre DERUMIER:
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
when i switch the journal to the OSD Disk seperate partiton on each disk (
/dev/sdX1for journal 1GB and/dev/sdX2for OSD) i go down from 23.000 iops to 200 iops random 4k.
O_o, that's seem crazy...
Are you sure that your partitions are correctly aligned ? (starting first partition at sector 2048 is best for ssd)
Model: ATA INTEL SSDSC2CW24 (scsi)
Disk /dev/sdb: 468862128s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags 1 2048s 2342911s 2340864s xfs pri 2 2342912s 468860927s 466518016s xfs pri
Stefan
so correcly aligned...
Maybe try to use journal directly on the full partition, without xfs ?
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]> Envoyé: Vendredi 23 Novembre 2012 11:49:10
Objet: Re: RBD fio Performance concerns
Am 23.11.2012 11:47, schrieb Alexandre DERUMIER:
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
when i switch the journal to the OSD Disk seperate partiton on each disk (
/dev/sdX1for journal 1GB and/dev/sdX2for OSD) i go down from 23.000 iops to 200 iops random 4k.
O_o, that's seem crazy...
Are you sure that your partitions are correctly aligned ? (starting first partition at sector 2048 is best for ssd)
Model: ATA INTEL SSDSC2CW24 (scsi)
Disk /dev/sdb: 468862128s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 2048s 2342911s 2340864s xfs pri
2 2342912s 468860927s 466518016s xfs pri
Stefan
Signature · 7 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 -- 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
Am 23.11.2012 12:03, schrieb Alexandre DERUMIER:
Quoted 3 lines
so correcly aligned...
Maybe try to use journal directly on the full partition, without xfs ?
The same - just 200 iops for rand 4k.
Stefan
Agreed with Alexandre, try putting the journal on a raw partition. That's pretty insane! What controller are you using again?
Mark
Quoted 25 lines · Alexandre DERUMIER
so correcly aligned...
Maybe try to use journal directly on the full partition, without xfs ?
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Alexandre DERUMIER" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]> Envoyé: Vendredi 23 Novembre 2012 11:49:10
Objet: Re: RBD fio Performance concernsAm 23.11.2012 11:47, schrieb Alexandre DERUMIER:
Quoted 5 lines
Quoted 3 lines
Quoted 3 lines
when i switch the journal to the OSD Disk seperate partiton on each disk (
/dev/sdX1for journal 1GB and/dev/sdX2for OSD) i go down from 23.000 iops to 200 iops random 4k.
O_o, that's seem crazy...
Are you sure that your partitions are correctly aligned ? (starting first partition at sector 2048 is best for ssd)Model: ATA INTEL SSDSC2CW24 (scsi)
Disk/dev/sdb: 468862128s
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Quoted 6 lines
Number Start End Size File system Name Flags
1 2048s 2342911s 2340864s xfs pri
2 2342912s 468860927s 466518016s xfs priStefan
--
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
Am 23.11.2012 14:18, schrieb Mark Nelson:
Quoted 2 lines
Agreed with Alexandre, try putting the journal on a raw partition. That's pretty insane! What controller are you using again?
Makes no difference. No Controller. Just using the SATA 3.0 onboard Ports for each SSD.
fio directly on SSD gives me 45.000 rand 4k write iops and 270Mb/s seq write speed. So that's ok.
Stefan
Quoted 40 lines
Mark
Quoted 36 lines · Alexandre DERUMIER
so correcly aligned...
Maybe try to use journal directly on the full partition, without xfs ?
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Alexandre DERUMIER" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]>
Envoyé: Vendredi 23 Novembre 2012 11:49:10
Objet: Re: RBD fio Performance concernsAm 23.11.2012 11:47, schrieb Alexandre DERUMIER:
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
when i switch the journal to the OSD Disk seperate partiton on each disk
(/dev/sdX1for journal 1GB and/dev/sdX2for OSD) i go down from 23.000
iops to 200 iops random 4k.
O_o, that's seem crazy...
Are you sure that your partitions are correctly aligned ? (starting first partition at sector 2048 is best for ssd)Model: ATA INTEL SSDSC2CW24 (scsi)
Disk/dev/sdb: 468862128s
Sector size (logical/physical): 512B/512B
Partition Table: gptNumber Start End Size File system Name Flags
1 2048s 2342911s 2340864s xfs pri
2 2342912s 468860927s 466518016s xfs priStefan
--
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
maybe try to play with io scheduler ? maybe noop can help ?
(I'm out of idea)
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]>
À: "Mark Nelson" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]> Envoyé: Vendredi 23 Novembre 2012 14:24:26
Objet: Re: RBD fio Performance concerns
Am 23.11.2012 14:18, schrieb Mark Nelson:
Quoted 2 lines
Agreed with Alexandre, try putting the journal on a raw partition. That's pretty insane! What controller are you using again?
Makes no difference. No Controller. Just using the SATA 3.0 onboard Ports for each SSD.
fio directly on SSD gives me 45.000 rand 4k write iops and 270Mb/s seq write speed. So that's ok.
Stefan
Quoted 40 lines
Mark
Quoted 36 lines · Alexandre DERUMIER
so correcly aligned...
Maybe try to use journal directly on the full partition, without xfs ?
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Alexandre DERUMIER" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]>
Envoyé: Vendredi 23 Novembre 2012 11:49:10
Objet: Re: RBD fio Performance concernsAm 23.11.2012 11:47, schrieb Alexandre DERUMIER:
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
when i switch the journal to the OSD Disk seperate partiton on each disk
(/dev/sdX1for journal 1GB and/dev/sdX2for OSD) i go down from 23.000
iops to 200 iops random 4k.
O_o, that's seem crazy...
Are you sure that your partitions are correctly aligned ? (starting first partition at sector 2048 is best for ssd)Model: ATA INTEL SSDSC2CW24 (scsi)
Disk/dev/sdb: 468862128s
Sector size (logical/physical): 512B/512B
Partition Table: gptNumber Start End Size File system Name Flags
1 2048s 2342911s 2340864s xfs pri
2 2342912s 468860927s 466518016s xfs priStefan
--
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
Am 23.11.2012 14:24, schrieb Stefan Priebe - Profihost AG:
Quoted 3 lines
Am 23.11.2012 14:18, schrieb Mark Nelson:
Quoted 2 lines
Agreed with Alexandre, try putting the journal on a raw partition. That's pretty insane! What controller are you using again?
uhu crazy now i have the same with tmpfs... no idea what's going on here.
I've updated ceph to latest git next. Maybe i should rollback.
Stefan
Quoted 49 lines
Makes no difference. No Controller. Just using the SATA 3.0 onboard Ports for each SSD.
fio directly on SSD gives me 45.000 rand 4k write iops and 270Mb/s seq write speed. So that's ok.
Stefan
Quoted 40 lines
Mark
Quoted 36 lines · Alexandre DERUMIER
so correcly aligned...
Maybe try to use journal directly on the full partition, without xfs ?
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Alexandre DERUMIER" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]>
Envoyé: Vendredi 23 Novembre 2012 11:49:10
Objet: Re: RBD fio Performance concernsAm 23.11.2012 11:47, schrieb Alexandre DERUMIER:
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
when i switch the journal to the OSD Disk seperate partiton on each disk
(/dev/sdX1for journal 1GB and/dev/sdX2for OSD) i go down from 23.000
iops to 200 iops random 4k.
O_o, that's seem crazy...
Are you sure that your partitions are correctly aligned ? (starting first partition at sector 2048 is best for ssd)Model: ATA INTEL SSDSC2CW24 (scsi)
Disk/dev/sdb: 468862128s
Sector size (logical/physical): 512B/512B
Partition Table: gptNumber Start End Size File system Name Flags
1 2048s 2342911s 2340864s xfs pri
2 2342912s 468860927s 466518016s xfs priStefan
--
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
Hi Han,
I have a cluster with 8 nodes(each node with 1 SSD as journal and 3 7200 rpm sata disk as data disk), each OSD consist of 1 sata disk together with one 30G partition from the SSD.So in total I have 24 OSDs.
My test method is start 24VMs and 24 RBD volumes, make the VM and volume 1:1 paired. Then Aiostress is used as test tools.
In total, I will get ~1000 IOPS for sequential 4K write for each volume and ~60 IOPS for random 4K write.
But there still some strange things on my cluster which I cannot explain the reason,if I clean the pagecache on ceph clusters BEFORE the test, performance drops to half. I don’t understand why old pagecache has any connect with write performance
Xiaoxi
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Sébastien Han
Sent: 2012年11月22日 5:47
To: Mark Nelson
Cc: Alexandre DERUMIER; ceph-devel; Mark Kampe
Subject: Re: RBD fio Performance concerns
Hi Mark,
Well the most concerning thing is that I have 2 Ceph clusters and both of them show better rand than seq...
I don't have enough background to argue on your assomptions but I could try to skrink my test platform to a single OSD and how it performs. We keep in touch on that one.
But it seems that Alexandre and I have the same results (more rand than seq), he has (at least) one cluster and I have 2. Thus I start to think that's not an isolated issue.
Is it different for you? Do you usually get more seq IOPS from an RBD thant rand?
Quoted 18 lines · Mark Nelson
Responding to my own message. :)
Talked to Sage a bit offline about this. I think there are two opposing
forces:On one hand, random IO may be spreading reads/writes out across more OSDs than sequential IO that presumably would be hitting a single OSD more regularly.
On the other hand, you'd expect that sequential writes would be getting coalesced either at the RBD layer or on the OSD, and that the drive/controller/filesystem underneath the OSD would be doing some kind of readahead or prefetching.
On the third hand, maybe coalescing/prefetching is in fact happening but we are IOP limited by some per-osd limitation.
Quoted 265 lines
It could be interesting to do the test with a single OSD and see what happens.
Mark
Quoted 257 lines · Mark Nelson
Hi Guys,
I'm late to this thread but thought I'd chime in. Crazy that you are getting higher performance with random reads/writes vs sequential! It would be interesting to see what kind of throughput smalliobench reports (should be packaged in bobtail) and also see if this behavior happens with cephfs. It's still too early in the morning for me right now to come up with a reasonable explanation for what's going on. It might be worth running blktrace and seekwatcher to see what the io patterns on the underlying disk look like in each case. Maybe something unexpected is going on.
Mark
Quoted 240 lines · Sébastien Han
Which iodepth did you use for those benchs?
Quoted 2 lines
I really don't understand why I can't get more rand read iops with 4K block ...
Me neither, hope to get some clarification from the Inktank guys. It doesn't make any sense to me...
--
Bien cordialement.
Sébastien HAN.Quoted 59 lines · Alexandre DERUMIER
Quoted 3 lines
Quoted 3 lines
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
rand read 4K : 6000 iops
seq read 4K : 3500 iops
seq read 4M : 31iops (1gigabit client bandwith limit)rand write 4k: 6000iops (tmpfs journal) seq write 4k: 1600iops seq write 4M : 31iops (1gigabit client bandwith limit)
I really don't understand why I can't get more rand read iops with 4K block ...
I try with high end cpu for client, it doesn't change nothing. But test cluster use old 8 cores E5420 @ 2.50GHZ (But cpu is around 15% on cluster during read bench)
----- Mail original -----
De: "Sébastien Han" <[email protected]>
À: "Mark Kampe" <[email protected]>
Cc: "Alexandre DERUMIER" <[email protected]>, "ceph-devel" <[email protected]>
Envoyé: Lundi 19 Novembre 2012 19:03:40
Objet: Re: RBD fio Performance concerns@Sage, thanks for the info :)
@Mark:Quoted 3 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio results if it's needed.
Quoted 6 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
I know why I use direct I/O. It's synthetic benchmarks, it's far away from a real life scenario and how common applications works. I just try to see the maximum I/O throughput that I can get from my RBD. All my applications use buffered I/O.
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
Quoted 158 lines
Thanks to all of you..
Quoted 152 lines · Mark Kampe
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects 2. distinct writes to a single RADOS object are serializedYour sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 130 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0
lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10%
rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read :
io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec):
min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec):
min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) :
min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0
lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=18653
write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec):
min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65,
stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths :
1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%,Quoted 2 lines
=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0
lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20%
rand-write: (groupid=3, jobs=1): err= 0: pid=20446
write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) :
min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0
lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%
Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s, mint=60053msec, maxt=60053msecRun status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s, maxb=111425KB/s, mint=60005msec, maxt=60005msecRun status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s, mint=60725msec, maxt=60725msecRun status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s, mint=60822msec, maxt=60822msecDisk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132, in_queue=33434120, util=99.79%--
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
--
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
*arg* don't do bandwith limit tests to 10Mbit/s in parallel...
Am 23.11.2012 14:33, schrieb Stefan Priebe - Profihost AG:
Quoted 60 lines
Am 23.11.2012 14:24, schrieb Stefan Priebe - Profihost AG:
Quoted 3 lines
Am 23.11.2012 14:18, schrieb Mark Nelson:
Quoted 2 lines
Agreed with Alexandre, try putting the journal on a raw partition. That's pretty insane! What controller are you using again?
uhu crazy now i have the same with tmpfs... no idea what's going on here.
I've updated ceph to latest git next. Maybe i should rollback.
Stefan
Quoted 49 lines
Makes no difference. No Controller. Just using the SATA 3.0 onboard Ports for each SSD.
fio directly on SSD gives me 45.000 rand 4k write iops and 270Mb/s seq write speed. So that's ok.
Stefan
Quoted 40 lines
Mark
Quoted 36 lines · Alexandre DERUMIER
so correcly aligned...
Maybe try to use journal directly on the full partition, without xfs ?
----- Mail original -----
De: "Stefan Priebe - Profihost AG" <[email protected]> À: "Alexandre DERUMIER" <[email protected]>
Cc: "Mark Nelson" <[email protected]>, "ceph-devel" <[email protected]>, "Mark Kampe" <[email protected]>, "Sébastien Han" <[email protected]>
Envoyé: Vendredi 23 Novembre 2012 11:49:10
Objet: Re: RBD fio Performance concernsAm 23.11.2012 11:47, schrieb Alexandre DERUMIER:
Quoted 8 lines
Quoted 5 lines
Quoted 5 lines
when i switch the journal to the OSD Disk seperate partiton on each disk
(/dev/sdX1for journal 1GB and/dev/sdX2for OSD) i go down from 23.000
iops to 200 iops random 4k.
O_o, that's seem crazy...
Are you sure that your partitions are correctly aligned ? (starting first partition at sector 2048 is best for ssd)Model: ATA INTEL SSDSC2CW24 (scsi)
Disk/dev/sdb: 468862128s
Sector size (logical/physical): 512B/512B
Partition Table: gptNumber Start End Size File system Name Flags
1 2048s 2342911s 2340864s xfs pri
2 2342912s 468860927s 466518016s xfs priStefan
--
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
Quoted 6 lines · Xiaoxi
Hi Han,
I have a cluster with 8 nodes(each node with 1 SSD as journal and 3 7200 rpm sata disk as data disk), each OSD consist of 1 sata disk together with one 30G partition from the SSD.So in total I have 24 OSDs. My test method is start 24VMs and 24 RBD volumes, make the VM and volume 1:1 paired. Then Aiostress is used as test tools.
In total, I will get ~1000 IOPS for sequential 4K write for each volume and ~60 IOPS for random 4K write.
But there still some strange things on my cluster which I cannot explain the reason,if I clean the pagecache on ceph clusters BEFORE the test, performance drops to half. I don’t understand why old pagecache has any connect with write performance Xiaoxi
That's because when you dump out the page cache you're clearing out all of the OSD's data directory inodes from cache, so it needs to do a bunch of random IO disk hops to read them in, but normally they'd be in-memory since there aren't that many of them and they're accessed pretty frequently. ;) -Greg
Quoted 316 lines
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Sébastien Han
Sent: 2012年11月22日 5:47
To: Mark Nelson
Cc: Alexandre DERUMIER; ceph-devel; Mark Kampe
Subject: Re: RBD fio Performance concernsHi Mark,
Well the most concerning thing is that I have 2 Ceph clusters and both of them show better rand than seq...
I don't have enough background to argue on your assomptions but I could try to skrink my test platform to a single OSD and how it performs. We keep in touch on that one.But it seems that Alexandre and I have the same results (more rand than seq), he has (at least) one cluster and I have 2. Thus I start to think that's not an isolated issue.
Is it different for you? Do you usually get more seq IOPS from an RBD thant rand?
Quoted 18 lines · Mark Nelson
Responding to my own message. :)
Talked to Sage a bit offline about this. I think there are two opposing
forces:On one hand, random IO may be spreading reads/writes out across more OSDs than sequential IO that presumably would be hitting a single OSD more regularly.
On the other hand, you'd expect that sequential writes would be getting coalesced either at the RBD layer or on the OSD, and that the drive/controller/filesystem underneath the OSD would be doing some kind of readahead or prefetching.
On the third hand, maybe coalescing/prefetching is in fact happening but we are IOP limited by some per-osd limitation.
Quoted 277 lines
It could be interesting to do the test with a single OSD and see what happens.
Mark
Quoted 269 lines · Mark Nelson
Hi Guys,
I'm late to this thread but thought I'd chime in. Crazy that you are getting higher performance with random reads/writes vs sequential! It would be interesting to see what kind of throughput smalliobench reports (should be packaged in bobtail) and also see if this behavior happens with cephfs. It's still too early in the morning for me right now to come up with a reasonable explanation for what's going on. It might be worth running blktrace and seekwatcher to see what the io patterns on the underlying disk look like in each case. Maybe something unexpected is going on.
Mark
Quoted 252 lines · Sébastien Han
Which iodepth did you use for those benchs?
Quoted 2 lines
I really don't understand why I can't get more rand read iops with 4K block ...
Me neither, hope to get some clarification from the Inktank guys. It doesn't make any sense to me...
--
Bien cordialement.
Sébastien HAN.Quoted 66 lines · Alexandre DERUMIER
Quoted 4 lines
Quoted 3 lines
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
rand read 4K : 6000 iops
seq read 4K : 3500 iops
seq read 4M : 31iops (1gigabit client bandwith limit)rand write 4k: 6000iops (tmpfs journal) seq write 4k: 1600iops seq write 4M : 31iops (1gigabit client bandwith limit)
I really don't understand why I can't get more rand read iops with 4K block ...
I try with high end cpu for client, it doesn't change nothing. But test cluster use old 8 cores E5420 @ 2.50GHZ (But cpu is around 15% on cluster during read bench)
----- Mail original -----
De: "Sébastien Han" <[email protected] (mailto:[email protected])> À: "Mark Kampe" <[email protected] (mailto:[email protected])>
Cc: "Alexandre DERUMIER" <[email protected] (mailto:[email protected])>, "ceph-devel" <[email protected] (mailto:[email protected])>
Envoyé: Lundi 19 Novembre 2012 19:03:40
Objet: Re: RBD fio Performance concerns@Sage, thanks for the info :)
@Mark:Quoted 3 lines
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
The original benchmark has been performed with 4M block size. And as you can see I still get more IOPS with rand than seq... I just tried with 4M without direct I/O, still the same. I can print fio results if it's needed.
Quoted 6 lines
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
I know why I use direct I/O. It's synthetic benchmarks, it's far away from a real life scenario and how common applications works. I just try to see the maximum I/O throughput that I can get from my RBD. All my applications use buffered I/O.
@Alexandre: is it the same for you? or do you always get more IOPS with seq?
Quoted 160 lines
Thanks to all of you..
Quoted 153 lines · Mark Kampe
Recall:
1. RBD volumes are striped (4M wide) across RADOS objects 2. distinct writes to a single RADOS object are serializedYour sequential 4K writes are direct, depth=256, so there are (at all times) 256 writes queued to the same object. All of your writes are waiting through a very long line, which is adding horrendous latency.
If you want to do sequential I/O, you should do it buffered (so that the writes can be aggregated) or with a 4M block size (very efficient and avoiding object serialization).
We do direct writes for benchmarking, not because it is a reasonable way to do I/O, but because it bypasses the buffer cache and enables us to directly measure cluster I/O throughput (which is what we are trying to optimize). Applications should usually do buffered I/O, to get the (very significant) benefits of caching and write aggregation.
Quoted 130 lines
That's correct for some of the benchmarks. However even with 4K for seq, I still get less IOPS. See below my last fio:
# fio rbd-bench.fio seq-read: (g=0): rw=read, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-read: (g=1): rw=randread, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 seq-write: (g=2): rw=write, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 rand-write: (g=3): rw=randwrite, bs=4K-4K/4K-4K, ioengine=libaio, iodepth=256 fio 1.59 Starting 4 processes Jobs: 1 (f=1): [___w] [57.6% done] [0K/405K /s] [0 /99 iops] [eta 02m:59s] seq-read: (groupid=0, jobs=1): err= 0: pid=15096 read : io=801892KB, bw=13353KB/s, iops=3338 , runt= 60053msec slat (usec): min=8 , max=45921 , avg=296.69, stdev=1584.90 clat (msec): min=18 , max=133 , avg=76.37, stdev=16.63 lat (msec): min=18 , max=133 , avg=76.67, stdev=16.62 bw (KB/s) : min= 0, max=14406, per=31.89%, avg=4258.24, stdev=6239.06 cpu : usr=0.87%, sys=5.57%, ctx=165281, majf=0, minf=279 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=200473/0/0, short=0/0/0
lat (msec): 20=0.01%, 50=9.46%, 100=90.45%, 250=0.10%
rand-read: (groupid=1, jobs=1): err= 0: pid=16846 read :
io=6376.4MB, bw=108814KB/s, iops=27203 , runt= 60005msec slat (usec): min=8 , max=12723 , avg=33.54, stdev=59.87 clat (usec):
min=4642 , max=55760 , avg=9374.10, stdev=970.40 lat (usec):
min=4671 , max=55788 , avg=9408.00, stdev=971.21 bw (KB/s) :
min=105496, max=109136, per=100.00%, avg=108815.48, stdev=648.62
cpu : usr=8.26%, sys=49.11%, ctx=1486259, majf=0, minf=278 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=100.0%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=1632349/0/0, short=0/0/0
lat (msec): 10=83.39%, 20=16.56%, 50=0.04%, 100=0.01%
seq-write: (groupid=2, jobs=1): err= 0: pid=18653
write: io=44684KB, bw=753502 B/s, iops=183 , runt= 60725msec slat (usec): min=8 , max=1246.8K, avg=5402.76, stdev=40024.97 clat (msec): min=25 , max=4868 , avg=1384.22, stdev=470.19 lat (msec):
min=25 , max=4868 , avg=1389.62, stdev=470.17 bw (KB/s) : min= 7, max= 2165, per=104.03%, avg=764.65,
stdev=353.97
cpu : usr=0.05%, sys=0.35%, ctx=5478, majf=0, minf=21 IO depths :
1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.3%,Quoted 2 lines
=64=99.4%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=0/11171/0, short=0/0/0
lat (msec): 50=0.21%, 100=0.44%, 250=0.97%, 500=1.49%, 750=4.60% lat (msec): 1000=12.73%, 2000=66.36%, >=2000=13.20%
rand-write: (groupid=3, jobs=1): err= 0: pid=20446
write: io=208588KB, bw=3429.5KB/s, iops=857 , runt= 60822msec slat (usec): min=10 , max=1693.9K, avg=1148.15, stdev=15210.37 clat (msec): min=22 , max=5639 , avg=297.37, stdev=430.27 lat (msec): min=22 , max=5639 , avg=298.52, stdev=430.84 bw (KB/s) :
min= 0, max= 7728, per=31.44%, avg=1078.21, stdev=2000.45
cpu : usr=0.34%, sys=1.61%, ctx=37183, majf=0, minf=19 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=0.1%, 16=0.1%, 32=0.1%,Quoted 2 lines
=64=99.9%
submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.0%
complete : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%,
Quoted 2 lines
=64=0.1%
issued r/w/d: total=0/52147/0, short=0/0/0
lat (msec): 50=2.82%, 100=25.63%, 250=46.12%, 500=10.36%, 750=5.10% lat (msec): 1000=2.91%, 2000=5.75%, >=2000=1.33%
Run status group 0 (all jobs):
READ: io=801892KB, aggrb=13353KB/s, minb=13673KB/s, maxb=13673KB/s, mint=60053msec, maxt=60053msecRun status group 1 (all jobs):
READ: io=6376.4MB, aggrb=108814KB/s, minb=111425KB/s, maxb=111425KB/s, mint=60005msec, maxt=60005msecRun status group 2 (all jobs):
WRITE: io=44684KB, aggrb=735KB/s, minb=753KB/s, maxb=753KB/s, mint=60725msec, maxt=60725msecRun status group 3 (all jobs):
WRITE: io=208588KB, aggrb=3429KB/s, minb=3511KB/s, maxb=3511KB/s, mint=60822msec, maxt=60822msecDisk stats (read/write):
rbd1: ios=1832984/63270, merge=0/0, ticks=16374236/17012132, in_queue=33434120, util=99.79%--
To unsubscribe from this list: send the line "unsubscribe
ceph-devel" in the body of a message to [email protected] (mailto:[email protected]) More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 3 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
¢éì¹»®&Þ~º&¶¬–+-±éݶ¥Šw®žË›±Êâmç¦^½ébžØ^n‡r¡ö¦zË?ëh™¨èÚ&¢ø®G«?éh®(階ŠÝ¢j"?ú¶m§ÿï?êäz¹Þ–Šàþf£¢·hšˆ§~ˆmš
--
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