Skip to contentSkip to conversation

ntb: ntb perf tool

PATCH Superseded Dave Jiang 1 participant 1 message Jan 11, 2016 NTB driver core

v3 of 6 Superseded Latest is v6 →

lore
Share & tools
lore

Dave Jiang

author maintainer
#0 lore raw

PATCH 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.

---
 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
index 01852f9..a5d0eda 100644
@@ -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
index 0ea32a3..9e77e0b 100644
@@ -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