使用fio命令查看磁盘iops

具体命令: fio -filename=./localhost.2019-05-08.log -direct=1 -iodepth 1 -thread -rw=randrw -ioengine=psync -bs=16k -size=500M -numjobs=10 -runtime=10 -group_reporting -name=mytest

结果如下:

mytest: (g=0): rw=randrw, bs=16K-16K/16K-16K/16K-16K, ioengine=psync, iodepth=1
...
fio-2.2.10
Starting 10 threads
mytest: Laying out IO file(s) (1 file(s) / 500MB)
Jobs: 10 (f=10): [m(10)] [100.0% done] [1934KB/1310KB/0KB /s] [120/81/0 iops] [eta 00m:00s]
mytest: (groupid=0, jobs=10): err= 0: pid=28368: Mon Jul 15 17:03:33 2019
  read : io=19040KB, bw=1857.3KB/s, iops=116, runt= 10252msec
    clat (msec): min=4, max=219, avg=56.96, stdev=24.28
     lat (msec): min=4, max=219, avg=56.96, stdev=24.28
    clat percentiles (msec):
     |  1.00th=[   12],  5.00th=[   25], 10.00th=[   32], 20.00th=[   39],
     | 30.00th=[   45], 40.00th=[   51], 50.00th=[   55], 60.00th=[   60],
     | 70.00th=[   66], 80.00th=[   72], 90.00th=[   84], 95.00th=[   94],
     | 99.00th=[  141], 99.50th=[  206], 99.90th=[  215], 99.95th=[  221],
     | 99.99th=[  221]
    bw (KB  /s): min=   57, max=  311, per=10.21%, avg=189.69, stdev=52.24
  write: io=15296KB, bw=1492.1KB/s, iops=93, runt= 10252msec
    clat (usec): min=350, max=254738, avg=34317.08, stdev=32044.09
     lat (usec): min=351, max=254739, avg=34317.83, stdev=32044.08
    clat percentiles (usec):
     |  1.00th=[  386],  5.00th=[  418], 10.00th=[  446], 20.00th=[  498],
     | 30.00th=[  588], 40.00th=[29056], 50.00th=[38144], 60.00th=[45312],
     | 70.00th=[52480], 80.00th=[59648], 90.00th=[69120], 95.00th=[78336],
     | 99.00th=[112128], 99.50th=[209920], 99.90th=[254976], 99.95th=[254976],
     | 99.99th=[254976]
    bw (KB  /s): min=   29, max=  355, per=10.20%, avg=152.15, stdev=60.40
    lat (usec) : 500=9.27%, 750=5.08%, 1000=0.28%
    lat (msec) : 2=0.19%, 4=1.72%, 10=0.70%, 20=1.40%, 50=33.18%
    lat (msec) : 100=45.62%, 250=2.52%, 500=0.05%
  cpu          : usr=0.06%, sys=0.09%, ctx=4322, majf=0, minf=0
  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    : total=r=1190/w=956/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0
     latency   : target=0, window=0, percentile=100.00%, depth=1

Run status group 0 (all jobs):
   READ: io=19040KB, aggrb=1857KB/s, minb=1857KB/s, maxb=1857KB/s, mint=10252msec, maxt=10252msec
  WRITE: io=15296KB, aggrb=1492KB/s, minb=1492KB/s, maxb=1492KB/s, mint=10252msec, maxt=10252msec

Disk stats (read/write):
  sda: ios=1190/957, merge=0/2, ticks=25052/1140, in_queue=26440, util=98.37%

posted @ 2019-07-15 17:04  恋在那时  阅读(3186)  评论(0编辑  收藏  举报