Following this faq you could improve the speed of squid drasticly, due to the way I/O requests are done.
http://www.squid-cache.org/Doc/FAQ/FAQ-22.html
requirements
- a kernel which supports message queues
check with ls /proc/sys/kernel
among other modules you find the files who are needed to fit requirements.
shmall
shmmax
shmmni
msgmax
msgmnb
msgmni
another indication: The availabilty of the file /etc/sysctl.conf
- use of shared memory
not a problem at all
How to implement
There are 2 different methods to implement this. You can use Webmin or you can modify the squid.conf file directly.
webmin way
https://192.168.1.1:10000/squid/edit_cache.cgi
or
http://192.168.1.1:10000/squid/edit_cache.cgi
add
Directory: /var/spool/squid
Type: DISKD
Size: 100 Mb
1st level dir: 16
2nd level dirs 256
modifying /etc/squid/squid.conf
In
# TAG: cache_dir
add a line like this
#Default: (existing line)
# cache_dir ufs /var/spool/squid 100 16 256(existing line)
cache_dir diskd /var/spool/squid 100 16 256
restart squid
options enough: use webmin or type service squid restart
Linux - the O/S of the GNU Millenium