Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6b226487 authored by Miroslav Urbanek's avatar Miroslav Urbanek Committed by Steffen Klassert
Browse files

flowcache: Increase threshold for refusing new allocations



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 number of CPUs into account as well.

Fixes: 6ad3122a ("flowcache: Avoid OOM condition under preasure")
Reported-by: default avatarLukáš Koldrt <lk@excello.cz>
Tested-by: default avatarJan Hejl <jh@excello.cz>
Signed-off-by: default avatarMiroslav Urbanek <mu@miroslavurbanek.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent 330e832a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment