Re: [squid-users] I/O Performance Tuning

From: Chris Robertson <crobertson_at_gci.net>
Date: Tue, 08 Sep 2009 10:27:01 -0800

Henrik Nordstrom wrote:
> sön 2009-09-06 klockan 07:26 -0700 skrev pokeman:
>
>> Thanks henrik for your tip can you guide me what is the recomended setting
>> for coss .2ndly currenly i am using aufs . after enabling coss what heppen
>> with store cache object. coss required to use clean disk .
>>
>
> You can use both coss & aufs on the same drive. To keep config clean
> just move the aufs data down to a folder below the root of that disk.
>
> cd /cache
> mkdir aufs
> mv ?? swap.state* aufs
> mkdir coss1
> [repeat for as many coss stores you need]
>

For what it's worth, I found that putting my COSS stripe in a file on a
congested disk did nothing for performance. I wound up creating two
partitions per disk. The first is dedicated to COSS and the second
(formatted ext3) holds my aufs cache dir.

[root_at_proxypool-1 ~]# fdisk -l /dev/sdc

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot Start End Blocks Id System
/dev/sdc1 1 6080 48837568+ 83 Linux
/dev/sdc2 6081 24317 146488702+ 83 Linux
[root_at_proxypool-1 ~]# mount|grep squid
/dev/sdc2 on /usr/local/squid/var/cache/1 type ext3 (rw,noatime,nodiratime)
...
[root_at_proxypool-1 ~]# grep ^cache_dir /etc/squid/squid.conf
cache_dir coss /dev/sdc1 46080 max-size=51200 max-stripe-waste=32768
block-size=4096
...
cache_dir aufs /usr/local/squid/var/cache/1 153600 128 256 min-size=51200

At current peaks of 80 req/sec, my load average hovers around 0.3 and my
HIT service time rarely even registers.

Of course, YMMV.

> then reconfigure squid as appropriate.
>
> Regards
> Henrik
>

Chris
Received on Tue Sep 08 2009 - 18:27:14 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 09 2009 - 12:00:02 MDT