bdevperf: Unify the units with perf.

Other tools have already changed these units to IOPS and MiB.

Unify the units, that makes the result comparing more clear
with bdevperf and perf.

Signed-off-by: dongx.yi <dongx.yi@intel.com>
Change-Id: Iedc47f5757839e1abbcbaf5d97179c90ab130773
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/478280
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Alexey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
dongx.yi 2019-12-18 12:33:18 -05:00 committed by Tomasz Zawadzki
parent 7d3d2b62e8
commit c3fe5e4adc

View File

@ -1019,7 +1019,7 @@ performance_dump(uint64_t io_time_in_usec, uint64_t ema_period)
io_per_second = get_ema_io_per_second(target, ema_period);
}
mb_per_second = io_per_second * g_io_size / (1024 * 1024);
printf("\r %-20s: %10.2f IO/s %10.2f MB/s\n",
printf("\r %-20s: %10.2f IOPS %10.2f MiB/s\n",
target->name, io_per_second, mb_per_second);
total_io_per_second += io_per_second;
total_mb_per_second += mb_per_second;
@ -1028,7 +1028,7 @@ performance_dump(uint64_t io_time_in_usec, uint64_t ema_period)
}
printf("\r =====================================================\n");
printf("\r %-20s: %10.2f IO/s %10.2f MB/s\n",
printf("\r %-20s: %10.2f IOPS %10.2f MiB/s\n",
"Total", total_io_per_second, total_mb_per_second);
fflush(stdout);