numam-spdk/examples
Alexey Marchuk 31a1b193a2 perf: Add check that io_size is a multiple of ns sector size
It is possible to specify io_size which is not a multiple
of sector size and in that case real IO will have size
of g_io_size_bytes/sector_size. It is integer division, so
IO will be less than requested by the user. At the same
time performance statistics are reported using io_size
specified by the user (which is bigger than real IO size)
so we have wrong statistics (e.g. we can see BW higher
than NIC line rate).
To avoid this confusing situation, add a check that
user's io_size can be evenly divided by ns sector size.

Signed-off-by: Alexey Marchuk <alexeymar@mellanox.com>
Change-Id: Ie63b5b7b3d99b5c51c10ec09e084fd30d6cb33dd
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/9733
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2021-10-28 11:33:14 +00:00
..
accel examples/accel_perf: fix small bugs with copy + crc 2021-09-01 07:34:02 +00:00
bdev bdev_fio: add log_flags 2021-10-14 08:17:28 +00:00
blob markdownlint: enable rule MD003 2021-09-08 21:53:48 +00:00
idxd examples/idxd: Add the perf tool for idxd 2021-09-22 06:54:48 +00:00
interrupt_tgt interrupt_tgt: Fix the interrupt mode usage issue. 2021-07-13 08:59:41 +00:00
ioat build: use DEPDIRS variables to build SPDK_LIB_LIST 2020-12-18 09:40:01 +00:00
nvme perf: Add check that io_size is a multiple of ns sector size 2021-10-28 11:33:14 +00:00
nvmf init: Declare a formal public API 2021-05-26 09:13:34 +00:00
sock net: Remove library 2021-07-13 08:57:58 +00:00
util Util: check the error case of NULL pointer 2021-06-08 08:26:12 +00:00
vmd env_dpdk: save hotplug timeout timestamps separate from rte_devargs 2021-04-23 08:16:24 +00:00
Makefile examples/idxd: Add the perf tool for idxd 2021-09-22 06:54:48 +00:00