Re: [squid-users] Re: Can't increase SQUID 3.0.25 File Descriptors

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Mon, 04 Oct 2010 22:45:28 +0000

On Mon, 4 Oct 2010 20:25:22 +0300, Sergiu Tatar <casper87_at_gmail.com>
wrote:
>> Hello... i use Squid 3.0.25 and i have a problem: i can't increase
>> file descriptors. I have been installed with 'ulimit -HSn 8192' but
>> it's starting with 1024 fd. The 'max_filedesc' is not recongnized on
>> squid.conf ... in /etc/init.d/squid i have been put the line
>> 'ulimit -HSn 8192' ...but it's starting with 8192 fd.

3.0 also needs to be built with the higher FD limit set before
./configure. --with-filedescriptors was supposed to evade that need, but
seems not to work on all systems.

>>
>> I tried to use Squid 3.1.4 but performances are slow comparatively
>> with Squid 3.0.25

3.1 is 15-20% faster in basic benchmarking. I'd recommend figuring out
what the extra slowness is caused by and fixing that.
 The newer version will do 2x DNS lookups than before (AAAA as well as A),
and attempt to connect to IPv6 first. It's likely your connectivity is poor
in one of these two protocols.

>>
>> OS: Mandriva 2010.0 x86_x64
>> Squid : Version 3.0.STABLE25
>> configure options: '--enable-cache-digests' '--disable-icmp'
>> '--disable-delay-pools' '--enable-storeio=ufs,aufs'
>> '--enable-async-io' '--enable-poll' '--disable-ident-lookups'
>> '--prefix=/squid' '--enable-removal-policies=heap,lru'
>> '--with-filedescriptors=8192' '--disable-snmp'
>> '--enable-linux-netfilter' '--disable-internal-dns'

"--disable-internal-dns" will be part of the slowness problem. It can only
receive one DNS lookup at a time, blocking all requests while it waits for
a response. Unless you have a very good reason to use the old helper remove
this option from your build and use the internal DNS client.

Amos
Received on Mon Oct 04 2010 - 22:45:35 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 05 2010 - 12:00:02 MDT