[squid-users] squid 3 virtual memory usage?

From: Dan Thomson <thomson.dan@dont-contact.us>
Date: Mon, 15 May 2006 14:10:18 -0700

Hey all,

Squid seems to be sucking up all available memory when I use aufs and
I'm trying to figure out why. I was hoping someone on the list might
have an answer.

I've reduced the cache_mem to 200 MB (the computer running squid has 3
gig), dropped the 2 cache_dirs down to 20 MB each and turned memory
pooling off. Despite this, when I run squid and request one object
(around 2 kb in size) squid's virtual memory jumps to use all
available memory, I get a bunch of "thread creation failed" errors and
squid dies.

(top right before squid dies):
  PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
 8066 proxy 25 0 3071m 56m 2372 R 94.2 1.5 0:02.86 squid

I'm assuming this is probably related to system settings. I've
tinkered with them a bit (both increasing and decreasing them) but so
far, no luck. I'm running this on a i386 debian machine (stable).

Any help would be appreciated. Here's a little snippet from my squid.conf:

# All testing values... just trying to get something working
cache_mem 200 MB
cache_swap_low 90
cache_swap_high 95

maximum_object_size 10 MB
minimum_object_size 0 KB
maximum_object_size_in_memory 10 MB
store_avg_object_size 20 KB

memory_pools off

cache_dir aufs /var/spool/squid/1 20 10 10
cache_dir aufs /var/spool/squid/2 20 10 10

Thanks a tonne,

Dan Thomson
Received on Mon May 15 2006 - 16:46:46 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:02 MDT