[dpdk-dev] [PATCH v2 0/4] app/test: unit test to measure cycles per packet
cunming.liang at intel.com
Fri Oct 10 14:29:57 CEST 2014
Rebase code to the latest master branch.
Tested-by: Zhaochen Zhan <zhaochen.zhan at intel.com>
This patch has been verified on ixgbe and it is ready to be integrated to dpdk.org.
For e1000 and i40e, lacking loopback supporting, this patch can't support them for now.
It provides unit test to measure cycles/packet in NIC loopback mode.
It simply gives the average cycles of IO used per packet without test equipment.
When doing the test, make sure the link is UP.
There's two stream control mode support, one is continues, another is burst.
The former continues to forward the injected packets until reaching a certain amount of number.
The latter one stop when all the injected packets are received.
In burst stream, now measure two situations, with or without desc. cache conflict.
By default, it runs in continues stream mode to measure the whole rxtx.
1. Run unit test app in interactive mode
app/test -c f -n 4 -- -i
2. Set stream control mode, by default is continuous
3. If choose continuous stream, there are another two options can configure
3.1 choose rx/tx pair, default is vector
Note: To get acurate scalar fast, plz choose 'vector' or 'hybrid' without INC_VEC=y in config
3.2 choose the area of masurement, default is rxtx
4. Run and wait for the result
For who simply just want to see how much cycles cost per packet.
Compile DPDK, Run 'app/test', and type 'pmd_perf_autotest', that's it.
Nothing else needs to configure.
Using other options when you understand and what to measures more.
*** BLURB HERE ***
Cunming Liang (4):
app/test: unit test for rx and tx cycles/packet
app/test: measure standalone rx or tx cycles/packet
app/test: add unit test to measure RX burst cycles
app/test: allow to create packets in different sizes
app/test/Makefile | 1 +
app/test/commands.c | 111 +++++
app/test/packet_burst_generator.c | 26 +-
app/test/packet_burst_generator.h | 11 +-
app/test/test.h | 6 +
app/test/test_link_bonding.c | 39 +-
app/test/test_pmd_perf.c | 922 +++++++++++++++++++++++++++++++++++
lib/librte_pmd_ixgbe/ixgbe_ethdev.c | 6 +
8 files changed, 1089 insertions(+), 33 deletions(-)
create mode 100644 app/test/test_pmd_perf.c
More information about the dev