[lug] ulimit

Hugh Brown hugh at math.byu.edu
Mon Feb 5 06:15:25 MST 2001


On another list I'm on, someone is having problems with nis timing out. 
All of the searching I've done seems to indicate that increasing the
number of file handles will do the trick.

Hugh


rm at mamma.varadinet.de wrote:
> 
> On Mon, Feb 05, 2001 at 07:02:34AM -0500, Hugh Brown wrote:
> > Is there a file that can be used to set properties of ulimit (in AIX
> > there's a file called /etc/security/limits).  Specifically, I'm trying
> > to increase the number of file descriptors allowed.
> 
> >From the users side: since the ulimit is an inherited property
> of the process one can set it in the init-script of the login shell
> (~/.bash_profile  for the bash shell). Unless you are superuser
> you usually can't increase the limmits. You can play arround with
> the /etc/login.defs and enable setting of limits/umask etc.
> from the geccos field of /etc/passwd or set the ulimit directly
> from there.
> Note: Are you shure you run against the ulimit when you encounter
> 'too many open files' ? The kernel itself does have a limit of
> oppen file descriptors as well. On newer kernels you can change this
> value during runtime by writing to '/proc/sys/fs/file-max':
> 
>    echo 4096 > /proc/sys/fs/file-max
> 
> Ralf
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug



More information about the LUG mailing list