WSL2-Linux-Kernel/net
Antoine Tenart 2aa1927570 netfilter: conntrack: revisit the gc initial rescheduling bias
The previous commit changed the way the rescheduling delay is computed
which has a side effect: the bias is now represented as much as the
other entries in the rescheduling delay which makes the logic to kick in
only with very large sets, as the initial interval is very large
(INT_MAX).

Revisit the GC initial bias to allow more frequent GC for smaller sets
while still avoiding wakeups when a machine is mostly idle. We're moving
from a large initial value to pretending we have 100 entries expiring at
the upper bound. This way only a few entries having a small timeout
won't impact much the rescheduling delay and non-idle machines will have
enough entries to lower the delay when needed. This also improves
readability as the initial bias is now linked to what is computed
instead of being an arbitrary large value.

Fixes: 2cfadb761d ("netfilter: conntrack: revisit gc autotuning")
Suggested-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
2022-09-21 10:44:56 +02:00
..
6lowpan
9p
802
8021q
appletalk
atm
ax25
batman-adv This cleanup patchset includes the following patches: 2022-09-19 18:16:04 -07:00
bluetooth
bpf
bpfilter
bridge
caif
can can: raw: add CAN XL support 2022-09-15 09:08:09 +02:00
ceph
core tcp: Access &tcp_hashinfo via net. 2022-09-20 10:21:49 -07:00
dcb
dccp tcp: Introduce optional per-netns ehash. 2022-09-20 10:21:50 -07:00
dns_resolver
dsa net: dsa: allow masters to join a LAG 2022-09-20 10:32:36 +02:00
ethernet
ethtool
hsr
ieee802154
ife
ipv4 tcp: Introduce optional per-netns ehash. 2022-09-20 10:21:50 -07:00
ipv6 tcp: Save unnecessary inet_twsk_purge() calls. 2022-09-20 10:21:50 -07:00
iucv
kcm
key
l2tp
l3mdev
lapb
llc
mac80211
mac802154
mctp
mpls
mptcp tcp: Access &tcp_hashinfo via net. 2022-09-20 10:21:49 -07:00
ncsi
netfilter netfilter: conntrack: revisit the gc initial rescheduling bias 2022-09-21 10:44:56 +02:00
netlabel
netlink
netrom
nfc
nsh
openvswitch openvswitch: Change the return type for vport_ops.send function hook to int 2022-09-19 18:28:50 -07:00
packet
phonet
psample
qrtr
rds net: rds: add missing __init/__exit annotations to module init/exit funcs 2022-09-19 17:58:53 -07:00
rfkill
rose
rxrpc rxrpc: remove rxrpc_max_call_lifetime declaration 2022-09-19 17:58:47 -07:00
sched net/sched: use tc_cls_stats_dump() in filter 2022-09-20 15:54:13 -07:00
sctp
smc
strparser
sunrpc
switchdev
tipc
tls
unix
vmw_vsock vsock/vmci: fix repeated words in comments 2022-09-16 09:31:29 +01:00
wireless
x25
xdp
xfrm
Kconfig
Kconfig.debug net: make NET_(DEV|NS)_REFCNT_TRACKER depend on NET 2022-09-20 14:23:56 -07:00
Makefile
compat.c
devres.c
socket.c
sysctl_net.c