summaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape
diff options
context:
space:
mode:
authorVincent Pelletier <plr.vincent@gmail.com>2022-02-19 02:06:23 +0000
committerRui Salvaterra <rsalvaterra@gmail.com>2022-04-01 13:23:41 +0100
commit15fbb916669dcdfcc706e9e75263ab63f9f27c00 (patch)
tree57fdbd70407d0a5f1fb49b5f2942ecbfbe1c3898 /target/linux/layerscape
parent56ce110b73970bcd65d309440baada84c8e1504b (diff)
downloadopenwrt-15fbb916669dcdfcc706e9e75263ab63f9f27c00.tar.gz
openwrt-15fbb916669dcdfcc706e9e75263ab63f9f27c00.tar.bz2
openwrt-15fbb916669dcdfcc706e9e75263ab63f9f27c00.zip
kernel: scale nf_conntrack_max more reasonably
Use the kernel's built-in formula for computing this value. The value applied by OpenWRT's sysctl configuration file does not scale with the available memory, under-using hardware capabilities. Also, that formula also influences net.netfilter.nf_conntrack_buckets, which should improve conntrack performance in average (fewer connections per hashtable bucket). Backport upstream commit for its effect on the number of connections per hashtable bucket. Apply a hack patch to set the RAM size divisor to a more reasonable value (2048, down from 16384) for our use case, a typical router handling several thousands of connections. Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com> Signed-off-by: Rui Salvaterra <rsalvaterra@gmail.com>
Diffstat (limited to 'target/linux/layerscape')
0 files changed, 0 insertions, 0 deletions