Thanks. It turns out the bash shell ulimit is 256, and Apple limits kern.maxfilesperproc to 10240, such that even "max_filedescriptors 16384" in squid.conf could not overwrite that:
# sysctl kern.maxfiles kern.maxfilesperproc
kern.maxfiles: 12288
kern.maxfilesperproc: 10240
I can, however, use sysctlt to overcome that.
-------- Original-Nachricht --------
> On Wed, Jun 20, 2012 at 7:30 AM, I wrote:
> > I'm running one of the nightly 3.2.0.16. I've always built squid 3.x
> "--with-filedescriptors=16384".
> >
> > Squid Cache: Version 3.2.0.16
> > configure options: '--prefix=/usr/local/squid'
> '--build=i686-apple-darwin' '--mandir=/usr/local/share/man' '--with-large-files'
> '--disable-ident-lookups' '--disable-dependency-tracking' '--enable-filters'
> '--enable-removal-policies=heap,lru' '--enable-delay-pools' '--enable-multicast-miss'
> '--enable-default-err-language=templates' '--enable-fd-config'
> '--with-filedescriptors=16384' '--with-dl' '--enable-ltdl-convenience'
> '--enable-http-violations' '--enable-build-info' '--enable-log-daemon-helpers'
> '--enable-auth-basic=PAM,NCSA,LDAP,NCSA' '--enable-auth-digest=password'
> '--enable-external-acl-helpers=ip_user,ldap_group' '--enable-ssl' '--enable-internal-dns'
> '--disable-eui' 'build_alias=i686-apple-darwin'
> >
> > So it's very surprising for me to see "WARNING! Your cache is running
> out of filedescriptors" in cache.log after I pumped a few hundred of
> connections through recently.
> >
> > According to squidclient -r -l localhost -U manager -W passwd mgr:info
> |grep 'file descr', my instance of squid 3.2.0.16 only has 256 file
> descriptors:
> >
> > Maximum number of file descriptors: 256
> > Available number of file descriptors: 221
> > Reserved number of file descriptors: 64
> >
> > I can resolve this easily by setting "max_filedescriptors ####" in
> squid.conf. However, this is supposedly a "Squid 2.7+" feature, according to
> "http://wiki.squid-cache.org/SquidFaq/TroubleShooting#Running_out_of_filedescriptors".
> It's not clear whether that's inclusive of Squid 3.x, which is a separate
> branch from squid 2.6 in my understanding. The other question is why the
> configure option "--with-filedescriptors=16384" has no effect or stopped
> taking effect in Squid 3.2.0.16. Is this just an isolated one-off incident?
>
> Watch out for the ulimit in the shell launching squid.
>
>
> --
> /kinkie
-- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.deReceived on Thu Jun 21 2012 - 02:45:41 MDT
This archive was generated by hypermail 2.2.0 : Thu Jun 21 2012 - 12:00:03 MDT