Re: file desciptor on linux > 2.0.33

From: Dancer <dancer@dont-contact.us>
Date: Wed, 15 Apr 1998 21:42:46 +1000

It's because the patch (if you look through it, it's not that large)
does more than just this. It rewrites the way file-descriptors are
handled, otherwise you burn INSANE amounts of memory, doing it the way
that is marked below.

That's why it's been at 256 for so long...because just increasing the
numbers here causes gobs of memory to be consumed. In order to avoid
that, several key handlers are also modified.

D

Umar Goldeli wrote:
>
> Ok, I've been looking at the filedescriptor threads for a while now and
> have always been baffled at why a *patch* is needed... why not do it nice
> and manually?
>
> Edit /usr/include/linux/fs.h and change the following two variables:
>
> #define NR_OPEN 1024
> #define NR_FILE 1024
>
> Feel free to set it to greater than 1024. Then edit
> /usr/include/linux/limits.h and change the following:
>
> #define NR_OPEN 1024
> #define OPEN_MAX 1024
>
> Then you have to recompile the kernel.
>
> Voila! Guaranteed to work(1). :)
>
> Cheers,
> Umar.
>
> 1. Conditions apply. *grin*
>
> --
> Umar Goldeli
>
> SYNFLUX International P/L.
>
> P.O. Box 98, Five Dock, N.S.W. 2046, Australia
> e-mail: umar@synflux.com.au Phone: +612-9712-2411
> WWW : http://www.synflux.com.au Fax : +612-9712-2399
>
> On 15 Apr 1998, Riccardo Vratogna wrote:
>
> >
> > Exist a a fileds descriptor patch for linux 2.0.33?
> > The current release work only on 2.0.30 , very unstable version!
> >
> > thanks.
> >

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT d- s++: a C++++$ UL++++B+++S+++C++H++U++V+++$ P+++$ L+++ E-
W+++(--)$ N++ w++$>--- t+ 5++ X+() R+ tv b++++ DI+++ e- h-@ 
------END GEEK CODE BLOCK------
Received on Wed Apr 15 1998 - 04:50:28 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:39:42 MST