> -----Original Message----- > From: Amos Jeffries [mailto:squid3@xxxxxxxxxxxxx] > Sent: 21 January 2009 23:42 > To: Chris Robertson > Cc: squid-users@xxxxxxxxxxxxxxx > Subject: Re: cache_mem > > > Paul Cocker wrote: > >> Simple one I hope > >> > >> Once you have squid up and running and know its memory use and > >> overall system memory use, should cache_mem be set as a > percentage of > >> the free memory available, or should you be leaving a > large amount of > >> memory for the use of the OS file cache and keeping squid' > cache_mem > >> at a smaller value like 64MB? > >> > > > > 1) Squid's handling of large objects (1MB+) in memory can be CPU > > intensive. > > > > 2) Squid does not pull objects from the disk cache into the > memory cache. > > > > Given those two facts, I use a smaller cache_mem value (64 > or 128 MB) > > and leave the rest for the OS. > > (1) is only relevant to squid-2. Squid-3 handles large file > in-memory a lot better. But (2) still occurs in both, so it's > only partial improvement on initial handling. > > Amos > > How intensive is intensive? At the moment squid is averaging a mere 2.4% processor time. Paul TNT Post is the trading name for TNT Post UK Ltd (company number: 04417047), TNT Post (Doordrop Media) Ltd (00613278), TNT Post Scotland Ltd (05695897), TNT Post North Ltd (05701709), TNT Post South West Ltd (05983401), TNT Post Midlands Limited (6458167)and TNT Post London Limited (6493826). Emma's Diary and Lifecycle are trading names for Lifecycle Marketing (Mother and Baby) Ltd (02556692). All companies are registered in England and Wales; registered address: 1 Globeside Business Park, Fieldhouse Lane, Marlow, Buckinghamshire, SL7 1HY.