aboutsummaryrefslogtreecommitdiffstats
path: root/fs/efs
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2022-02-16 16:43:05 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2022-03-19 23:11:34 +0100
commit2cfadb761d3d0219412fd8150faea60c7e863833 (patch)
tree21f18191856ed0f81f7d4b4b0a0c790cf9fe92ae /fs/efs
parentMerge tag 'mlx5-updates-2022-03-18' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux (diff)
downloadlinux-dev-2cfadb761d3d0219412fd8150faea60c7e863833.tar.xz
linux-dev-2cfadb761d3d0219412fd8150faea60c7e863833.zip
netfilter: conntrack: revisit gc autotuning
as of commit 4608fdfc07e1 ("netfilter: conntrack: collect all entries in one cycle") conntrack gc was changed to run every 2 minutes. On systems where conntrack hash table is set to large value, most evictions happen from gc worker rather than the packet path due to hash table distribution. This causes netlink event overflows when events are collected. This change collects average expiry of scanned entries and reschedules to the average remaining value, within 1 to 60 second interval. To avoid event overflows, reschedule after each bucket and add a limit for both run time and number of evictions per run. If more entries have to be evicted, reschedule and restart 1 jiffy into the future. Reported-by: Karel Rericha <karel@maxtel.cz> Cc: Shmulik Ladkani <shmulik.ladkani@gmail.com> Cc: Eyal Birger <eyal.birger@gmail.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'fs/efs')
0 files changed, 0 insertions, 0 deletions