

Looking around for books on the subject probably won’t help much. You may find something in the /usr/src/linux/Documentation/sysctl directory, but most (if not all) files there refer to kernel 2.2, and seemingly haven’t been updated in the last several years.

With so many tunable parameters, how do you decide what to do? Alas, this is a sore point with sysctl: most of the relevant documentation is hidden in the many source files of the Linux kernel, and isn’t easily available, and it doesn’t help that the explanations given are sometime arcane and difficult to understand. # increase the number of possible inotify(7) watches
Linux kernel tuning verification#
# enable route verification on all interfaces If you want to apply it at any time, you can do so with the command sysctl -p. For example, my own nf file is listed below. This file can have blank lines, comments (lines starting either with a “#” character or a semicolon), and lines in the “ variable= value” format. Sysctl values are loaded at boot time from the /etc/nf file. But as a rule of thumb, if a /proc/sys file is read-only, you cannot set it with sysctl either. (By the way, the substitution is not actually required slashes are also accepted, though it seems everybody goes for the notation with the dots instead.) Thus, echo 10 >/proc/sys/vm/swappiness is exactly the same as sysctl -w vm.swappiness=10. For example, the /proc/sys/vm/swappiness file is equivalent to the vm.swappiness parameter in nf just forget the initial “/proc/sys/” part, substitute dots for the slashes, and you get the corresponding sysctl parameter. The /proc/sys virtual directory also provides an interface to the sysctl parameters, allowing you to examine and change them.
