From the course: Linux System Engineer: Kernel Tuning and Remote Logging

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Tune live kernel parameters manually using sysctl

Tune live kernel parameters manually using sysctl

From the course: Linux System Engineer: Kernel Tuning and Remote Logging

Start my 1-month free trial

Tune live kernel parameters manually using sysctl

- [Instructor] Managing kernel parameters is easy using tuned profiles. However, if you're doing a lot of performance testing and you want to change the configuration for testing purposes before committing it to a tuned.conf file, you can use the sysctl command or even change values in the sysfs virtual file system manually. Don't the get the sysctl command confused with systemctl which is a part of systemd. Sysctl predates systemctl by many years and is used just for changing kernel parameters. Let's start by getting a list of settings that we can change. In a terminal type in sysctl -a and hit enter. There are over 1000 different settings that can be modified with sysctl. The sysctl command allows us to modify settings in the /proc/sys directory. We can also use echo to overwrite these virtual files to change kernel parameters as well. Type in clear, and then type in sudo echo 1 > /proc/sys /kernel/sysrq and hit enter. You can see that even though we elevated privileges using sudo…

Contents