numam-dpdk/app
Wisam Jaddo 070316d01d app/flow-perf: add multi-core rule insertion and deletion
One of the ways to increase the insertion/deletion rate is to use
multi-threaded insertion/deletion. Thus it's needed to have support
for testing and measure those rates using flow-perf application.

Now we generate cores and distribute all flows to those cores,
and start inserting/deleting in parallel.

The app now receive the cores count to use from command line option,
then it distribute the rte_flow rules evenly between the cores, and
start inserting/deleting. Each worker will report it's own results,
and in the end the MAIN worker will report the total results for all
cores.

The total results are calculated using RULES_COUNT divided over
max time used between all cores.

Also this touches the memory area, since inserting using multiple cores
in same time the pre solution for memory is not valid, thus now we save
memory before and after each allocation for all cores. In the end we
pick the min pre memory and the max post memory from all cores.

The difference between those values represent the total memory consumed
by the total rte_flow rules from all cores, and then report the total
size of single rte_flow in byte for each port.

How to use this feature:
--cores=N

Where 1 =< N <= RTE_MAX_LCORE

Signed-off-by: Wisam Jaddo <wisamm@nvidia.com>
Reviewed-by: Alexander Kozyrev <akozyrev@nvidia.com>
Reviewed-by: Suanming Mou <suanmingm@nvidia.com>
2021-01-07 15:14:02 +01:00
..
pdump eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
proc-info app/procinfo: clean old build macro 2020-10-26 12:03:31 +01:00
test test/eal: remove unneeded command 2020-11-20 09:58:55 +01:00
test-acl eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
test-bbdev app/bbdev: dequeue full ring in offload test 2020-11-02 09:24:41 +01:00
test-cmdline cmdline: avoid name clash with Windows system types 2020-11-05 17:49:00 +01:00
test-compress-perf eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
test-crypto-perf eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
test-eventdev app/eventdev: check timer adadpters number 2020-11-13 09:52:11 +01:00
test-fib fix spellings that Lintian complains about 2020-11-04 20:11:31 +01:00
test-flow-perf app/flow-perf: add multi-core rule insertion and deletion 2021-01-07 15:14:02 +01:00
test-pipeline eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
test-pmd app/testpmd: fix build without i40e 2020-11-26 01:01:02 +01:00
test-regex app/regex: add job context 2020-11-03 02:06:03 +01:00
test-sad eal: rename lcore master and slave 2020-10-20 13:17:08 +02:00
meson.build build: fix plugin load on static build 2021-01-05 23:01:36 +01:00