vADC Docs

Tech tip: How to apply kernel tunings on Linux

by on ‎02-21-2013 10:34 AM (906 Views)

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