Re: [squid-users] Changing cache_dir line

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 27 Jan 2011 22:59:04 +1300

On 27/01/11 22:31, Dayo Adewunmi wrote:
> Hi
>
> I'm using squid 2.6.18-1ubuntu3
> 8GB RAM
> Intel Xeon Quad Core @ 2.00GHz each
>
> My cache_dir is still default: cache_dir ufs /var/spool/squid 100 16 256
>
> /var is in the root partition and there's not much space left. I want to
> use /srv for caching instead, because I've got about 60GB free space on
> that partition. I was thinking of using about 50GB for cache_dir.

If you are worried about a mere 100MB on that drive then I suggest
moving /var/cache, /var/spool, /var/www and /var/log off it entirely for
starters.

>
> I read that for linux aufs is better than ufs. What else do I need to
> consider except change "ufs" to "aufs" and change "100" to "50000"?

You need to consider the available RAM on the machine versus the approx.
10MB RAM per 1GB of files which the cache_dir index will consume.

You may want to bump the 16 up to 32 while you are at it.

And don't forget to run "squid -z" before restarting the main process.

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.10
   Beta testers wanted for 3.2.0.4
Received on Thu Jan 27 2011 - 09:59:09 MST

This archive was generated by hypermail 2.2.0 : Thu Jan 27 2011 - 12:00:03 MST