[PATCH v4 1/3] mempool: split stats from debug

Andrew Rybchenko andrew.rybchenko at oktetlabs.ru
Sun Nov 6 12:32:31 CET 2022


On 11/4/22 15:03, Morten Brørup wrote:
> Split stats from debug, to make mempool statistics available without the
> performance cost of continuously validating the debug cookies in the
> mempool elements.
> 
> mempool_perf_autotest shows the following improvements in rate_persec.
> 
> The cost of enabling mempool debug without this patch:
> -28.1 % and -74.0 %, respectively without and with cache.
> 
> The cost of enabling mempool stats (without debug) after this patch:
> -5.8 % and -21.2 %, respectively without and with cache.
> 
> v4:
> * No changes.
> v3:
> * Update the Programmer's Guide.
> * Update the description of the RTE_MEMPOOL_STAT_ADD macro.
> v2:
> * Fix checkpatch warning:
>    Use C style comments in rte_include.h, not C++ style.
> * Do not rename the rte_mempool_debug_stats structure.
> 
> Signed-off-by: Morten Brørup <mb at smartsharesystems.com>

Good idea, many thanks for the patch.

Reviewed-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>



More information about the dev mailing list