After a little skull sweat, checking of the SQUID FAQ, and temporarily making my system unbootable (!!), I have successfully gotten my squid to boot with 4096 file descriptors.
Thanks!
Mike Jacobi
-----Original Message-----
From: Lightfoot.Michael [mailto:Lightfoot.Michael@comcare.gov.au]
Sent: Tuesday, November 05, 2002 8:12 PM
To: Squid Mailing List
Subject: FW: [squid-users] running out of filedescriptors
Oops! Meant to copy this to the list in case others have comments or
corrections...
> > If I get this correctly, all I have to do is to change the
> > entry in TYPES.H to 4096 or greater, recompile squid, make
> > sure that when squid is run the process has at least 4096
> > file descriptors and all should be fine... Right?
> >
> Hmmm, as my memory of things I did three years ago is likely
> to be faulty, I went and looked at the source code and found
> the following:
>
> In /usr/local/src/squid-2.5.STABLE1-20021028/include there is
> a file autoconf.h which should have lines similar to:
>
> /* Default FD_SETSIZE value */
> #define DEFAULT_FD_SETSIZE 1024
>
> /* Maximum number of open filedescriptors */
> #define SQUID_MAXFD 1024
>
> (at line 189 in mine - YMWV)
>
> To build a squid with more than 1024 FDs available you have
> to change both(?) of these to match your target system.
> These numbers are obtained from checking the ulimit on the
> system upon which squid is compiled.
>
> If you need more FDs defined on your target system, you will
> need to do what Brian says for Linux (I assume) or simply set
> stuff in /etc/system on Solaris (in my case.)
>
> Note also that if your dev system is your target system, it
> is simpler (and more maintainable) to change the OS settings
> for FDs and re-run configure.
>
>
>
>
> Michael Lightfoot
> Unix Consultant
> ISG Host Systems
> Comcare
> +61 2 62750680
> Apologies for the rubbish that follows...
>
------------------------------------------------------------------------
NOTICE: This e-mail message and attachments may contain confidential
information. If you are not the intended recipient you should not use or
disclose any information in the message or attachments. If received in
error, please notify the sender by return email immediately. Comcare
does not waive any confidentiality or privilege.
Comcare's Canberra and Melbourne offices have moved to new premises.
We hope this notice makes it easier for you to update your records.
New street addresses:
Canberra office
Level 1
14 Moore street
CANBERRA CITY ACT 2601
Melbourne Office
Level 2
121 William Street
MELBOURNE VIC 3001
Claims Fax Number 03 9620 4721
Please call Comcare on 1300 366 979 if you have any queries.
Received on Wed Nov 06 2002 - 06:21:51 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:11:10 MST