Re: Help increasing FDs

From: Dirk Moerenhout <dirk@dont-contact.us>
Date: Fri, 9 Jul 1999 17:23:50 +0200 (CEST)

In /usr/include/bits/types.h change the
#define __FD_SETSIZE 1024
in
#define __FD_SETSIZE 4096

Afaik I know recent squids were supposed to ignore this value when you
compile squid to use poll() which you should do. But changing it is
common practice and it works.

Remember that you have to recompile glibc 2 before you go above 1024 while
using poll()! Cause if your glibc is not compiled against linux 2.2 it
will emulate poll() by using select().

Dirk Moerenhout ///// System Administrator ///// Planet Internet NV

On Fri, 9 Jul 1999, Flavio Pescuma wrote:

> Dave J Woolley wrote:
> >
> > > I'm trying to increase the number of FD for squid, I'm running
> > > 2.2.10-ac10 on an Alpha and after some work I could compile the
> > >
> > That's not a valid squid version number and it is
> > not reasonable to assume that everyone runs squid
> > under Linux.
>
>
> Sorry I didn't clarify what I ment with 2.2.10-ac10, I'm running Linux
> 2.2.10-ac10 on a Alpha DS20. Some days ago in this mailing list I was
> told to use Alan Cox patches in order to increase FD, today I could make
> linux 2.2.10-ac10 to work but I couldn't make squid2.2.STABLE1 or
> squid2.2.SATBLE4 recognize my new FD limit
>
> Thanks,
>
> Flavio
> --
> WIRE - Web & Internet Resources at Ericsson
> Flavio Pescuma phone: +46 (0)8 7263359
> L M Ericsson Data AB fax: +46 (0)8 7217207
> 125 82 Stockholm Sweden http://eriweb.ericsson.se
>
Received on Fri Jul 09 1999 - 09:15:02 MDT

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