I have the following settings in my squid.conf file relating to the
memory usage:
cache_mem 200 MB
maximum_object_size_in_memory 512 KB
cache_replacement_policy heap GDSF
memory_replacement_policy heap GDSF
cache_dir diskd /var/spool/squid 200 16 256
cache_swap_high 100%
cache_swap_low 80%
The system is atom-based machine with 2GB memory. Even though squid
starts OK at first, it gradually baloons and the current memory usage
(according to ps) is:
root 14000 0.0 0.1 15868 2420 ? Ss Feb02 0:00 squid
-f /etc/squid/squid.conf
__squid 14003 0.2 65.3 1356920 1344848 ? S Feb02 162:04
(squid-1) -f /etc/squid/squid.conf
__squid 14004 0.0 0.0 3636 552 ? S Feb02 0:00 (unlinkd)
__squid 14006 0.0 0.0 4164 752 ? S Feb02 2:16 diskd
14339076 14339077 14339078
As evident, the memory currently used by squid is over 1.3GB. Since I am
using a lot of other stuff on that machine my intention was to limit the
memory occupied by squid to no more than 800MB at most and was hoping
with the above squid.conf settings to achieve that, but this is not the
case. So, what am I doing wrong (yes, I did read the Memory FAQ before
anyone asks!)? Thanks!
Received on Tue Apr 09 2013 - 16:44:13 MDT
This archive was generated by hypermail 2.2.0 : Wed Apr 10 2013 - 12:00:05 MDT