[squid-users] cache_dir amendment

From: Irwin Soo <irwinsoo@dont-contact.us>
Date: Tue, 27 Nov 2001 22:32:43 +0800

Hi all,

I'm a newbie here...

I 'm running squid2.4stable2 on RH7.1, here are some of my config before posing my questions here:-

1) cache partition
/dev/sdb1 53G 542M 49G 2% /directory1
/dev/sdb5 53G 542M 49G 2% /directory2
/dev/sdb6 53G 544M 49G 2% /directory3
/dev/sdb7 53G 543M 49G 2% /directory4
/dev/sdb8 53G 542M 49G 2% /directory5
/dev/sdb9 53G 542M 49G 2% /directory6

2) File Descriptors
/* Number of descriptors that can fit in an `fd_set'. */
#define __FD_SETSIZE 16384

3) ulimit prior to squid startup
ulimit -HSn 32768

4) max limit in /etc/sysctl.conf
# Increase file_max(/proc/sys/fs/file-max) size automatically
fs.file-max = 32768

Q: any serious misconfig from the above?

In my squid.conf

#Default:
# cache_dir ufs /usr/local/squid/cache 100 16 256
# cache_dir diskd /usr/local/squid/cache 8192 128 1024 Q1=72 Q2=96
 cache_dir diskd /directory1 8192 128 1024 Q1=72 Q2=96
 cache_dir diskd /directory2 8192 128 1024 Q1=72 Q2=96
 cache_dir diskd /directory3 8192 128 1024 Q1=72 Q2=96
 cache_dir diskd /directory4 8192 128 1024 Q1=72 Q2=96
 cache_dir diskd /directory5 8192 128 1024 Q1=72 Q2=96
 cache_dir diskd /directory6 8192 128 1024 Q1=72 Q2=96

with each physical cache partition to be 49GB, seemed like I only allocated 8GB out of each,
with directory and sub-directory to be 128 and 1024 respectively.

If I want to rectify my cache directory, is reinstallation the only resort? or I can perform steps
e.g. changes to cache_dir in squid.conf, recompile, restart squid as a alternative to reinstallation?
       

# Q1 specifies the number of unacknowledged I/O requests when Squid
# stops opening new files. If this many messages are in the queues,
# Squid won't open new files. Default is 64
#
# Q2 specifies the number of unacknowledged messages when Squid
# starts blocking. If this many messages are in the queues,
# Squid blocks until it recevies some replies. Default is 72

What are the considerations besides using the default values to directories, subdirectories and Q1/Q2 settings
taking into consideration read/write optimisation? I'm struggling to understand the description of Q!/Q2 in simpler terms.
appreciate your help here.

p.s. my h/w spec.(s) Intel PIII 1GB, 2GB RAM, 5x73GB cache data allocation(exclusive of OS, RAID5)

Thank you.

Rgds,

Irwin
Received on Tue Nov 27 2001 - 07:32:53 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:04:33 MST