Re: [PATCH v6 4/4] mempool: flush cache completely on overflow

2022-10-14 Thread Olivier Matz
On Sun, Oct 09, 2022 at 04:44:08PM +0200, Morten Brørup wrote: > > From: Andrew Rybchenko [mailto:andrew.rybche...@oktetlabs.ru] > > Sent: Sunday, 9 October 2022 15.38 > > To: Olivier Matz > > Cc: dev@dpdk.org; Morten Brørup; Bruce Richardson > > Subject: [PATC

RE: [PATCH v6 4/4] mempool: flush cache completely on overflow

2022-10-09 Thread Morten Brørup
> From: Andrew Rybchenko [mailto:andrew.rybche...@oktetlabs.ru] > Sent: Sunday, 9 October 2022 15.38 > To: Olivier Matz > Cc: dev@dpdk.org; Morten Brørup; Bruce Richardson > Subject: [PATCH v6 4/4] mempool: flush cache completely on overflow > > The cache was still full a

[PATCH v6 4/4] mempool: flush cache completely on overflow

2022-10-09 Thread Andrew Rybchenko
The cache was still full after flushing. In the opposite direction, i.e. when getting objects from the cache, the cache is refilled to full level when it crosses the low watermark (which happens to be zero). Similarly, the cache should be flushed to empty level when it crosses the high watermark (w