Re: [squid-users] Squid memory usage

From: nitesh naik <niteshnaik_at_gmail.com>
Date: Mon, 10 Nov 2008 16:26:03 +0530

Henrik,

I read FAQ and implemented almost most of the suggestion to reduce
memory usage. I am not much concern about memory usage as there plenty
of available memory but the issue is CPU usage goes high up to 100%
and slows down squid response once squid grows beyond allocated
cache_mem size . Does that mean squid is spending most of time in
releasing the objects from cache ? Most of the objects stored in cache
has TTL of 1 hour.

Following are few lines from squid.conf file.

http_port 0.0.0.0:80 accel defaultsite=s1.xyz.com vhost protocol=http
cache_peer 10.0.0.175 Parent 80 0 no-query round-robin originserver
monitorurl=http://10.0.0.175:80/healthcheck.gif
cache_peer 10.0.0.177 Parent 80 0 no-query round-robin originserver
monitorurl=http://10.0.0.177:80/healthcheck.gif
cache_peer 10.0.0.179 Parent 80 0 no-query round-robin originserver
monitorurl=http://10.0.0.179:80/healthcheck.gif
cache_peer 10.0.0.181 Parent 80 0 no-query round-robin originserver
monitorurl=http://10.0.0.181:80/healthcheck.gif
dead_peer_timeout 10 seconds
hierarchy_stoplist cgi-bin
hierarchy_stoplist ?
cache_mem 4294967296 bytes
maximum_object_size_in_memory 1048576 bytes
memory_replacement_policy lru
cache_replacement_policy lru
cache_dir null /empty
cache_swap_low 60
cache_swap_high 80
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 1800 20% 3600

Regards
Nitesh

On Sat, Nov 8, 2008 at 2:06 AM, Henrik Nordstrom
<henrik_at_henriknordstrom.net> wrote:
> Have you read the faq section on memory usage?
>
>
>
> On fre, 2008-11-07 at 20:02 +0530, nitesh naik wrote:
>> Henrik / Amos,
>>
>> Do you all think I should reduce cache_mem to lesser value ? Squid
>> stops responding as memory usage of squid grows upto 12GB. I have
>> allocate 8 GB cache_mem.
>>
>> We are using 64 bit machine running on Suse 10.1.
>>
>> Regards
>> Nitesh
>>
>>
>> On Thu, Nov 6, 2008 at 11:35 PM, nitesh naik <niteshnaik_at_gmail.com> wrote:
>> > Thanks everyone for your reply.
>> >
>> > I went through all these docs and also compiled squid with dmalloc
>> > option and disabled memory_pool. Squid memory usage grows upto 12GB+
>> > and squid stops responding when we try to rotate logs using squid -k
>> > rotate.
>> >
>> > I want squid up and running all the time even if its memory usage
>> > grows double the allocate cache_mem value.
>> >
>> > Regards
>> > Nitesh
>> > On Thu, Nov 6, 2008 at 3:58 PM, Adam Carter <Adam.Carter_at_optus.com.au> wrote:
>> >>> Squid memory usage grows beyond allocate cache_mem size of 8 GB.
>> >>
>> >> http://wiki.squid-cache.org/SquidFaq/SquidMemory
>> >>
>> >
>
Received on Mon Nov 10 2008 - 10:56:07 MST

This archive was generated by hypermail 2.2.0 : Mon Nov 10 2008 - 12:00:03 MST