Re: [squid-users] How often should I restart Squid?

From: Hendrik Voigtländer <hendrik@dont-contact.us>
Date: Mon, 21 Jun 2004 20:03:24 +0200

> Thanks everyone.
>
> I see, but according to Duane,
>
> http://www.onlamp.com/pub/a/onlamp/2004/02/12/squid.html
>
> ".....Another thing that can help is to simply restart Squid
> periodically, say, once per week. Over time, something may happen (such
> as a network outage) that causes Squid to temporarily allocate a large
> amount of memory. Even though Squid may not be using that memory, it may
> still be attached to the Squid process. Restarting Squid allows your
> operating system to truly free up the memory for other uses....."
>
> If a client switches off his computer suddenly, is it equivalent to a
> "network outage"? I've read the FAQ, but could'nt ascertain that using
> the SWAP space is a bad thing. Does your caching servers uses up 250MB
> of SWAP?
>
> Thanks
>
> Liz
>

Yes, our proxy did use swap until I disabled it :-)
2GB RAM, squid process is stable at roughly 1GB process size,
nevertheless the machine started swapping.
I never figured out why, but the proxy is running fine without any
swapspace. This is dangerous with a squid still growing.
Using swap (for the squid process) affects performance.
I would reduce cache_mem and probably the size of the cache_dir(s) to
avoid this situation.

Regards, Hendrik
Received on Mon Jun 21 2004 - 12:03:51 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jul 01 2004 - 12:00:03 MDT