Witam, Dnia pon, lis 01, 2010 at 01:17:46 +0000, Amos Jeffries napisaÅ: Thank you for reply. > > redirect_program /usr/local/bin/redirector.pl > > redirect_children 80 > > Replace those with: > url_write_program /usr/local/bin/redirector.pl > url_rewrite_children 80 > > > > > store_avg_object_size 8 kB > > minimum_object_size 1 KB > > maximum_object_size 100 MB > > maximum_object_size_in_memory 1 MB > > cache_mem 1000 MB > > > > cache_swap_low 80% > > cache_swap_high 100% > > cache_swap_high should be something less than 100% (99% may be better). > Squid will ONLY begin the aggressive space clearing when cache_swap_high > threshold is passed. So with 100% this may cause active connections to be > stopped while 20% of the cache is discarded. I try set cache_swap_high to 95%, and today squid again get a lot of cpu. > > > # previous cache > > #cache_dir ufs /var/spool/squid-cache/cache 30000 12 256 > > cache_dir aufs /var/spool/squid-cache/cache 30000 60 100 > > > > dns_nameservers 192.168.1.100 192.168.1.200 > > ipcache_size 8192 > > fqdncache_size 1024 > > positive_dns_ttl 2 hours > > negative_dns_ttl 1 minutes > > ipcache_low 90 > > ipcache_high 95 > > > > emulate_httpd_log on > > access_log /var/log/squid/access.log > > Remove emulate... and change access_log to: > access_log /var/log/squid/access.log common > > > cache_log /var/log/squid/cache.log > > cache_store_log /dev/null > > Set this to "cache_store_log none". > > > > > > > Rest of squid.conf are acls. I have about 30 - 40 mbps of traffic. On > > You have "http_access allow sloneczko" at the top of this config. so its > possible your other ACL are not working. > > > board > > are core2duo 1.8 ghz 4 gb ram on intel chipset, 2x SATA on soft raid > (for > > cache - md0). > > by "soft raid" you mean *software* raid? That is a disk IO killer for > Squid. Yes, software raid. > > > > > Any ideas? When I run -k debug I can't do anything - load has increased, > > > and nothing could be seen, thousands lines per second was write to > > cache.log. > > During a time when things go slow what seems to be the most common > thing(s) logged? > Nothing strange, fo example "Invalid request". I try set Your suggestions, and write for fiev days. -- Pozdrawiam MichaÅ Prokopiuk michal[@]sloneczko.net http://www.sloneczko.net