[PATCH 3/7] app/test/mempool_perf: size mempool by tested cores
Andrew Rybchenko
andrew.rybchenko at oktetlabs.ru
Mon Jun 1 10:12:30 CEST 2026
On 5/29/26 8:10 PM, Stephen Hemminger wrote:
> The mempool size is computed from rte_lcore_count() so on systems
> with many lcores the test requires multiple GB of hugepages even
> for the single-core and dual-core variants. On a 20 lcore system
> with 2 GB of hugepages the test fails with:
>
> cannot populate ring_mp_mc mempool
> Test Failed
>
> Size the four mempools by the number of cores actually exercised.
>
> Return TEST_SKIPPED rather than -1 when allocation or populate of
> a mempool fails, so insufficient memory is reported as a skip and
> not as a test failure. Propagate the skip through the combined
> mempool_perf_autotest wrapper.
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Acked-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>
More information about the dev
mailing list