* Martin McCarthy <[EMAIL PROTECTED]> [May 24. 2002 11:10]: > > Will it keep these settings after a reboot? > > Nope. You need to either add a line to one of your system start-up > scripts to set the values on each reboot, or you need to recompile the > kernel with a new built in value. If you go the latter route, you need > to edit the file include/linux/fs.h in the linux sources and change the > line > #define NR_FILE 8192 > to have 32768 rather than 8192 (or whatever value you find to be > appropriate, of course!). Rebuild the kernel and booting that new > kernel will have a default max number of files of 32768. >
If you're using RedHat, then you may find that you have a file /etc/sysctl.conf. This is now the preferred way of setting /proc settings. A glance at sysctl -a shows: fs.file-max = 16384 fs.file-nr = 1239 670 8192 fs.inode-state = 148472 2 0 0 0 0 0 fs.inode-nr = 148472 2 So, to fix these with sysctl.conf you could add: fs.file-max = XXXX If you're not running on RH (I'm not sure what other distros have this, you can stick sysctl fs.file-max=XXXX in a rc.local or whatever. HTH Kevin -------------------------------------------------------------------- http://www.lug.org.uk http://www.linuxportal.co.uk http://www.linuxjob.co.uk http://www.linuxshop.co.uk --------------------------------------------------------------------
