Re: [squid-users] Memory usage of squid parent proces the same as child

From: Tek Bahadur Limbu <[email protected]>
Date: Thu, 10 Jan 2008 21:31:38 +0545

Hi Tomasz,

Tomek K. wrote:
> Thanks for Your reply,
>
> As you sugested now I have squid 2.6 STABLE 17 and the memory usage is the
> same as it was before:
>
> top - 21:59:22 up 4 min, 1 user, load average: 0.01, 0.06, 0.02
> Tasks: 112 total, 1 running, 111 sleeping, 0 stopped, 0 zombie
> Cpu(s): 0.2%us, 0.0%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si,
> 0.0%st
> Mem: 3502208k total, 3059428k used, 442780k free, 3828k buffers
> Swap: 2650684k total, 0k used, 2650684k free, 32544k cached
>
> %MEM PID USER PR NI VIRT RES SHR S %CPU TIME+ COMMAND
> 42.9 2339 proxy 15 0 1469m 1.4g 1512 S 0 0:11.99 squid
> 42.5 2322 root 25 0 1456m 1.4g 396 S 0 0:00.11 squid
>
>
>
>
> Amos Jeffries-2 wrote:
>> Tomek K. wrote:
>>> Hello,
>>>
>>> I have squid server running on Linux Debian Etch. Squid Version
>>> 2.6.STABLE5
>> First step is upgrade to the latest 2.6 STABLE17 from unstable. There
>> have been a lot of improvements made since stable5.
>>
>> Amos
>>
>>> is using LDAP group authentication based on Win2003 domain controller.
>>> The hardware configuration is:
>>> IBM xSeries 336 with one XEON 3.4GHz, 4GB RAM, 2xHDD SCSI 146GB 15K with
>>> RAID 1
>>>
>>> The problem is that the squid restarts after memory leak. I tried to find
>>> the reason, and I found that the reason is to big memory consumption by
>>> squid parent proces which is almost the same as child memory usage which
>>> is
>>> the main cache proces.
>>>
>>>
>>> Below is the top informations about memory usage:
>>> top - 22:41:04 up 1 day, 3:55, 1 user, load average: 0.00, 0.00, 0.00
>>> Tasks: 112 total, 1 running, 111 sleeping, 0 stopped, 0 zombie
>>> Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 99.8%id, 0.2%wa, 0.0%hi, 0.0%si,
>>> 0.0%st
>>> Mem: 3502208k total, 3360836k used, 141372k free, 118448k buffers
>>> Swap: 2650684k total, 0k used, 2650684k free, 165420k cached
>>>
>>> %MEM PID USER PR NI VIRT RES SHR S %CPU TIME+ COMMAND
>>> 42.9 4181 proxy 15 0 1469m 1.4g 1512 S 0 0:11.81 squid
>>> 42.5 4175 root 25 0 1456m 1.4g 404 S 0 0:00.10 squid
>>>
>>> This are the main squid.conf entries:
>>> http_port 8080
>>> icp_port 0
>>> auth_param basic children 50
>>> auth_param basic credentialsttl 1 minute
>>>
>>>
>>> no_cache deny QUERY
>>>
>>> cache_mem 48 MB
>>> maximum_object_size 900000 KB

Try reducing:

maximum_object_size 90000 KB

>>>
>>> minimum_object_size 0 KB
>>>
>>> request_body_max_size 900000 KB
>>>
>>> cache_dir ufs /var/spool/squid 8192 128 256

cache_dir ufs /var/spool/squid 8192 16 256

>>> cache_replacement_policy heap LFUDA
>>> cache_store_log none
>>> access_log /var/log/squid/access.log
>>>
>>> forwarded_for off
>>>
>>> delay_pools 1
>>> delay_class 1 1
>>> delay_access 1 allow all
>>> delay_parameters 1 74000/74000
>>>
>>>
>>> Is this memory usage by parent proces right ?
>>> How can I change it ?
>>>
>>> Regards
>>> Tomasz Krawczyk
>>>
>>>
>>
>> --
>> Please use Squid 2.6STABLE17 or 3.0STABLE1.
>> There are serious security advisories out on all earlier releases.
>>
>>
>>
>

-- 
With best regards and good wishes,
Yours sincerely,
Tek Bahadur Limbu
System Administrator
(TAG/TDG Group)
Jwl Systems Department
Worldlink Communications Pvt. Ltd.
Jawalakhel, Nepal
http://www.wlink.com.np
http://teklimbu.wordpress.com
Received on Thu Jan 10 2008 - 08:47:31 MST

This archive was generated by hypermail pre-2.1.9 : Fri Feb 01 2008 - 12:00:04 MST