Re: general protection faults with 2.0.30 and filehandle patch

Jon Lewis (jlewis@inorganic5.fdt.net)
Tue, 20 May 1997 23:19:59 -0400 (EDT)


On 20 May 1997, Andi Kleen wrote:

> > This is with 2.0.30 with the filehandle patch from
> > www.linux.org.za/filehandle.patch.linux (or
> > ftp://ftp.is.co.za/linux/local/filehandle.patch.linux)
> >
> > squid has been re-compiled to handle 3000 fd's per process
> > and we are running libc 5.4.17
>
> You can't run a unpatched 2.0 kernel with 3000fds per process.
> The sys_select() routine will overflow the kernel stack: it puts
> 6*(NR_OPEN/8) bytes on the kernel stack (2250bytes for NR_OPEN=3000)
> The kernel stack is currently limited to 4KB, so when an interrupt routine

Go to the above site and "read the patch". It's the O'Reilly kmalloc fds
patch that avoids the kernel stack overrun by not putting the fds on the
stack.

------------------------------------------------------------------
Jon Lewis <jlewis@fdt.net> | Unsolicited commercial e-mail will
Network Administrator | be proof-read for $199/hr.
________Finger jlewis@inorganic5.fdt.net for PGP public key_______