]> git.baikalelectronics.ru Git - kernel.git/commit
xfrm: Increase the garbage collector threshold
authorSteffen Klassert <steffen.klassert@secunet.com>
Fri, 25 Oct 2013 08:21:32 +0000 (10:21 +0200)
committerSteffen Klassert <steffen.klassert@secunet.com>
Mon, 28 Oct 2013 06:37:52 +0000 (07:37 +0100)
commit320e0a5ec416e0d51b719f14236cfae29f0aff9f
tree6974add0fb4340478f299a41230c1cb422e81324
parent4e049e6e67598e8b2f53a053470e9ed4b26d88ed
xfrm: Increase the garbage collector threshold

With the removal of the routing cache, we lost the
option to tweak the garbage collector threshold
along with the maximum routing cache size. So git
commit 21340f43c ("xfrm: Fix the gc threshold value
for ipv4") moved back to a static threshold.

It turned out that the current threshold before we
start garbage collecting is much to small for some
workloads, so increase it from 1024 to 32768. This
means that we start the garbage collector if we have
more than 32768 dst entries in the system and refuse
new allocations if we are above 65536.

Reported-by: Wolfgang Walter <linux@stwm.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/xfrm4_policy.c
net/ipv6/xfrm6_policy.c