CertGrid CertGrid
Configuration·LPIC-2

sysctl, and what survives a reboot

Kernel tunables can be read and written two ways - through /proc/sys as files, or through sysctl as dotted names - and they are the same values. This guide shows both, changes one, puts it back, and is explicit about the fact that neither method persists on its own.

201: Linux Kernel Guide 5 of 29 Intermediate

The primary service host on its own.
Server NameIP AddressOSRolesCPURAMHDD
LPIC2-A01192.168.0.78Ubuntu 26.04 LTSPrimary service host - BIND, Apache, Samba, Postfix. Topic 204 RAID runs on loop devices; this machine has no spare disk2 Core4 GB50 GB

This guide includes

Use this when a kernel setting has to change - routing, memory reclaim, open file limits - and especially when one that worked yesterday is gone after a reboot. This matters because the command that changes a tunable and the file that keeps it changed are two different things.

Before you start

  1. The same value, two spellings

  2. Changing it, and putting it back

  3. Where a setting goes to survive

Official sources