ntb: ntb perf tool
Dave Jiang
maintainerPATCH v3 1/1 ntb: ntb perf tool
Providing raw performance data via a tool that directly access data from NTB w/o any software overhead. This allows measurement of the hardware performance limit. In revision one we are only doing single direction CPU and DMA writes. Eventually we will provide bi-directional writes.
The measurement using DMA engine for NTB performance measure does not measure the raw performance of DMA engine over NTB due to software overhead. But it should provide the peak performance through the Linux DMA driver.
Signed-off-by Dave Jiang <[email protected]>
--- drivers/ntb/test/Kconfig | 8 drivers/ntb/test/Makefile | 1 drivers/ntb/test/ntb_perf.c | 752 +++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 761 insertions(+) create mode 100644 drivers/ntb/test/ntb_perf.c
drivers/ntb/test/Kconfig +8 -0
@@ -17,3 +17,11 @@ config NTB_TOOL functioning at a basic level. If unsure, say N. + +config NTB_PERF + tristate "NTB RAW Perf Measuring Tool" + help + This is a tool to measure raw NTB performance by transferring data + to and from the window without additional software interaction. + + If unsure, say N.
drivers/ntb/test/Makefile +1 -0
@@ -1,2 +1,3 @@ obj-$(CONFIG_NTB_PINGPONG) += ntb_pingpong.o obj-$(CONFIG_NTB_TOOL) += ntb_tool.o +obj-$(CONFIG_NTB_PERF) += ntb_perf.o
drivers/ntb/test/ntb_perf.c new file +752 -0
752 lines not on this page · raw message