GNU/Linux Command – SYSCTL

sysctl — Configure kernel parameters at run-time

Summary:
Linux Kernel has number of parameters, which can be modified at the run-time, to get the best performance out of the system. All the kernel parameters are mapped in the /proc/sys/ folder. sysctl can be used to view and modify thous kernel parameters value from the command prompt.

Examples: $ sysctl -a -- List all currently available parameters. $ sysctl vm.swappiness -- Show the name and value of a parameter. $ sysctl -n vm.swappiness -- Show only the value. $ sysctl -N vm.swappiness -- Show only the name. $ sysctl -e vm.unknown -- Do not show the error message. # sysctl -p mysysctl.txt -- Load new setting values from a file. # sysctl -w vm.swappiness=25 -- Modify the parameter value.

Alternate way to view and modify the kernel parameters: $ cat /proc/sys/vm/swappiness -- Show the value of this parameter. # echo 25 > /proc/sys/vm/swappiness -- Modify the parameter value.

Read: man sysctl

Advertisements
Tagged with: ,
Posted in Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: