does varnish write objects to disk?

Flemming Frandsen ff at partyticket.net
Mon Jan 15 19:30:29 CET 2007


Poul-Henning Kamp wrote:
>>Varnish caches objects into *memory* and not disk right?
> 
> No, varnish caches objects into "virtual memory" which means that
> RAM acts as a cache for the disk.

I guess the interesting detail is how eager the kernel is to write the 
mapped memory to disk.

It would be a shame to spend time and IO bandwidth to write a 1G cache 
out to disk if the box has 4G of RAM and would never need the RAM for 
anything other than the cache, woudn't it?

-- 
  Regards Flemming Frandsen - http://dion.swamp.dk - YAPH




More information about the varnish-misc mailing list