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

From: Serassio Guido <guido.serassio@dont-contact.us>
Date: Sat, 02 Apr 2005 19:35:17 +0100

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@acmeconsulting.it
WWW: http://www.acmeconsulting.it/
Received on Sat Apr 02 2005 - 11:36:04 MST

This archive was generated by hypermail pre-2.1.9 : Sun May 01 2005 - 12:00:03 MDT