Re: [squid-users] Cache dir in tmpfs partition

From: Matus UHLAR - fantomas <uhlar_at_fantomas.sk>
Date: Mon, 10 Jan 2011 11:35:19 +0100

On 02.01.11 13:24, David Touzeau wrote:
> I have a server with 8Gb memory
>
> I would like to know there is any benefits to create a 6Gb cache in
> memory with a tmpfs partition ?

The onl~y benefit would be that cache is preserved between squid restarts,
when server isn't restarted (and thus tmpfs is kept).

The downside would be that some objects will be stores in wram twice - in
squid process' memory AND the filesystem.

Much better would be using 4-6GB for cache_mem and turn off cache_dir
completely.

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
REALITY.SYS corrupted. Press any key to reboot Universe.
Received on Mon Jan 10 2011 - 10:35:23 MST

This archive was generated by hypermail 2.2.0 : Mon Jan 10 2011 - 12:00:02 MST