fio测试IO命令
fio -filename=/dev/fioa1 -direct=1 -iodepth 1 -thread -rw=randwrite -ioengine=psync -bs=4k -size=50G -numjobs=30 -runtime=1000 -group_reporting -name=randwrite-psync
随机混合读写
fio -filename=/dev/fioa1 -direct=1 -iodepth 1 -thread -rw=randrw -rwmixread=50 -ioengine=psync -bs=4k -size=50G -numjobs=30 -runtime=100 -group_reporting -ioscheduler=noop -name=randrw-psync
随机写
fio --rw=randwrite --ioengine=libaio --iodepth=1024 --bs=16k --filename=/dev/fioa1 --direct=1 --thread --size=10G --name=job1 --offset=0 --name=job2 --offset=10G --name=job3 --offset=20G --name=job4 --offset=30G --name=job5 --offset=40G --name=job6 --offset=50G --name=job7 --offset=60G --name=job8 --offset=70G
job1: (g=0): rw=randwrite, bs=16K-16K/16K-16K, ioengine=libaio, iodepth=1024
job2: (g=0): rw=randwrite, bs=16K-16K/16K-16K, ioengine=libaio, iodepth=1024
job3: (g=0): rw=randwrite, bs=16K-16K/16K-16K, ioengine=libaio, iodepth=1024
job4: (g=0): rw=randwrite, bs=16K-16K/16K-16K, ioengine=libaio, iodepth=1024
job5: (g=0): rw=randwrite, bs=16K-16K/16K-16K, ioengine=libaio, iodepth=1024
job6: (g=0): rw=randwrite, bs=16K-16K/16K-16K, ioengine=libaio, iodepth=1024
job7: (g=0): rw=randwrite, bs=16K-16K/16K-16K, ioengine=libaio, iodepth=1024
job8: (g=0): rw=randwrite, bs=16K-16K/16K-16K, ioengine=libaio, iodepth=1024
fio 2.0.7
Starting 8 threads
Jobs: 4 (f=4): [_w_ww__w] [100.0% done] [0K/1395M /s] [0 /85.2K iops] [eta 00m:00s]
job1: (groupid=0, jobs=1): err= 0: pid=18745
write: io=10240MB, bw=180720KB/s, iops=11295 , runt= 58022msec
slat (usec): min=14 , max=11277 , avg=85.78, stdev=729.39
clat (msec): min=16 , max=354 , avg=90.31, stdev=41.97
lat (msec): min=16 , max=354 , avg=90.40, stdev=41.98
clat percentiles (msec):
| 1.00th=[ 32], 5.00th=[ 44], 10.00th=[ 52], 20.00th=[ 59],
| 30.00th=[ 64], 40.00th=[ 71], 50.00th=[ 78], 60.00th=[ 88],
| 70.00th=[ 101], 80.00th=[ 120], 90.00th=[ 149], 95.00th=[ 178],
| 99.00th=[ 227], 99.50th=[ 245], 99.90th=[ 281], 99.95th=[ 289],
| 99.99th=[ 306]
bw (KB/s) : min=149429, max=231005, per=12.70%, avg=180715.94, stdev=15851.89
lat (msec) : 20=0.10%, 50=9.06%, 100=59.98%, 250=30.45%, 500=0.42%
cpu : usr=58.12%, sys=282.87%, ctx=36330, majf=0, minf=6410
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 : total=r=0/w=655360/d=