Sunday, October 21, 2007

Changing Kernel Parameters

To Display all the available Kernel Parameters

# sudo sysctl -a | sort | more

Each Kernel parameters are in a field = value format

For Example:

Kernel.threads-max = 16379

Decreasing the PID value will improve the performance

To change the parameter

# sudo sysctl -w kernel.threads-max=16000

The above command will change the parameter temporarily, once the machine reboots the parameters will come back to its previous value.

To make the new changes permanently , Edit the following

# /etc/sysctl.conf

Enter in the parameter changes

For example:

#vi /etc/sysctl.conf

kernel.threads-max=16000

save the file

No comments: