[dpdk-dev] [PATCH v2] mempool: limit cache_size

2015-05-20 Thread Thomas Monjalon
2015-05-20 10:32, Olivier MATZ: > On 05/18/2015 05:35 PM, Zoltan Kiss wrote: > > Otherwise cache_flushthresh can be bigger than n, and > > a consumer can starve others by keeping every element > > either in use or in the cache. > > > > Signed-off-by: Zoltan Kiss > > Acked-by: Olivier Matz Appli

[dpdk-dev] [PATCH v2] mempool: limit cache_size

2015-05-20 Thread Olivier MATZ
On 05/18/2015 05:35 PM, Zoltan Kiss wrote: > Otherwise cache_flushthresh can be bigger than n, and > a consumer can starve others by keeping every element > either in use or in the cache. > > Signed-off-by: Zoltan Kiss Acked-by: Olivier Matz > --- > v2: use macro for calculation, with proper c

[dpdk-dev] [PATCH v2] mempool: limit cache_size

2015-05-18 Thread Zoltan Kiss
Otherwise cache_flushthresh can be bigger than n, and a consumer can starve others by keeping every element either in use or in the cache. Signed-off-by: Zoltan Kiss --- v2: use macro for calculation, with proper casting lib/librte_mempool/rte_mempool.c | 8 +--- lib/librte_mempool/rte_memp

[dpdk-dev] [PATCH v2] mempool: limit cache_size

2015-05-18 Thread Ananyev, Konstantin
> -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Zoltan Kiss > Sent: Monday, May 18, 2015 4:35 PM > To: dev at dpdk.org > Subject: [dpdk-dev] [PATCH v2] mempool: limit cache_size > > Otherwise cache_flushthresh can be bigger than n,