[100203] in RedHat Linux List

home help back first fref pref prev next nref lref last post

[SUMMARY] increasing # of file descriptors

daemon@ATHENA.MIT.EDU (Alex Vorobiev)
Wed Nov 18 19:06:12 1998

From: Alex Vorobiev <sasha@forum.swarthmore.edu>
To: redhat-list@redhat.com
Date: Wed, 18 Nov 1998 19:05:29 -0500 (EST)
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

from a thread on www.dejanews.com:

> >       In Linux 2.0.x, you can raise the 256 file descriptors per process
> > limit to 1024 with the following changes:
> >       WARNING: Please be very careful. If you don't know how to compile
> > and install a Linux kernel and don't know the proper precautions to take
> > first, DON'T DO THIS.
> >       In /usr/include/linux/fs.h change NR_OPEN from 256 to 1024.
> >       In /usr/include/linux/limits.h, change NR_OPEN to 1024 and OPEN_MAX
> > to 1024.
> >       In /usr/include/linux/posix_types.h, change __FD_SETSIZE to 1024.
> > (Later versions of Linux may already have this change made.)
> >       In /usr/include/gnu/types.h, change __FD_SETSIZE to 1024.
>       In /etc/rc.d/rc.M add the following two lines:
> >> /proc/sys/kernel/file-max
> >> /proc/sys/kernel/inode-max
> >       In /usr/src/linux type: 'make clean; make dep; make zlilo' (Or
> > whatever rebuilts the kernel completely on your system.)
> >       Reboot with the new kernel and, from bash, do a 'ulimit -a' and make
> > sure 'open files' reads 1024. You may also compile the test program 
> included
> > below and run it. It should read 1024 for both limits.
> >       Recompile any applications that need to select on more than 256
> > files. (Applications that don't try to use more than 256 files at a time
> > will not notice any changes and do not need to be recompiled.)
> >       Once you get your real applications running using all those file
> > descriptors, you should check '/proc/sys/kernel/file-nr' and
> > '/proc/sys/kernel/inode-nr' a few times to make sure you have enough room.
> > If necessary, raise the values in '/etc/rc.d/rc.M'.
> >       David Schwartz
> >       davids@wiznet.net
> >
> > more info at http://www.dejanews.com/getdoc.xp?AN=342546032


-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post