Hi, Richard,

 Richard Adams wrote:

> According to Bogdan Taru: While burning my CPU.
> >
> >             Hi, Frank,
> >
> >   First of all, I recompiled & installed 2.0.34 last night. That was before I
> > got your mail. What I did was editing /usr/src/linux/include/linux/fs.h and I
> > replaced
> >
> > #define NR_OPEN 256
> > with
> > #define NR_OPEN 512.
>
> You should never have to edit any files for this sort of thing as all this
> can be alterd in the "proc" filesystem.
>
> /proc/sys/kernel is the place to change things.
>
>

Ok, I'll remember this next time...


> >
> > Recompiled and installed, and everything works just fine, but a 'cat
> > /proc/sys/kernel/file-max' gives me 1024. Don't know why... Maybe somebody can
> > make some light in all this... Thanks, anyway!
>
> Because the following are defaults.
>  BLOCK_SIZE 1024
>  NR_FILE 1024
>
>

If the above are defaults, then why do I get errors which are telling me that 256
fd are not enough? This shouldn't be happening if the NR_FILE is REALLY set on
1024. Right?

> Like Frank stated change things in /proc/sys/kernel and futher more the
> sysctl() interface "proc filesystem" is designed for just that reason.
>
> I cant realy imagen why a end user should want to change that sort of
> defaults anyway, unless you defined 256 when you installed Linux, or maybe i
> am missing something.

Yes, I guess Frank is right, I should experience on the /proc filesystem until I'm
satisfied, and then make the final changes to the kernel... cause I'm not going to
do that everytime I'm rebooting the computer... Or am I missing something?
About the second statement, you're right... Indeed, 256 fd should be enough for an
end user. In fact, I've never seen the error (maybe that's why I was so ambigous),
but it happened to one of my mates which tryied something with a irc server. By the
way, I'm working for an ISP, and the server is pretty busy, so the error is somehow
understandable...



> >
> > Gevaerts Frank wrote:
> >
> > > On Tue, 22 Sep 1998, Bogdan Taru wrote:
> > >
> > > >
> > > >       Hi,
> > > >  I recently began to get some error messages about too few file
> > > > descriptors (256). Where can I change this number (to 1024, for example)?
> > > > I guess in the Linux kernel, but where?
> > >
> > > In a recent kernel, (2.0 or later i guess) , try
> > > "echo 1024>/proc/sys/kernel/file-max"
> > > I think that should work, but I'm not sure.
> > >
> > > Frank
> > >
> > > > Have fun,
> > > > bogdan
> >
> > --
> > Have fun,
> > bogdan
> >
> >
> >
>
> --
> Regards Richard.
> [EMAIL PROTECTED]

--
Have fun,
bogdan


Reply via email to