----- Original Message -----
From: "chima s" <chima.s@xxxxxxxxx>
To: "squid mailing" <squid-users@xxxxxxxxxxxxxxx>
Sent: Friday, August 04, 2006 8:24 PM
Subject: 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