Re: [squid-users] Fwd: help

From: Chris Robertson <crobertson_at_gci.net>
Date: Tue, 13 Jan 2009 12:34:39 -0900

vivian t wrote:
> hello
>
> i have problem with memory
> the OS centos 5.2
> i have 146 GB total size of hard disk
> the size of cache_dir 91GB
> i have 5GB RAM
> squid version 2.7stable5
>
> my conf file is
>
>
> cache_dir aufs /var/spool/squid 91000 130 256
>
> cache_mem 512 MB
>
> maximum_object_size 5 MB
> maximum_object_size_in_memory 32 KB
>
> cache_swap_low 98%
> cache_swap_high 99%
>
> cache_replacement_policy heap LFUDA
>
> memory_replacement_policy heap GDSF
>
> high_memory_warning 1500 MB
>
> ipcache_size 4096
> ipcache_low 98
> ipcache_high 99
>
> cache_store_log none
>
> hierarchy_stoplist cgi-bin ?
>
> acl QUERY urlpath_regex cgi-bin \?
> no_cache deny QUERY
>
> cache_effective_user squid
>
> auth_param basic children 5
> auth_param basic realm Squid proxy-caching web server
> auth_param basic credentialsttl 2 hours
> auth_param basic casesensitive off
>
> when i run free command i found
> total used free shared
> buffers cached
> Mem: 5014372 4983464 30908 0 239252 3424148
>

What makes you think you have memory problems? Of the 5GB, just under
3.5GB is being used by the OS to speed up disk accesses (cached) and
another 200+MB is being held by the OS for quick allocation (buffers).
The 30MB of free memory is not being used at all, and as such is
effectively wasted. Since it's just over half a percent of your total
RAM, I suppose that can be forgiven. ;o)

> please help me to put correct conf
>

Bump that high_memory_warning to half your RAM, or reset it to the
default value, which will disable it.

> thank you
>

Chris

P.S. Have a gander at the RH9 admin primer page on memory usage
(http://www.redhat.com/docs/manuals/linux/RHL-9-Manual/admin-primer/s1-memory-rhlspec.html).
The tools used haven't changed significantly in the intervening time.
Received on Tue Jan 13 2009 - 21:32:39 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 14 2009 - 12:00:03 MST