perftest icon indicating copy to clipboard operation
perftest copied to clipboard

latency test with duration flag doesn't report min/max/median latency

Open manuks88 opened this issue 4 years ago • 1 comments

Hi, when running latency tests with "iterations" (-n) flag, the tool reports min/max/avg/std_dev/99/99.9 latencies. The same latency test when run with "duration" (-D) flag reports only avg latency. How to get the same report for "duration" based tests? Iteration test : ib_write_lat -F -d mlx5_0 -I 64 -n 100000 -s 1 20.2.1.2 Duration test : ib_write_lat -F -d mlx5_0 -I 64 -D 20 -s 1 20.2.1.2

manuks88 avatar Mar 20 '20 06:03 manuks88

This might be a little tricky because the current implementation holds an array of size "iterations" in order to calculate the mentioned statistics. On duration mode, such an array doesn't exist because the maximum iterations count (array size) isn't bound.

firasj avatar Mar 22 '20 09:03 firasj

Thanks @firasj for your answer. closing the Issue

HassanKhadour avatar Dec 01 '22 12:12 HassanKhadour