Contents

Linux Sysctl Tuning

We can adjust sysctl settings to make Linux servers run smoothly under increased load. Normally, each Linux distribution has a default sysctl configuration. For example, RHEL might be optimized for server use, while DEB might be balanced for general performance. In this article, I will introduce the settings I use in production for each type of workload:

Sysctl for General Servers 60-sysctl.conf

You can place these settings in /etc/sysctl.d/60-sysctl.conf

Additional Sysctl for Proxmox VE 80-pve.conf

You can place these settings in /etc/sysctl.d/80-pve.conf

Additional Sysctl for K3S, K8S 80-k8s-ipvs.conf

You can place these settings in /etc/sysctl.d/80-k8s-ipvs.conf

Apply Sysctl Settings

sysctl --system

For machines running containerd, k3s, or k8s, you must also restart the containerd, k3s, or k8s services.