[PATCH 3/7] app/test/mempool_perf: size mempool by tested cores

Morten Brørup mb at smartsharesystems.com
Mon Jun 1 14:22:53 CEST 2026


> From: Andrew Rybchenko [mailto:andrew.rybchenko at oktetlabs.ru]
> Sent: Monday, 1 June 2026 10.13
> 
> 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>

LGTM too.
Acked-by: Morten Brørup <mb at smartsharesystems.com>



More information about the dev mailing list