linux fio命令测试磁盘读写速度-金上给的

fio -filename=/tmp/test_randread  -direct=1 -iodepth 1 -thread -rw=randrw -ioengine=psync -bs=16k -size=500M -numjobs=10 -runtime=10 -group_reporting -name=mytest 

ting -name=mytest 
mytest: (g=0): rw=randrw, bs=(R) 16.0KiB-16.0KiB, (W) 16.0KiB-16.0KiB, (T) 16.0KiB-16.0KiB, ioengine=psync, iodepth=1
...
fio-3.7
Starting 10 threads
mytest: Laying out IO file (1 file / 500MiB)
Jobs: 10 (f=10)
mytest: (groupid=0, jobs=10): err= 0: pid=12599: Fri Jan 15 08:59:36 2021
   read: IOPS=80.6k, BW=1260MiB/s (1321MB/s)(2500MiB/1984msec)
    clat (usec): min=27, max=31617, avg=59.35, stdev=186.77
     lat (usec): min=27, max=31617, avg=59.47, stdev=186.77
    clat percentiles (usec):
     |  1.00th=[   41],  5.00th=[   49], 10.00th=[   51], 20.00th=[   53],
     | 30.00th=[   55], 40.00th=[   56], 50.00th=[   57], 60.00th=[   58],
     | 70.00th=[   59], 80.00th=[   60], 90.00th=[   63], 95.00th=[   69],
     | 99.00th=[  120], 99.50th=[  180], 99.90th=[  233], 99.95th=[  289],
     | 99.99th=[ 1893]
   bw (  KiB/s): min=105632, max=140928, per=10.00%, avg=128985.60, stdev=9394.22, samples=30
   iops        : min= 6602, max= 8808, avg=8061.60, stdev=587.14, samples=30
  write: IOPS=80.7k, BW=1260MiB/s (1321MB/s)(2500MiB/1984msec)
    clat (usec): min=28, max=31648, avg=59.79, stdev=190.47
     lat (usec): min=28, max=31648, avg=60.32, stdev=190.50
    clat percentiles (usec):
     |  1.00th=[   41],  5.00th=[   49], 10.00th=[   51], 20.00th=[   53],
     | 30.00th=[   55], 40.00th=[   56], 50.00th=[   57], 60.00th=[   58],
     | 70.00th=[   59], 80.00th=[   60], 90.00th=[   64], 95.00th=[   70],
     | 99.00th=[  128], 99.50th=[  184], 99.90th=[  235], 99.95th=[  302],
     | 99.99th=[ 2040]
   bw (  KiB/s): min=111200, max=140832, per=10.00%, avg=129084.80, stdev=8311.57, samples=30
   iops        : min= 6950, max= 8802, avg=8067.80, stdev=519.47, samples=30
  lat (usec)   : 50=8.30%, 100=90.41%, 250=1.20%, 500=0.06%, 750=0.01%
  lat (usec)   : 1000=0.01%
  lat (msec)   : 2=0.01%, 4=0.01%, 20=0.01%, 50=0.01%
  cpu          : usr=3.89%, sys=25.58%, ctx=321263, majf=0, minf=16
  IO depths    : 1=100.0%, 2=0.0%, 4=0.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 rwts: total=159977,160023,0,0 short=0,0,0,0 dropped=0,0,0,0
     latency   : target=0, window=0, percentile=100.00%, depth=1

Run status group 0 (all jobs):
   READ: bw=1260MiB/s (1321MB/s), 1260MiB/s-1260MiB/s (1321MB/s-1321MB/s), io=2500MiB (2621MB), run=1984-1984msec
  WRITE: bw=1260MiB/s (1321MB/s), 1260MiB/s-1260MiB/s (1321MB/s-1321MB/s), io=2500MiB (2622MB), run=1984-1984msec

Disk stats (read/write):
    dm-0: ios=143601/143570, merge=0/0, ticks=7087/7146, in_queue=14366, util=95.07%, aggrios=159977/160033, aggrmerge=0/0, aggrticks=7863/7885, aggrin_queue=15676, aggrutil=94.20%
  sdb: ios=159977/160033, merge=0/0, ticks=7863/7885, in_queue=15676, util=94.20%

猜你喜欢

转载自blog.csdn.net/yuezhilangniao/article/details/112647062