Search squid archive

Re: mix: memory and hdd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24/02/2012 11:08 p.m., Werner Kapferer wrote:
Hi!

I'd like to split my cache in 2 parts.
Small files (up to a specified size) should be restored ONLY in memory, bigger ones ONLY on the hdd.

Is this set by default (by maximum_object_size_in_memory) or will these files saved on the hdd additionally?

That depends on your version of Squid.

The memory cache is always preferred, unless the object is too large to fit within you max in-memory limit, or is of unknown (aka "infinitely large") size. The only reason things get kicked out of memory cache is overly-large, unknown size, or Squid needing more room in the memory cache. In those cases small object which have not been needed in a long while can get pushed out to disk.

NP: if you have one of the officially supported Squid (2.7, 3.1+) they will "promote" the small items back off disk into memory when they become needed again (if ever).

You also have the option of COSS (squid-2.7) or Rock (squid-3.2+) storage types of small objects. These act like disk-backed memcache storage, as fast as in-memory cache for recent hot items, can be larger, and no objects are lost on any crash or restarts.

Amos


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux