Skip to content

RFC add standalone mempool perf testing app

Bruce Richardson dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3app/test-mempool-perf: skeleton of new test appapp/meson.build app/test-mempool-perf/main.c app/test-mempool-perf/meson.build +2 more+479 -00 replies
2/3app/test-mempool-perf: add perf test logicapp/test-mempool-perf/main.c app/test-mempool-perf/meson.build doc/guides/tools/mempoolperf.rst+282 -21 reply
3/3app/test-mempool-perf: add testing in pipeline modelapp/test-mempool-perf/main.c app/test-mempool-perf/meson.build doc/guides/tools/mempoolperf.rst+297 -121 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] add standalone mempool perf testing app

While the mempool perf tests in the autotest suite cover a wide range of possibilities, there is no way they can cover all possible app permutations, and there is no way to parameterize running a unit test.

To cover this gap, this patchset proposes a new test-mempool-perf app which can be used to test out mempool performance across a range of different scenarios. The options cover (not an exhaustive list):

* underlying mempool driver to use
* mempool cache size
* burst size
* whether to use pipeline or run to completion models
* for run-to-completion how much variability in ordering of allocs and frees.
* whether we touch the packets between alloc and free

To simplify the use of the app, if run without parameters the user is queried for the options to use, and the app thereafter prints the cmdline to use for future re-runs with same settings.

Bruce Richardson (3):
app/test-mempool-perf: skeleton of new test app app/test-mempool-perf: add perf test logic app/test-mempool-perf: add testing in pipeline model

 app/meson.build                   |   1 +
 app/test-mempool-perf/main.c      | 808 ++++++++++++++++++++++++++++++
 app/test-mempool-perf/meson.build |   8 +
 doc/guides/tools/index.rst        |   1 +
 doc/guides/tools/mempoolperf.rst  | 173 +++++++
 5 files changed, 991 insertions(+)
 create mode 100644 app/test-mempool-perf/main.c
 create mode 100644 app/test-mempool-perf/meson.build
 create mode 100644 doc/guides/tools/mempoolperf.rst

--
2.53.0