Search squid archive

Re: squid freebsd aufs + coss - same hd

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

 



Alexandre Correa wrote:
can 2 cache_dir on the same hd (dedicated for squid) cause performance impact ?

i´m using cache_dir aufs ... and cache_dir coss (objetcs smaller than 1000k)

cache_dir aufs /var/spool/squid/cache 110000 32 256
cache_dir coss /var/spool/squid/onda_coss01 6000 max-size=1000000
maxfullbufs=4 membufs=20 block-size=4096


thanks !!


Looks good. Just some hints though...

You'd do well to set min-size on the AUFS dir, to push the smaller objects into COSS. At present small objects can go to either, and large only in AUFS.

A 4KB block-size may cause a lot of watse if you get a large number of small objects such as optimized web pages or spacer images. The default 512 is sufficient for COSS dir up to 8GB large Not worth changing it now though if any important data has already gone to COSS. Would require a destroy and rebuild to fix that.

Two on same HDD might drag each other down a little, but no more than a single large cachedir doing the same throughput. Unfortunately squid is not head-optimised for disk usage yet. COSS is more in-memory than the others so it should still be a net gain over a single pure aufs.

Amos

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

  Powered by Linux