Search squid archive

Re: [squid-users] How to reduce cache_swap after cache disk is full

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

At 09.35 02/04/2005, Seewo Chen wrote:
df
/dev/hda1               147766      9321    130816   7% /boot
/dev/hda6             10080488   9515868     52552 100% /cache1
/dev/hda5             10080488   9568420         0 100% /cache2
none                    514688         0    514688   0% /dev/shm
/dev/hda7             12104380   3549532   7939964  31% /var

   squid.conf is:
cache_dir aufs /cache1 10000 16 123
cache_dir aufs /cache2 10000 16 123

There is something wrong in your setup:

10000 * 1024 = 10240000
Your partition size is 10080488 ......

Looking here:

http://www.squid-cache.org/Doc/FAQ/FAQ-4.html#ss4.14

"Next, I suggest taking off another 10% or so for Squid overheads, and a "safe buffer." Squid normally puts its swap.state files in each cache directory. These grow in size until you rotate the logs, or restart squid. Also note that Squid performs better when there is more free space. So if performance is important to you, then take off even more space. Typically, for a 9GB disk, I recommend a cache_dir setting of 6000 to 7500 Megabytes."

Regards

Guido


- ======================================================== Guido Serassio Acme Consulting S.r.l. - Microsoft Certified Partner Via Lucia Savarino, 1 10098 - Rivoli (TO) - ITALY Tel. : +39.011.9530135 Fax. : +39.011.9781115 Email: guido.serassio@xxxxxxxxxxxxxxxxx WWW: http://www.acmeconsulting.it/


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux