Vincent Pelletier 15fbb91666 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>
2022-04-01 13:23:41 +01:00
..
2022-03-19 16:13:58 +01:00
2022-03-27 00:07:34 +00:00
2022-03-30 18:33:38 +02:00
2022-02-01 23:34:07 +00:00
2022-03-31 17:30:17 +02:00
2022-03-28 02:32:29 +01:00
2022-03-30 18:33:38 +02:00
2022-04-01 00:51:40 +02:00
2022-04-01 13:05:34 +03:00
2022-02-01 23:34:07 +00:00
2022-03-30 18:33:38 +02:00
2022-03-29 13:43:01 +02:00
2022-03-29 12:02:50 +02:00