[dpdk-dev] [PATCH v2] mempool: limit cache_size
Thomas Monjalon
thomas.monjalon at 6wind.com
Wed May 20 10:46:02 CEST 2015
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 <zoltan.kiss at linaro.org>
>
> Acked-by: Olivier Matz <olivier.matz at 6wind.com>
Applied, thanks
> > +#define CALC_CACHE_FLUSHTHRESH(c) \
> > + ((typeof (c))((c) * CACHE_FLUSHTHRESH_MULTIPLIER))
I fixed spacing here:
+ ((typeof(c))((c) * CACHE_FLUSHTHRESH_MULTIPLIER))
More information about the dev
mailing list