Re: [PATCH] flowcache: Increase threshold for refusing new allocations

2016-11-23 Thread Steffen Klassert
On Mon, Nov 21, 2016 at 03:48:21PM +0100, Miroslav Urbanek wrote: > The threshold for OOM protection is too small for systems with large > number of CPUs. Applications report ENOBUFs on connect() every 10 > minutes. > > The problem is that the variable net->xfrm.flow_cache_gc_count is a > global c

[PATCH] flowcache: Increase threshold for refusing new allocations

2016-11-21 Thread Miroslav Urbanek
The threshold for OOM protection is too small for systems with large number of CPUs. Applications report ENOBUFs on connect() every 10 minutes. The problem is that the variable net->xfrm.flow_cache_gc_count is a global counter while the variable fc->high_watermark is a per-CPU constant. Take the n