[태그:] iops

  • fio 를 사용하여 디스크 IOPS 측정

    • 랜덤 읽기
    fio --name disk-test --direct=1 --rw=randread --bs=4k --size=1G --numjobs=4 --time_based --runtime=180 --group_reporting --norandommap
    
    ###
    
    disk-test: (g=0): rw=randread, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=psync, iodepth=1
    ...
    fio-3.28
    Starting 4 processes
    disk-test: Laying out IO file (1 file / 1024MiB)
    disk-test: Laying out IO file (1 file / 1024MiB)
    disk-test: Laying out IO file (1 file / 1024MiB)
    disk-test: Laying out IO file (1 file / 1024MiB)
    Jobs: 4 (f=4): [r(4)][100.0%][r=70.3MiB/s][r=18.0k IOPS][eta 00m:00s]
    disk-test: (groupid=0, jobs=4): err= 0: pid=10013: Mon Sep  2 01:11:56 2024
      read: IOPS=27.9k, BW=109MiB/s (114MB/s)(19.1GiB/180001msec)
        clat (usec): min=35, max=35614, avg=142.43, stdev=65.19
         lat (usec): min=35, max=35614, avg=142.54, stdev=65.20
        clat percentiles (usec):
         |  1.00th=[   76],  5.00th=[   82], 10.00th=[   87], 20.00th=[  100],
         | 30.00th=[  116], 40.00th=[  125], 50.00th=[  135], 60.00th=[  149],
         | 70.00th=[  163], 80.00th=[  174], 90.00th=[  202], 95.00th=[  219],
         | 99.00th=[  285], 99.50th=[  330], 99.90th=[  523], 99.95th=[  676],
         | 99.99th=[ 1500]
       bw (  KiB/s): min=57668, max=136976, per=100.00%, avg=111576.25, stdev=2383.78, samples=1436
       iops        : min=14417, max=34244, avg=27893.84, stdev=595.95, samples=1436
      lat (usec)   : 50=0.01%, 100=20.35%, 250=77.37%, 500=2.16%, 750=0.08%
      lat (usec)   : 1000=0.02%
      lat (msec)   : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01%
      cpu          : usr=2.19%, sys=7.89%, ctx=5016450, majf=0, minf=62
      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=5016461,0,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=109MiB/s (114MB/s), 109MiB/s-109MiB/s (114MB/s-114MB/s), io=19.1GiB (20.5GB), run=180001-180001msec
    
    Disk stats (read/write):
      vda: ios=5012300/118, merge=0/63, ticks=670091/17, in_queue=670108, util=100.00%
    • 랜덤 쓰기
    fio --name disk-test --direct=1 --rw=randwrite --bs=4k --size=1G --numjobs=4 --time_based --runtime=180 --group_reporting --norandommap
    
    ###
    
    disk-test: (g=0): rw=randwrite, bs=(R) 4096B-4096B, (W) 4096B-4096B, (T) 4096B-4096B, ioengine=psync, iodepth=1
    ...
    fio-3.28
    Starting 4 processes
    Jobs: 4 (f=4): [w(4)][100.0%][w=276MiB/s][w=70.7k IOPS][eta 00m:00s]
    disk-test: (groupid=0, jobs=4): err= 0: pid=10071: Mon Sep  2 01:15:09 2024
      write: IOPS=68.7k, BW=269MiB/s (282MB/s)(47.2GiB/180002msec); 0 zone resets
        clat (usec): min=19, max=17606, avg=57.27, stdev=60.48
         lat (usec): min=19, max=17607, avg=57.43, stdev=60.50
        clat percentiles (usec):
         |  1.00th=[   29],  5.00th=[   34], 10.00th=[   37], 20.00th=[   41],
         | 30.00th=[   44], 40.00th=[   47], 50.00th=[   51], 60.00th=[   56],
         | 70.00th=[   64], 80.00th=[   73], 90.00th=[   82], 95.00th=[   89],
         | 99.00th=[  130], 99.50th=[  161], 99.90th=[  338], 99.95th=[  717],
         | 99.99th=[ 1893]
       bw (  KiB/s): min=117120, max=386264, per=100.00%, avg=275169.80, stdev=8585.38, samples=1436
       iops        : min=29280, max=96566, avg=68792.43, stdev=2146.33, samples=1436
      lat (usec)   : 20=0.01%, 50=48.10%, 100=49.46%, 250=2.28%, 500=0.09%
      lat (usec)   : 750=0.02%, 1000=0.01%
      lat (msec)   : 2=0.02%, 4=0.01%, 10=0.01%, 20=0.01%
      cpu          : usr=4.41%, sys=15.55%, ctx=12371462, majf=0, minf=52
      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=0,12373012,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):
      WRITE: bw=269MiB/s (282MB/s), 269MiB/s-269MiB/s (282MB/s-282MB/s), io=47.2GiB (50.7GB), run=180002-180002msec
    
    Disk stats (read/write):
      vda: ios=0/12365137, merge=0/81, ticks=0/619056, in_queue=619062, util=100.00%