Re: How cache into RAM memory rather than on disk?

From: Peter Polkinghorne <[email protected]>
Date: Tue, 16 May 2000 14:55:02 +0100

hillel@learn.co.za wrote:

> Anyone know how to place the cache in RAM memory, rather than on the
> harddrive.
> When you view access.log, you get many TCP_HIT's and TCP_MEM_HIT's.
> TCP_HIT's are when a valid copy of the requested object was in the cache.
> and TCP_MEM_HIT's are when the requested object was in cache and memory,
> thus avoiding disk access. How do you get squid to put the cached objects
> in memory if there is space? This should speed up the cache considerably.

Do not forget (although this may be obvious), any OS worth its salt will
cache the disc in memory. If you have a lot of memory - is it all being used?
If so then Squid will be using some for its own small memory cache (as
Henrik described) and its general housekeeping indexing of the disc cache,
but the rest should be used by the OS for buffering disc.

This may not be optimum solution (ie squid manages raw memory and disk), but
it is not too bad.

-- 
-----------------------------------------------------------------------------
| Peter Polkinghorne, Computer Centre, Brunel University, Uxbridge, UB8 3PH,|
| Peter.Polkinghorne@brunel.ac.uk   +44 1895 274000 x2561       UK          |
-----------------------------------------------------------------------------
Received on Tue May 16 2000 - 07:59:19 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:53:30 MST