Page MenuHomeVyOS Platform

Increase default sysctl values
Closed, InvalidPublicFEATURE REQUEST

Description

The main idea is to increase or decrease some sysctl params which usually need to change by default. e.g.
nf_conntrack_tcp_timeout_established by default 432000/60/60/24 = 5 days

net.netfilter.nf_conntrack_max
net.ipv4.tcp_mem
net.ipv4.udp_mem
net.ipv4.tcp_rmem
net.ipv4.udp_rmem_min
net.ipv4.tcp_keepalive_time
net.ipv4.tcp_keepalive_probes
net.ipv4.tcp_keepalive_intvl
net.core.somaxconn
net.core.netdev_max_backlog
net.ipv4.tcp_max_syn_backlog
net.ipv4.tcp_syn_retries
net.ipv4.tcp_synack_retries
net.core.netdev_max_backlog
net.ipv4.neigh.default.gc_thresh1
net.ipv4.neigh.default.gc_thresh2
net.ipv4.neigh.default.gc_thresh3
net.ipv6.neigh.default.gc_thresh1
net.ipv6.neigh.default.gc_thresh2
net.ipv6.neigh.default.gc_thresh3
net.ipv4.tcp_congestion_control
net.ipv4.tcp_slow_start_after_idle
net.ipv4.tcp_max_tw_buckets

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Improvement (missing useful functionality)

Event Timeline

Unknown Object (User) created this task.Apr 18 2020, 4:13 PM
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.
Unknown Object (User) claimed this task.Jul 30 2020, 2:53 PM
Unknown Object (User) added a comment.Aug 3 2020, 9:23 PM

The main idea to add some automation logic for calculation:

vyos@vyos# set system sysctl profile 
Possible completions:
   <text>       Sysctl profile
   Profile1     
   Profile2     
   auto

Screenshot 2020-08-03 at 23.16.22.png (509×766 px, 114 KB)

erkin set Issue type to Improvement (missing useful functionality).Aug 30 2021, 6:46 AM
erkin removed a subscriber: Active contributors.
syncer reassigned this task from Unknown Object (User) to Viacheslav.Jul 16 2023, 9:29 PM
dmbaturin added a subscriber: dmbaturin.

I suppose we need a clearer idea of what we do with sysctl values.