summaryrefslogtreecommitdiff
path: root/net/ipv6
diff options
context:
space:
mode:
authorMiroslav Urbanek <mu@miroslavurbanek.com>2016-11-21 14:48:21 (GMT)
committerSteffen Klassert <steffen.klassert@secunet.com>2016-11-23 05:37:09 (GMT)
commit6b226487815574193c1da864f2eac274781a2b0c (patch)
treeab9132564a33ee87fb6fc5f810b70531e9445ab5 /net/ipv6
parent330e832abda923df06a4ca6d3faac6e9c1b42548 (diff)
downloadlinux-6b226487815574193c1da864f2eac274781a2b0c.tar.xz
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: 6ad3122a08e3 ("flowcache: Avoid OOM condition under preasure") Reported-by: Lukáš Koldrt <lk@excello.cz> Tested-by: Jan Hejl <jh@excello.cz> Signed-off-by: Miroslav Urbanek <mu@miroslavurbanek.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/ipv6')
0 files changed, 0 insertions, 0 deletions