Hi,
I've spent the last couple of days on this problem and I've found that squid
isn't actually leaking the memory - it seems to be caused by memory
fragmentation!
Here's the memory information after downloading a 108 MB file...
Memory usage for squid via mallinfo():
Total space in arena: 60241 KB
Ordinary blocks: 1895 KB 47 blks
Small blocks: 0 KB 0 blks
Holding blocks: 460 KB 2 blks
Free Small blocks: 0 KB
Free Ordinary blocks: 58346 KB
Total in use: 2355 KB 4%
Total free: 58346 KB 96%
Total size: 60701 KB
Squid started at just 5MB
It grew to 110MB or so before I clicked save
But only returned to 60MB
I've tried the default malloc library, the gnu malloc library and the
dlmalloc library and they all show the same problem.
Does anyone have any ideas as to how we could avoid this memory
fragmentation problem?
Thanks in advance!
>From: "squid user" <squid_user@hotmail.co.uk>
>To: squid-users@squid-cache.org
>Subject: Re: [squid-users] Squid process not releasing mem_nodes
>Date: Tue, 13 Dec 2005 13:03:59 +0000
>
>Hi,
>
>Maybe I should have mentioned this before but I'm using the Icap client
>patch for squid and this problem only seems to happen when I've got Icap
>enabled.
>
>When I run my test with Icap disabled, squid will only grow by around 50
>mem_nodes and then waits until I press save or cancel on my browser.
>
>When I run my test with Icap enabled and send a 204 not interested from my
>Icap server, squid will grow by the full size of the file. When I cllick
>cancel, sometimes it will shrink back to its original size but sometimes it
>seems to pool the mem_nodes when it shouldn't.
>
>Thanks in advance for any help!
>
>>From: "squid user" <squid_user@hotmail.co.uk>
>>To: uhlar@fantomas.sk, squid-users@squid-cache.org
>>Subject: Re: [squid-users] Squid process not releasing mem_nodes
>>Date: Tue, 13 Dec 2005 10:45:48 +0000
>>
>>Hi,
>>
>>Thanks for the reply. I currently have the cache_mem directive set to 16
>>mb, so I
>>don't think that this setting would be the cause of the problem.
>>
>>
>>>From: Matus UHLAR - fantomas <uhlar@fantomas.sk>
>>>To: squid-users@squid-cache.org
>>>Subject: Re: [squid-users] Squid process not releasing mem_nodes
>>>Date: Mon, 12 Dec 2005 21:15:06 +0100
>>>
>>>On 12.12 15:38, first last wrote:
>>> > I have noticed that when using IE to download a large file via squid
>>>stable
>>> > 11 that the squid process does not revert back to its expected size
>>> > (roughly 77MB) after completion of the download. The following steps
>>>can be
>>> > used to recreate the problem:
>>>
>>>check cache_mem setting.
>>>
>>>--
>>>Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
>>>Warning: I wish NOT to receive e-mail advertising to this address.
>>>Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
>>>Atheism is a non-prophet organization.
>>
>>_________________________________________________________________
>>Be the first to hear what's new at MSN - sign up to our free newsletters!
>>http://www.msn.co.uk/newsletters
>>
>
>_________________________________________________________________
>Are you using the latest version of MSN Messenger? Download MSN Messenger
>7.5 today! http://messenger.msn.co.uk
>
_________________________________________________________________
The new MSN Search Toolbar now includes Desktop search!
http://toolbar.msn.co.uk/
Received on Thu Dec 15 2005 - 12:21:41 MST
This archive was generated by hypermail pre-2.1.9 : Sat Dec 31 2005 - 12:00:02 MST