cancel
Showing results for 
Search instead for 
Did you mean: 

Tech tip: How to apply kernel tunings on Linux

Linux kernel settings can be set and read using entries in the /proc filesystem or using sysctl.  Permanent settings that should be applied on boot are defined in sysctl.conf.

Example: To set the maximum number of file descriptors from the command line:

 

# echo 2097152 > /proc/sys/fs/file-max  …or…

# sysctl –w fs.file-max=2097152

 

Example: To set the maximum number of file descriptors using sysctl.conf, add the following to /etc/sysctl.conf:

 

fs.file-max = 2097152

 

Sysctl.conf is applied at boot, or manually using sysctl -p

Version history
Revision #:
2 of 2
Last update:
‎03-25-2020 05:32:PM
Updated by:
 
Labels (1)
Contributors
Tags (2)