[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Raising the number of file descriptors?
On Mon, 8 Dec 1997, Constantin Eizner wrote:
> Erez Doron wrote:
>
> > Constantin Eizner wrote:
> >
> > > Does anyone know how to increase the number of file descriptors a
> > > process can use?
> >
> > try: limit descripitors 1024
> > ( works on my machine )
> >
> > Regards
> > erez.
>
> #limit: descriptors: Can't set limitI need make some glabal changes for
> kernel (resourses.h) but I don't know how to do that..
You need to change the following files (I'm assuming 1024 fd's will be enough)
1). /usr/include/linux/fs.h
2). /usr/include/linux/limits.h
3). /usr/include/linux/posix_types.h
4). /usr/include/gnu/types.h
1).-> NR_OPEN should be 1024 (not 256 like the default)
2).-> NR_OPEN should be 1024 (not 256 like the default)
OPEN_MAX should be 1024 (not 256 like the default)
3).-> Make sure that this is set properly:
#define __FD_SETSIZE 1024
4).-> Make sure that this is set properly:
#define __FD_SETSIZE 1024
Recompile the kernel.
Regards,
--Ariel
P.S. By the way, limit descriptors 1024 will only work for tcsh, if the
descriptors hardlimit is >=1024
For sh (bash), use ulimit -n 1024 (the man page says that most
systems do not allow this value to be set).
>
+---------------------------------------------------------------+
| Ariel Biener |
| e-mail: ariel@post.tau.ac.il Work ph: 03-6406086 |
| fingerprint = 07 D1 E5 3E EF 6D E5 82 0B E9 21 D4 3C 7D 8B BC |
+---------------------------------------------------------------+