On 10.05 05:38, Rahul Sinha wrote: > My squid proxy is very slow as compared to cacheflow which is > configured as a failover. > Also squid eats up memory :: > total used free shared buffers cached > Mem: 1001 983 18 0 108 294 > -/+ buffers/cache: 580 421 > Swap: 1027 28 999 > > Free memory is only 18 MB out of 1 GB the "-/+ buffers/cache" is important. you see that 580 MB is used by processes and 421 is left fot buffers, dick cache and unused. You see that you have enough of memory. > 19:45:14 up 10 days, 16:25, 3 users, load average: 1.06, 1.11, 1.08 > 100 processes: 98 sleeping, 2 running, 0 zombie, 0 stopped > CPU states: cpu user nice system irq softirq iowait idle > total 25.4% 0.0% 2.6% 0.0% 0.0% 2.2% 69.5% > cpu00 100.0% 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% > cpu01 0.0% 0.0% 2.5% 0.0% 0.0% 0.0% 97.4% > cpu02 1.9% 0.0% 7.7% 0.0% 0.0% 4.1% 86.0% > cpu03 0.0% 0.0% 0.3% 0.0% 0.0% 4.7% 94.8% > PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND > 1653 root 25 0 600 20 4 R 24.6 0.0 15344m 0 cmaperfd > 29173 squid 15 0 214M 210M 840 S 3.5 21.0 11:27 2 squid > The %Memory by squid is 21.0 right. That is not much, and squid even doesn't eat all your CPU, so the problems will probably lie somewhere else, probably in disk I/O. > Squid configuration is as follows:: > cache_swap_low 90 > cache_swap_high 92 low difference for such small cache size. > cache_dir ufs /var/squid/cache 8000 18 256 > cache_dir ufs /usr/local/squid/var/cache 2000 5 256 doesn't your cache eat too much space on filesystem? read http://www.squid-cache.org/Doc/FAQ/FAQ-4.html#ss4.14 Also you should try aufs instead of ufs. > memory_pools off you should turn this on. -- Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. Fucking windows! Bring Bill Gates! (Southpark the movie)