Vincent Pelletier 0855549b4b 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>
(cherry picked from commit 15fbb916669dcdfcc706e9e75263ab63f9f27c00)
2022-08-11 21:54:09 +01:00
..
2022-07-01 20:28:35 +02:00
2022-07-19 21:31:04 +02:00
2022-07-30 17:22:16 +02:00
2022-07-30 17:22:16 +02:00
2022-07-19 21:36:44 +02:00
2022-03-11 00:04:05 +01:00
2022-08-05 15:24:57 +02:00
2022-07-30 17:22:16 +02:00
2022-07-19 21:36:44 +02:00
2022-06-27 22:34:07 +02:00
2022-06-27 22:34:07 +02:00
2022-07-01 16:42:32 +03:00
2022-07-30 17:21:47 +02:00