先简单做个随机读的对比,有空再完善:
- 普通sata盘:iops=404 Read: 6465KB/s
- SSD盘:iops=15,375 Read:240MB/s
- fusion-io卡 :iops=87,890 READ: 1373.3MB/s
##########普通sata盘
- # fio -filename=/dev/sda6 -direct=1 -iodepth 1 -thread -rw=randread -ioengine=psync -bs=16k -size=20G -numjobs=10 -runtime=1000 -group_reporting -name=mytest
- mytest: (g=0): rw=randread, bs=16K-16K/16K-16K, ioengine=psync, iodepth=1
- ...
- mytest: (g=0): rw=randread, bs=16K-16K/16K-16K, ioengine=psync, iodepth=1
- Starting 10 threads
- Jobs: 10 (f=10): [rrrrrrrrrr] [100.0% done] [6701K/0K /s] [409/0 iops] [eta 00m:00s]
- mytest: (groupid=0, jobs=10): err= 0: pid=12367
- read : io=6314MB, bw=6465KB/s, iops=404, runt=1000038msec
- clat (usec): min=238, max=359317, avg=24727.74, stdev=8008.76
- bw (KB/s) : min= 148, max= 1357, per=10.03%, avg=648.69, stdev=45.59
- cpu : usr=0.21%, sys=0.60%, ctx=5041035, majf=9, minf=192588
- IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
- submit : 00=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
- complete : 00=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
- issued r/w: total=404097/0, short=0/0
- lat (usec): 250=0.01%, 500=0.01%, 1000=0.01%
- lat (msec): 2=0.06%, 44=4.45%, 10=27.98%, 20=26.09%, 50=28.90%
- lat (msec): 10100=10.37%, 2250=2.13%, 500=0.02%
- Run status group 0 (all jobs):
- READ: io=6314MB, aggrb=6465KB/s, minb=6620KB/s, maxb=6620KB/s, mint=1000038msec, maxt=1000038msec
- Disk stats (read/write):
- sda: ios=404192/6226, merge=0/26482, ticks=10106970/1161340, in_queue=11268350, util=100.00%
- # fio -filename=/dev/sda7 -direct=1 -iodepth 1 -thread -rw=randread -ioengine=psync -bs=16k -size=20G -numjobs=10 -runtime=1000 -group_reporting -name=mytest
- mytest: (g=0): rw=randread, bs=16K-16K/16K-16K, ioengine=psync, iodepth=1
- ...
- mytest: (g=0): rw=randread, bs=16K-16K/16K-16K, ioengine=psync, iodepth=1
- Starting 10 threads
- Jobs: 7 (f=7): [rr__r_rrrr] [100.0% done] [249M/0K /s] [16K/0 iops] [eta 00m:00s]]
- mytest: (groupid=0, jobs=10): err= 0: pid=23677
- read : io=200GB, bw=240MB/s, iops=15,375, runt=852464msec
- clat (usec): min=105, max=45,722, avg=644.67, stdev=23.63
- bw (KB/s) : min=17088, max=25248, per=10.01%, avg=24617.93, stdev=142.85
- cpu : usr=9.79%, sys=23.40%, ctx=132119608, majf=12, minf=113037
- IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
- submit : 00=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
- complete : 00=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
- issued r/w: total=13107200/0, short=0/0
- lat (usec): 250=0.01%, 500=0.11%, 750=96.40%, 1000=3.14%
- lat (msec): 2=0.33%, 4=0.03%, 10=0.01%, 20=0.01%, 50=0.01%
- Run status group 0 (all jobs):
- READ: io=200GB, aggrb=240MB/s, minb=246MB/s, maxb=246MB/s, mint=852464msec, maxt=852464msec
- Disk stats (read/write):
- sda: ios=13106958/20433, merge=0/14111, ticks=8258050/18580, in_queue=8275620, util=100.00%
- root@kickseed:~#
- # fio -filename=/dev/fioa1 -direct=1 -iodepth 1 -thread -rw=randread -ioengine=psync -bs=16k -size=20G -numjobs=10 -runtime=1000 -group_reporting -name=mytes>
- mytest: (g=0): rw=randread, bs=16K-16K/16K-16K, ioengine=psync, iodepth=1
- ...
- mytest: (g=0): rw=randread, bs=16K-16K/16K-16K, ioengine=psync, iodepth=1
- fio 1.59
- Starting 10 threads
- Jobs: 5 (f=5): [r__rr__rr_] [100.0% done] [1242M/0K /s] [77.7K/0 iops] [eta 00m:00s]s]
- mytest: (groupid=0, jobs=10): err= 0: pid=15152
- read : io=204800MB, bw=1373.3MB/s, iops=87890 , runt=149131msec
- clat (usec): min=32 , max=19112 , avg=104.98, stdev=91.02
- lat (usec): min=32 , max=19112 , avg=105.23, stdev=91.03
- bw (KB/s) : min=58826, max=197504, per=10.01%, avg=140812.31, stdev=11338.72
- cpu : usr=83.97%, sys=170.02%, ctx=151904837, majf=0, minf=275593
- IO depths : 1=100.0%, 2=0.0%, 4=0.0%, 8=0.0%, 16=0.0%, 32=0.0%, >=64=0.0%
- submit : 00=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0%
- complete : 00=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=13107200/0/0, short=0/0/0
- lat (usec): 50=0.76%, 100=43.55%, 250=54.68%, 500=0.82%, 750=0.07%
- lat (usec): 1000=0.02%
- lat (msec): 2=0.06%, 4=0.03%, 10=0.01%, 20=0.01%
- Run status group 0 (all jobs):
- READ: io=204800MB, aggrb=1373.3MB/s, minb=1406.3MB/s, maxb=1406.3MB/s, mint=149131msec, maxt=149131msec
- Disk stats (read/write):
- fioa: ios=13270075/98135, merge=0/0, ticks=1153080/150044, in_queue=176896, util=1.87%