ablog

不器用で落着きのない技術者のメモ

ベンチマークツールfioを使ってみる

インストール

[root@www****** ~]# yum install fio

...

Running Transaction
  Installing : fio-2.0.13-1.el6.x86_64                                                                                                  1/1 
  Verifying  : fio-2.0.13-1.el6.x86_64                                                                                                  1/1 

Installed:
  fio.x86_64 0:2.0.13-1.el6                                                                                                                 

Complete!

使ってみる

[yoheia@www****** ~]$ fio -rw=randwrite -bs=4k -size=100m -directory=/tmp -direct=1 -numjobs=2 -runtime=10 -name=file1
file1: (g=0): rw=randwrite, bs=4K-4K/4K-4K/4K-4K, ioengine=sync, iodepth=1
file1: (g=0): rw=randwrite, bs=4K-4K/4K-4K/4K-4K, ioengine=sync, iodepth=1
fio-2.0.13
Starting 2 processes
Jobs: 2 (f=2): [ww] [100.0% done] [0K/29954K/0K /s] [0 /7488 /0  iops] [eta 00m:00s]
file1: (groupid=0, jobs=1): err= 0: pid=7496: Fri Sep 27 21:34:54 2013
  write: io=102400KB, bw=13657KB/s, iops=3414 , runt=  7498msec
    clat (usec): min=108 , max=17992 , avg=286.11, stdev=245.72
     lat (usec): min=109 , max=17993 , avg=287.43, stdev=245.75
    clat percentiles (usec):
     |  1.00th=[  149],  5.00th=[  171], 10.00th=[  187], 20.00th=[  209],
     | 30.00th=[  227], 40.00th=[  243], 50.00th=[  258], 60.00th=[  278],
     | 70.00th=[  302], 80.00th=[  334], 90.00th=[  390], 95.00th=[  454],
     | 99.00th=[  668], 99.50th=[  820], 99.90th=[ 1928], 99.95th=[ 3536],
     | 99.99th=[14144]
    bw (KB/s)  : min=12344, max=15040, per=50.00%, avg=13656.57, stdev=914.27
    lat (usec) : 250=44.50%, 500=52.21%, 750=2.62%, 1000=0.34%
    lat (msec) : 2=0.23%, 4=0.05%, 10=0.02%, 20=0.02%
  cpu          : usr=3.27%, sys=18.33%, ctx=27468, majf=0, minf=25
  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=0/w=25600/d=0, short=r=0/w=0/d=0
file1: (groupid=0, jobs=1): err= 0: pid=7497: Fri Sep 27 21:34:54 2013
  write: io=102400KB, bw=13690KB/s, iops=3422 , runt=  7480msec
    clat (usec): min=106 , max=17982 , avg=285.16, stdev=242.52
     lat (usec): min=107 , max=17983 , avg=286.49, stdev=242.54
    clat percentiles (usec):
     |  1.00th=[  149],  5.00th=[  169], 10.00th=[  185], 20.00th=[  207],
     | 30.00th=[  227], 40.00th=[  243], 50.00th=[  258], 60.00th=[  278],
     | 70.00th=[  302], 80.00th=[  334], 90.00th=[  390], 95.00th=[  454],
     | 99.00th=[  668], 99.50th=[  820], 99.90th=[ 1944], 99.95th=[ 3248],
     | 99.99th=[14144]
    bw (KB/s)  : min=12400, max=15168, per=50.16%, avg=13700.71, stdev=896.95
    lat (usec) : 250=44.84%, 500=51.81%, 750=2.72%, 1000=0.31%
    lat (msec) : 2=0.23%, 4=0.05%, 10=0.03%, 20=0.02%
  cpu          : usr=3.41%, sys=18.22%, ctx=27455, majf=0, minf=27
  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=0/w=25600/d=0, short=r=0/w=0/d=0

Run status group 0 (all jobs):
  WRITE: io=204800KB, aggrb=27313KB/s, minb=13656KB/s, maxb=13689KB/s, mint=7480msec, maxt=7498msec

Disk stats (read/write):
  vda: ios=0/50568, merge=0/1, ticks=0/10947, in_queue=10898, util=81.01%