Re: [squid-users] squid freebsd aufs + coss - same hd

From: Amos Jeffries <squid3@dont-contact.us>
Date: Fri, 07 Dec 2007 00:37:45 +1300

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
Received on Thu Dec 06 2007 - 04:37:50 MST

This archive was generated by hypermail pre-2.1.9 : Tue Jan 01 2008 - 12:00:01 MST