aboutsummaryrefslogtreecommitdiff
path: root/package/kernel/linux/files/sysctl-nf-conntrack.conf
Commit message (Collapse)AuthorAge
* kernel: scale nf_conntrack_max more reasonablyVincent Pelletier2022-04-01
| | | | | | | | | | | | | | | | | | | 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>
* base-files: move netfilter sysctl defaults to specific kmod packagesMatthias Schiffer2018-04-13
Avoid warnings when applying settings for uninstalled kmods. See also FS#1073. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>