Hi All

I am trying to load test squid using this simple test. From a single client 
machine I want to simultaneously download 200 different HTTP files of 10MB each 
in a loop over and over again. I see that within 5 minutes squid process size 
goes beyond 250MB. These 10MB files are all cachable and return a TCP_HIT for 
the second time onwards. There are other processes running and I want to limit 
squid memory usage to 120MB. Hard disk partition allocated to Squid is of 10GB 
and is made using device-mapper. I am using 3 cache_dir as mentioned below. How 
can I control Squid memory usage in this case? Below is my portion of my 
squid.conf.

----------------------------------------
access_log /squid/logs/access.log  squid
cache_log /squid/logs/cache.log

cache_mem 8 MB
cache_dir aufs /squid/var/cache/small 1500 9 256 max-size=10000
cache_dir aufs /squid/var/cache/medium 2500 6 256 max-size=20000000
cache_dir aufs /squid/var/cache/large 6000 3 256 max-size=100000000
maximum_object_size 100 MB
log_mime_hdrs off
max_open_disk_fds 400
maximum_object_size_in_memory 8 KB

cache_store_log none
pid_filename /squid/logs/squid.pid
debug_options ALL,1
-------------------

Regards,
Saurabh

Reply via email to