Read a kernel parameter
List all kernel parameters and filter them by name (here vm.swappiness).
sysctl -a | grep vm.swappiness
- tool
- linux133 commands
More linux commands
-
sysctl -w net.ipv4.ip_forward=1Turn on IP forwarding right now. To keep it after a reboot, also add it to /etc/sysctl.d/.
-
cat /proc/cmdlineShow the parameters passed to the kernel at boot.
-
cat /proc/sys/fs/file-nrShow allocated FDs, free FDs and the system-wide maximum (file-max).
-
iostat -xz 2 5Show extended disk IO stats every 2 seconds, 5 times. Look at %iowait and await.
-
vmstat 1 5Show CPU, memory, swap and IO stats every second, 5 times. The first line is the average since boot.