Squid tends to be memory piggish as it likes to cache to ram. I want squid to not only put all that cache to the hard disk i want large files. Here is how you do it..[:)]
Login to your firewall using an ssh client using the "loginuser" ID.
Once logged in "su" to root...
ASL> su -
Password:
Open the .conf file in "joe".
ASL> joe /var/chroot-squid/etc/squid.conf-default
cache_mem
This is a biggie. It partially controls the maximum amount of ram used for the object cache. This is not a hard limit though. Since I want my stuff cached to the hard disk and i want to minimize ram usage by squid i set this to zero.
Default cache_mem 8 MB
Default maximum_object_size 4096 KB
Objects larger than this size will NOT be saved on disk. Make this as large as the largest file you want cached on the disk. I would not make it larger than 25% of your total squid partition size.
maximum_object_size_in_memory (bytes)
Objects greater than this size will not be attempted to be kept in the memory cache. Since we are loooking to minimize memory usage set this to zero. If you have a tons of free ram then make this at most a meg in size.
Default maximum_object_size_in_memory 8 KB
--------------------------------------------------------------------------
in v6 it is a bit different
The same procedure applies BUT:
look for the following:
[] Objects greater than this size will not be attempted to be kept in the memory cache. Since we are loooking to minimize memory usage set this to zero. If you have a tons of free ram then make this at most a meg in size.
next find [] Objects larger than this size will NOT be saved on disk. Make this as large as the largest file you want cached on the disk. I would not make it larger than 25% of your total squid partition size.
finally find []
This is a biggie. It partially controls the maximum amount of ram used for the object cache. This is not a hard limit though. Since I want my stuff cached to the hard disk and i want to minimize ram usage by squid i set this to zero.
Here are my v6 settings:
maximum_object_size_in_memory 0 KB
maximum_object_size 250 MB
cache_mem 0 KB
Once you make the mods save the file and then stop the http proxy. Wiat a few minutes and then restart it. That will load the new squid configuration.
This thread was automatically locked due to age.