linux-sysctl-tuning
Installation
SKILL.md
Sysctl Performance Tuning
Distro support
One-family-pair skill: the sysctl interface, the /etc/sysctl.d/ drop-in
directory, and sysctl --system are identical on Debian/Ubuntu and the
RHEL family (Fedora, RHEL, CentOS Stream, Rocky, Alma, Oracle). The kernel
exposes the same net.* and vm.* keys on both. Only the package that ships a
given module differs.
| Concept | Debian/Ubuntu | RHEL family |
|---|---|---|
| Show one key | sysctl net.core.somaxconn |
sysctl net.core.somaxconn |
| Show all keys | sysctl -a |
sysctl -a |
| Set live (transient) | sysctl -w vm.swappiness=10 |
sysctl -w vm.swappiness=10 |
| Persist | /etc/sysctl.d/60-perf.conf |
/etc/sysctl.d/60-perf.conf |
| Reload all drop-ins | sudo sysctl --system |
sudo sysctl --system |
| BBR module | tcp_bbr (in-tree, modprobe) |
tcp_bbr (in-tree, modprobe) |
| Available cc list | sysctl net.ipv4.tcp_available_congestion_control |
same |