RE: [PATCH v4 3/3] mempool: use cache for frequently updated stats

2022-11-08 Thread Morten Brørup
> From: Konstantin Ananyev [mailto:konstantin.anan...@huawei.com] > Sent: Tuesday, 8 November 2022 10.20 > > > When built with stats enabled (RTE_LIBRTE_MEMPOOL_STATS defined), the > > performance of mempools with caches is improved as follows. > > > > When accessing objects in the mempool, either

RE: [PATCH v4 3/3] mempool: use cache for frequently updated stats

2022-11-08 Thread Konstantin Ananyev
> When built with stats 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 i

Re: [PATCH v4 3/3] mempool: use cache for frequently updated stats

2022-11-06 Thread Mattias Rönnblom
On 2022-11-04 13:03, Morten Brørup wrote: When built with stats 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 statist

RE: [PATCH v4 3/3] mempool: use cache for frequently updated stats

2022-11-06 Thread Morten Brørup
> From: Andrew Rybchenko [mailto:andrew.rybche...@oktetlabs.ru] > Sent: Sunday, 6 November 2022 13.00 > > On 11/6/22 14:50, Morten Brørup wrote: > >> From: Andrew Rybchenko [mailto:andrew.rybche...@oktetlabs.ru] > >> Sent: Sunday, 6 November 2022 12.41 > >> > >> On 11/4/22 15:03, Morten Brørup wro

Re: [PATCH v4 3/3] mempool: use cache for frequently updated stats

2022-11-06 Thread Andrew Rybchenko
On 11/6/22 14:50, Morten Brørup wrote: From: Andrew Rybchenko [mailto:andrew.rybche...@oktetlabs.ru] Sent: Sunday, 6 November 2022 12.41 On 11/4/22 15:03, Morten Brørup wrote: [...] +/** + * @internal When stats is enabled, store some statistics. + * + * @param cache + * Pointer to the mem

RE: [PATCH v4 3/3] mempool: use cache for frequently updated stats

2022-11-06 Thread Morten Brørup
> From: Andrew Rybchenko [mailto:andrew.rybche...@oktetlabs.ru] > Sent: Sunday, 6 November 2022 12.41 > > On 11/4/22 15:03, Morten Brørup wrote: [...] > > +/** > > + * @internal When stats is enabled, store some statistics. > > + * > > + * @param cache > > + * Pointer to the memory pool cache.

Re: [PATCH v4 3/3] mempool: use cache for frequently updated stats

2022-11-06 Thread Andrew Rybchenko
On 11/4/22 15:03, Morten Brørup wrote: When built with stats 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