Michael Pelletier wrote:
>
> In my squid.conf file, I have:
>
> cache_mem 64
> cache_mem_low 75
> cache_mem_high 90
>
> And yet in the "top" output on my BSD/OS 3.0 system, I see the following
> numbers:
>
> PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
> 252 root 2 4 123M 123M sleep 11:28 0.20% 0.20% squid
>
> Anyone know why it would have a 123MB resident size despite the cache
> config settings? Thanks!
I'm sure this is a faq or something...
cache_mem specifies a memory pool for 'hot' (ie recently requested)
objects.
This isn't the only memory used by squid. It uses a lot of memory
hashing for the objects in your cache, including everything on disk.
(Don't ask me the formula for determining this, I _used_ to know, back
when I was puzzled about it)
It's just the price you pay for the high performance really.
If memory does become an issue either drop cache_mem or if you believe
the disk-caching of you OS to be hot give one of the NOVM versions a go
(they don't use a cache_mem pool so all they use is indexing)
Hope this helps
Richard
-- Richard Clamp richardc@cannock.ac.ukReceived on Fri Jun 27 1997 - 01:23:52 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:35 MST