[squid-users] Squid 3.2x: Question about performances in tmpfs

From: David Touzeau <david_at_touzeau.eu>
Date: Fri, 02 Mar 2012 16:47:23 +0100

Dear /
/
I have a server with 8Go memory on 4 processors.
Currently my squid proxy 3.2 and my Debian using around 2Go memory in
the full production mode.

I would like to try to add a kind of "temporary" cache in tmpfs using
around 3.5go of Squid Cache./

/Did it make sense to perform this infrastructure in order to speed I/O
for Squid ?/

/Did it possible to do this on the squid.conf ? :/
/
Means that the tmpfs is monted on /var/cache/squid-tmpfs
Each instance will have 875 Mb on a tmpfs and when the size is full it
will automatically start to run the standard cache based on disk.
/
/workers 4
if ${process_number} = 1
cache_dir aufs /var/cache/squid-tmpfs/proc1 875 128 512
cache_dir aufs /var/cache/squid2-1 15000 128 512
endif
if ${process_number} = 2
cache_dir aufs /var/cache/squid-tmpfs/proc2 875 128 512
cache_dir aufs /var/cache/squid2-2 15000 128 512
endif
if ${process_number} = 3
cache_dir aufs /var/cache/squid-tmpfs/proc3 875 128 512
cache_dir aufs /var/cache/squid2-3 15000 128 512
endif
if ${process_number} = 4
cache_dir aufs /var/cache/squid-tmpfs/proc4 875 128 512
cache_dir aufs /var/cache/squid2-4 15000 128 512
endif

/
/
Received on Fri Mar 02 2012 - 15:47:36 MST

This archive was generated by hypermail 2.2.0 : Fri Mar 02 2012 - 12:00:02 MST