Re: [PATCH v2 3/3] mempool: use cache for frequently updated statistics

2022-11-02 Thread Mattias Rönnblom
On 2022-11-02 10:29, Morten Brørup wrote: From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] Sent: Wednesday, 2 November 2022 09.01 On 2022-10-31 12:26, Morten Brørup wrote: [...] +++ b/lib/mempool/rte_mempool.h @@ -86,6 +86,21 @@ struct rte_mempool_cache { uint32_t size;/

RE: [PATCH v2 3/3] mempool: use cache for frequently updated statistics

2022-11-02 Thread Morten Brørup
> From: Mattias Rönnblom [mailto:hof...@lysator.liu.se] > Sent: Wednesday, 2 November 2022 09.01 > > On 2022-10-31 12:26, Morten Brørup wrote: [...] > > +++ b/lib/mempool/rte_mempool.h > > @@ -86,6 +86,21 @@ struct rte_mempool_cache { > > uint32_t size;/**< Size of the cache */ > >

Re: [PATCH v2 3/3] mempool: use cache for frequently updated statistics

2022-11-02 Thread Mattias Rönnblom
On 2022-10-31 12:26, Morten Brørup wrote: When built with statistics enabled (RTE_LIBRTE_MEMPOOL_STATS defined), the performance of mempools with caches is improved as follows. When accessing objects in the mempool, either the put_bulk and put_objs or the get_success_bulk and get_success_objs st

[PATCH v2 3/3] mempool: use cache for frequently updated statistics

2022-10-31 Thread Morten Brørup
When built with statistics enabled (RTE_LIBRTE_MEMPOOL_STATS defined), the performance of mempools with caches is improved as follows. When accessing objects in the mempool, either the put_bulk and put_objs or the get_success_bulk and get_success_objs statistics counters are likely to be increment