Mr Dash Four wrote:
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
The above was with squid 3.2.0 and made after about a month of continues squid use. The following is with squid 3.3.4 and made after more than 48 days of such use:

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 300 16 256
cache_swap_high 100
cache_swap_low 80

root 2904 0.0 0.1 16484 2576 ? Ss Jun22 0:00 squid -f /etc/squid/squid.conf __squid 2906 0.2 4.4 105088 90896 ? S Jun22 190:57 (squid-1) -f /etc/squid/squid.conf
__squid     2908  0.0  0.0   3668   708 ?        S    Jun22   0:00 (unlinkd)
__squid 2909 0.0 0.0 4192 968 ? S Jun22 2:43 diskd 2975748 2975749 2975750


The above, I think, speaks for itself - quite a difference!

Reply via email to