Koozali.org: home of the SME Server

tuning squid

Daniel James

tuning squid
« on: March 11, 2002, 12:20:15 AM »
I am intending to increase the amount of disk space that Squid can use for caching.
I have noticed that if I edit /etc/squid/squid.conf and remove the # from the line
#cache_dir /var/spool/squid 100 16 256
that squid doesn't work.

By default squid uses 100MB with 16 first level directories and then 256 directories in each of those.
I was going to change it to 1000MB.
I tried uncommenting the line and changing it to 1000 and restarted squid (service squid start) gave this error:

FATAL: Unknown cache_dir type '/var/spool/squid'
Squid Cache (Version 2.3.STABLE4): Terminated abnormally.
CPU Usage 0.000 seconds =0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 192

I then tried returning the line to its default (but removing the #) and still get the error.
If I comment out the line then squid uses the defaults and its fine.

I am using essg 4.1.2.
Seems strange to me that just removing the #comment from the cache_dir line causes a problem when the config file comments says it uses the values on that line as  default anyway!

Filippo Carletti

Re: tuning squid
« Reply #1 on: March 11, 2002, 05:04:20 PM »
It's a FAQ.
See squid-cache.org.

Filippo Carletti

Re: tuning squid
« Reply #2 on: March 11, 2002, 05:06:33 PM »
Oops.
cache_dir ufs /var/spool/squid 1000 16 256
Use the templates system.