Sysops Notepad

[Linux] iops 측정 방법 본문

업무/sys

[Linux] iops 측정 방법

sysops 2019. 1. 18. 12:59
728x90


# yum install -y fio


# cpupower idle-info | grep "Number of idle states:"


# for i in `seq 1 $((N-1))`; do cpupower idle-set -d $i; done



16KB 임의 쓰기 작업(IOPS SSD)

# fio --directory=/mnt/p_iops_vol0 --name fio_test_file --direct=1 --rw=randwrite --bs=16k --size=1G --numjobs=16 --time_based --runtime=180 --group_reporting --norandommap


16KB 임의 읽기 작업(IOPS SSD)

# fio --directory=/mnt/p_iops_vol0 --name fio_test_file --direct=1 --rw=randread --bs=16k --size=1G --numjobs=16 --time_based --runtime=180 --group_reporting --norandommap


1MiB 임의 읽기 작업(HDD)

# fio --filename=/dev/<device> --direct=1 --rw=read --randrepeat=0 --ioengine=libaio --bs=1024k --iodepth=8 --time_based=1 --runtime=180 --name=fio_direct_read_test


1MiB 임의 쓰기 작업(HDD)

# fio --filename=/dev/<device> --direct=1 --rw=write --randrepeat=0 --ioengine=libaio --bs=1024k --iodepth=8 --time_based=1 --runtime=180 --name=fio_direct_write_test




# vi fio_rw_mix.cfg


-------------------------------

[global] 

clocksource=clock_gettime

randrepeat=0

runtime=180

offset_increment=100g

 

[sequential-write]

bs=1M

ioengine=libaio

direct=1

iodepth=8

filename=/dev/<device>

do_verify=0

rw=write

rwmixread=0

rwmixwrite=100 


[sequential-read] 

bs=1M

ioengine=libaio

direct=1

iodepth=8

filename=/dev/<device>

do_verify=0

rw=read

rwmixread=100

rwmixwrite=0

-------------------------------


# fio fio_rw_mix.cfg




참고 : 

https://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/benchmark_procedures.html


Throughput in MiB/s = (Volume size in GiB) × (IOPS per GiB) × (I/O size in KiB)


T = VIR


        T          

V  =  -----  

       I R  


728x90
Comments