[squid-users] Re: Squid high bandwidth IO issue (ramdisk SSD)

From: Heinz Diehl <htd_at_fancy-poultry.org>
Date: Sun, 2 Aug 2009 12:51:35 +0200

On 02.08.2009, smaugadi wrote:

> /dev/sdb1 /cache ext2 defaults,noatime 1 2

This is generally a bad idea, because ext2 with the defaults has higher disk
I/O, and with it comes higher latency. What about ext3/4 or xfs?

> Any ideas?

My tips:

1. Change cache_dir in squid from ufs to aufs.
2. Format /dev/sdb1 with "mkfs.xfs -f -l lazy-count=1,version=2 -i attr=2 -d agcount=4"
3. Mount it afterwards using "rw,noatime,logbsize=256k,logbufs=2,nobarrier" in fstab.
4. Use cfq as the standard scheduler with the linux kernel

(Btw: on my systems, squid-2.7 is noticeably _a lot_ slower than squid-3,
if the object is not in cache...)
Received on Sun Aug 02 2009 - 10:49:05 MDT

This archive was generated by hypermail 2.2.0 : Sat Aug 08 2009 - 12:00:02 MDT