Jump to content

Sysctl

From SameTeem
Revision as of 18:17, 6 August 2026 by Admin (talk | contribs) (→Network)

All files changes go in /etc/sysctl.conf

sudo nano /etc/sysctl.conf

Memory Tweaks

Keep more data in RAM instead of swapping to disk, make the system more responsive, especially if your swap (paging file in Windows terminology) file/partition is on a hard disk drive.

vm.swappiness=1

Network

Enable BBR (https://en.wikipedia.org/wiki/TCP_congestion_control#TCP_BBR) Greater top speeds and more reliable, especially for higher latency connections like 3/4/5G and satellite.

net.core.default_qdisc = cake 
net.ipv4.tcp_congestion_control = bbr

Allow more packets to be queued up before the system drops them, pretty much required for Gigabit+ connections

net.core.netdev_max_backlog=16384

Allow more connections to be queued on the system, good for programs that establish a lot of connections, such as P2P applications.

net.core.somaxconn=8192