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

From: David Touzeau <david_at_touzeau.eu>
Date: Sun, 02 Jan 2011 23:56:51 +0100

Thanks Leonardo

If i create 2 caches :

One (first) with 3Gb tmpfs memory
second with 500G hard disk memory.

Do you think that squid will increase performances using the first one.
Or did it make no sense ?

Le dimanche 02 janvier 2011 à 17:14 -0200, Leonardo Rodrigues a écrit :
> squid need some (a lot, in fact) RAM to keep indexes od the objects
> stored on the cache. You can use RAM to create a tmpfs and use it for
> cache, of course you can. But you cant forget squid uses RAM for other
> things as well.
>
> Getting 6 of 8 GBs to the tmpfs would, probably, leave very few RAM
> for squid (and all the rest of processes/OS stuff) and, eventually,
> squid (and the whole OS) would start swapping and then your performance
> would became VERY bad.
>
> With the correct calculations on RAM usage by squid and other
> processes, as well with some monitoring, you can surely use some of the
> available RAM to create a tmpfs and have squid caching things there. But
> 6 out of 8 i think its simply too much.
>
>
> Em 02/01/11 10:24, David Touzeau escreveu:
> > Dear
> >
> > 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 ?
> >
> > best regards
> >
>
>
Received on Sun Jan 02 2011 - 22:57:06 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 05 2011 - 12:00:01 MST