Re: [squid-users] linux-2.4 and file descriptors

From: Brian <[email protected]>
Date: Mon, 30 Jul 2001 22:10:38 -0400

On Monday 30 July 2001 07:48 pm, Florin Andrei wrote:
> I've found the same variable also in
> /usr/src/linux/include/linux/posix_types.h (that's somewhere in the
> kernel tree).
> Which one is "better"? :-)

The one in bits. Squid includes sys/select.h, which includes bits/types.h.

> Actually, on my system (RH 7.1 running kernel-2.4.7) this limit already
> is 8192, i didn't touched it, nor the system did (i think).

It defaults to 8192 in 2.4. If you give 8192 to squid, give the overall
system 10k-12k (or more -- I'm not sure what, if anything, the extra FDs
consume, but they're cheap).

> > * Change your per-process limits.
> > Just like when you compiled it.
>
> That means to run ulimit somewhere in the startup script, right before
> launching Squid, right?

Right. The same goes for increasing files-max. That isn't saved as part
of the kernel, so it will return to the default on reboot.

        -- Brian
Received on Mon Jul 30 2001 - 20:10:33 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:01:20 MST