intel / lkp-tests

Linux Kernel Performance tests
GNU General Public License v2.0
251 stars 153 forks source link

programs/fio/parse: fix fio clat metric #356

Closed findns94 closed 6 months ago

findns94 commented 6 months ago

fix metric error: #{ops}clat#{sp}%_us should be #{ops}clat#{sp}%_ns instead

here is an example of fio test $ fio -directory=/data20 -direct=1 -iodepth 1 -thread -ioengine=psync -rw=randwrite -bs=4k -size=1G -numjobs=10 -runtime=20 -group_reporting -name=randwrite_4k_1G --output-format=json the output example will be

"clat_ns" : { "min" : 36231, "max" : 5944751, "mean" : 145753.435800, "stddev" : 124541.798509, "N" : 1360130, "percentile" : { "1.000000" : 61184, "5.000000" : 86528, "10.000000" : 94720, "20.000000" : 97792, "30.000000" : 99840, "40.000000" : 102912, "50.000000" : 108032, "60.000000" : 116224, "70.000000" : 134144, "80.000000" : 162816, "90.000000" : 214016, "95.000000" : 296960, "99.000000" : 921600, "99.500000" : 1044480, "99.900000" : 1105920, "99.950000" : 1138688, "99.990000" : 1204224 } },

therefore, the clat metric should be ns instead of us

Signed-off-by: Yue Zhao findns94@gmail.com

rli9 commented 6 months ago

thanks for the patch