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...)

Reply via email to