Re: [squid-users] coss configuration example

From: Steven Wilton <swilton@dont-contact.us>
Date: Sat, 5 Aug 2006 11:16:32 +0800

----- Original Message -----
From: "chima s" <chima.s@gmail.com>
To: "squid mailing" <squid-users@squid-cache.org>
Sent: Friday, August 04, 2006 8:24 PM
Subject: [squid-users] coss configuration example

> Hi,
>
> Can any one give the squid configuration to use coss cache_dir.
>
> My system info
>
> Fedora Core release 3
> Kernel : 2.6.10
> Squid : squid-2.6.STABLE2-20060804
> MEM: 2GB
> HD : 2*72 GB SCSI
> System Filesystem: reiserfs
>
> How COSS_MEMBUF_SZ is calculated for given cache_dir size
>
> Regards
> Chima
>

The minimum config for a COSS dir is the following (for 100MB cache_dirs):
cache_dir coss /var/spool/squid/coss 100 block-size=512 max-size=131072
or
cache_dir coss /dev/sdb1 100 block-size=512 max-size=131072

If you set COSS to write to a flie, you must create the file manually. To
do this, you can run:
dd if=/dev/zero bs=1048576 count=<size> of=<file>

If you set COSS to write direct to a block device, you need to make sure
that the cache user has write permissions on the block device.

The COSS_MEMBUF_SZ does not get set on a per-device basis. The magic number
you need to be aware of is the block-size, which limits the size of the
cache. The valid numbers are:

block-size=512 - 8GB Max cache_dir size
block-size=1024 - 16GB Max cache_dir size
block-size=2048 - 32GB Max cache_dir size
block-size=4096 - 64GB Max cache_dir size
block-size=8192 - 128GB Max cache_dir size

Steven
Received on Fri Aug 04 2006 - 21:16:24 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:01 MDT