Re: [squid-users] Squid slow performance

From: Jason Leschnik <leschnik_at_gmail.com>
Date: Wed, 25 Jul 2012 17:54:22 +1000

Are you able to perform a wget from the machine on a known fast
source? Like a mirror to test the Internet connection...

On Tue, Jul 24, 2012 at 10:38 PM, Amos Jeffries <squid3_at_treenet.co.nz> wrote:
> On 24/07/2012 7:21 p.m., Alamgir Shamim wrote:
>>
>> Hello,
>>
>> We are using squid version squid-2.6.STABLE21-6.el5. But getting very
>> poor performance.
>>
>> Our total Internet user are almost 750. At a time 500 to 600 user
>> browse internet.
>>
>> all of them are getting slow response. it takes 10 to 30 second to load a
>> page.
>>
>> Here I am giving you some out put.
>>
>> top out put...
>>
>> =========
>>
>> top - 12:54:09 up 31 days, 5:59, 2 users, load average: 0.18, 0.24,
>> 0.24
>>
>> Tasks: 80 total, 1 running, 79 sleeping, 0 stopped, 0 zombie
>>
>> Cpu(s): 1.5%us, 0.2%sy, 0.0%ni, 93.5%id, 4.2%wa, 0.0%hi, 0.6%si,
>> 0.0%st
>>
>> Mem: 2075016k total, 2020432k used, 54584k free, 233784k buffers
>>
>> Swap: 2031608k total, 96k used, 2031512k free, 1538140k cached
>>
>> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
>>
>> 12866 squid 15 0 100m 70m 2508 S 3 3.5 4:56.96 squid
>>
>>
>> 6815 root 18 0 10936 4280 428 S 0 0.2 0:00.00 squid
>
>
>>
>>
>>
>> free -m output
>>
>> ============
>>
>> [root_at_proxy253 squid]# free -m
>>
>> total used free shared buffers cached
>>
>> Mem: 2026 1973 53 0 228 1502
>>
>> -/+ buffers/cache: 242 1783
>>
>> Swap: 1983 0 1983
>>
>> Processor infor
>>
>> ==============
>>
>> processor : 0
>>
>> vendor_id : GenuineIntel
>>
>> cpu family : 15
>>
>> model : 4
>>
>> model name : Intel(R) Xeon(TM) CPU 3.20GHz
>>
>> stepping : 3
>>
>> cpu MHz : 3200.343
>>
>> cache size : 2048 KB
>>
>> physical id : 0
>>
>> siblings : 2
>>
>> ------------------------
>>
>> processor : 1
>>
>> vendor_id : GenuineIntel
>>
>> cpu family : 15
>>
>> model : 4
>>
>> model name : Intel(R) Xeon(TM) CPU 3.20GHz
>>
>> stepping : 3
>>
>> cpu MHz : 3200.343
>>
>> cache size : 2048 KB
>>
>> physical id : 0
>>
>> siblings : 2
>>
>> -------------------------
>>
>> Could you please let me know what might be the reason for getting slow
>> performance. We have 14 mbps of Internet bandwidth.
>>
>> We are doing some content filtering also with squid.
>
>
> There are several possible reasons:
>
> * you have configured squid in a inefficient way
> - I'm happy to do free performance audits here if you want to paste your
> squid.conf to the list (obscure the cachemgr_passwd detail though please)
>
> * you are content filtering
> - this is a major slowdown for Squid no matter what type of filtering is
> being done
>
> * overloaded or slow disks I/O speeds on disk cache
> - only relevant if you are disk caching
>
> * 2.6 will be adding to the slowdown
> - 2.7 series had a performance focus on development and is a good 20%
> faster just in the code.
> - 2.6 has low HTTP/1.1 compliance, meaning you loose out on many HTTP/1.1
> performance features available in later releases.
>
> Amos
>

-- 
Regards,
Jason Leschnik.
[m] 0432 35 4224
[w@] jason dot leschnik <at> ansto dot gov dot au
[U@] jml974_at_uow.edu.au
Received on Wed Jul 25 2012 - 07:54:49 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 25 2012 - 12:00:02 MDT