This is an old revision of the document!


sysctl

Display disk drives
sysctl hw.disknames

Linux

Changes to sysctl go in /etc/sysctl.conf.

Once your changes are made, you can reload from all the system files:

sysctl --system

To display all sysctl settings:

sysctl -a

You can set a value directly as well:

sysctl -w net.ipv4.ip_forward=1

Swappiness

In Linux, set the percentage to 10 in /etc/sysctl.conf:

vm.swappiness = 10

See also the Wikipedia article for a reference.