Saturday, April 08, 2006

Improve Squid Caching

1. Create separate partitions for /var/squid/0 and /var/squid/1
2. Edit /etc/squid/squid.conf and specify following settings in it:

cache_dir diskd /var/squid/0/cache0 1536 32 64
cache_dir diskd /var/squid/1/cache0 1536 32 64
cache_dir diskd /var/squid/0/cache1 1536 32 64
cache_dir diskd /var/squid/1/cache1 1536 32 64
cache_dir diskd /var/squid/0/cache2 1536 32 64
cache_dir diskd /var/squid/1/cache2 1536 32 64

3. Comment the following parameters:
cache_mem 8 MB

4. If possible make this two partitions reiserfs.

No comments: