Today, Diego gleaned this insight:
> Dear Gurus,
>
> I am using RH 6.2 & 6.2: I would like to know how to increase the
> 'open files limit' fo the whole system, not per user bases, sorry very
> newbie question. The ulimit -a tell me 1024 open files. Thanks for
> your time. Diego Mezzera.
If you mean that you're running out of open file handles on your system,
you need to change /proc/sys/fs/file-max. This file contains the maximum
number of file handles the kernel can have open. The kernel documentation
also suggests that if you change this value, you increase the number in
inode-max by a proportional ammount.
The default values (on 2.2.16 at least) are
/proc/sys/fs/file-max: 4096
/proc/sys/fs/inode-max: 16384
So if you want to double the number of files you can have open, you would
use these commands:
echo "8192" > /proc/sys/fs/file-max
echo "32768" > /proc/sys/fs/inode-max
I seem to recall some caveat with some file-related limit not being able
to be set this way, but I don't recall what it was. You might want to
check the man page for proc(5) and/or read the documentation for the proc
filesystem in /usr/src/linux/Documentation/proc.txt on your system.
If you instead mean that you want to change the user limit for all users,
try putting the appropriate ulimit command in /etc/profile. I haven't
used csh in about 6 years, but I assume you would likewise put a ulimit
command in /etc/cshrc for any csh users you may have.
Good luck!
--
You know that everytime I try to go where I really want to be,
It's already where I am, cuz I'm already there...
---------------------------------------------------------------
Derek D. Martin | Unix/Linux Geek
[EMAIL PROTECTED] | [EMAIL PROTECTED]
---------------------------------------------------------------
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************