SySctl & file-max

Posted by alex almazan Mon, 31 Dec 2007 21:14:00 GMT

A quick means of increasing this, or any sysctl variable
#echo 65536 > /proc/sys/fs/file-max
#sysctl -a | grep file-max >> /etc/sysctl.conf
#sysctl -p 

You can also change kernel parameters on the fly with switch ‘-w’

#sysctl -w vm.swappiness=0
This change will be reverted as this does not modify /etc/sysctl.conf. Edits to this file will implement reboot persistence.