Jump to content

Sysctl: Difference between revisions

From SameTeem
No edit summary
Line 5: Line 5:




Keep more data in RAM instead of swapping to disk, make the system more responsive, especially if swap is on a Hard Disk
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
  vm.swappiness=1


Line 14: Line 14:
  net.core.default_qdisc = cake  
  net.core.default_qdisc = cake  
  net.ipv4.tcp_congestion_control = bbr
  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

Revision as of 18:17, 6 August 2026

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