Guillaume Chartrand wrote:
I try the solution on the other post to increase file descriptor I have 4096 when I do a ulimit -n I recompile squid Here what I have when I run squid -v Squid Cache: Version 2.6.STABLE12 configure options:
No configure options at all? The default (last I checked) did not allow for support of aufs cache dirs.
Here some cache.log when I restarted after recompile and few test 2008/03/18 09:02:46| Starting Squid Cache version 2.6.STABLE12 for i686-pc-linux-gnu... 2008/03/18 09:02:46| Process ID 10769 2008/03/18 09:02:46| With 4096 file descriptors available 2008/03/18 09:02:46| Using epoll for the IO loop 2008/03/18 09:02:46| Performing DNS Tests... 2008/03/18 09:02:46| Successful DNS name lookup tests... 2008/03/18 09:02:46| DNS Socket created at 0.0.0.0, port 32848, FD 5 2008/03/18 09:02:46| Adding nameserver 172.20.20.3 from /etc/resolv.conf 2008/03/18 09:02:46| helperOpenServers: Starting 10 'squidGuard' processes ... 2008/03/18 09:02:46| Unlinkd pipe opened on FD 20 2008/03/18 09:02:46| Swap maxSize 5120000 KB, estimated 393846 objects 2008/03/18 09:02:46| Target number of buckets: 19692 2008/03/18 09:02:46| Using 32768 Store buckets 2008/03/18 09:02:46| Max Mem size: 524288 KB 2008/03/18 09:02:46| Max Swap size: 5120000 KB 2008/03/18 09:02:46| Store logging disabled 2008/03/18 09:02:46| Rebuilding storage in /usr/local/squid/var/cache (CLEAN) 2008/03/18 09:02:46| Rebuilding storage in /usr/local/squid/var/cache2 (CLEAN) 2008/03/18 09:02:46| Using Least Load store dir selection 2008/03/18 09:02:46| Set Current Directory to /usr/local/squid/var/core 2008/03/18 09:02:46| Loaded Icons. 2008/03/18 09:02:46| Accepting transparently proxied HTTP connections at 0.0.0.0, port 3128, FD 23. 2008/03/18 09:02:46| Accepting ICP messages at 0.0.0.0, port 3130, FD 24. 2008/03/18 09:02:46| WCCP Disabled. 2008/03/18 09:02:46| Accepting WCCPv2 messages on port 2048, FD 25. 2008/03/18 09:02:46| Initialising all WCCPv2 lists 2008/03/18 09:02:46| Ready to serve requests. 2008/03/18 09:02:46| Store rebuilding is 3.9% complete 2008/03/18 09:02:49| Done reading /usr/local/squid/var/cache2 swaplog (97993 entries) 2008/03/18 09:02:49| Done reading /usr/local/squid/var/cache swaplog (104485 entries) 2008/03/18 09:02:49| Finished rebuilding storage from disk. 2008/03/18 09:02:49| 202478 Entries scanned 2008/03/18 09:02:49| 0 Invalid entries. 2008/03/18 09:02:49| 0 With invalid flags. 2008/03/18 09:02:49| 202478 Objects loaded. 2008/03/18 09:02:49| 0 Objects expired. 2008/03/18 09:02:49| 0 Objects cancelled. 2008/03/18 09:02:49| 0 Duplicate URLs purged. 2008/03/18 09:02:49| 0 Swapfile clashes avoided. 2008/03/18 09:02:49| Took 3.1 seconds (65621.5 objects/sec). 2008/03/18 09:02:49| Beginning Validation Procedure 2008/03/18 09:02:49| Completed Validation Procedure 2008/03/18 09:02:49| Validated 202478 Entries 2008/03/18 09:02:49| store_swap_size = 4606476k 2008/03/18 09:02:50| storeLateRelease: released 0 objects 2008/03/18 09:10:29| httpReadReply: Excess data from "POST http://login.live.com/login.srf?id=2&svc=mail&cbid=43577" 2008/03/18 09:11:01| NOTICE: no explicit transparent proxy support enabled. Assuming getsockname() works on intercepted conne ctions 2008/03/18 09:11:01| WARNING: Forwarding loop detected for: Client: 172.20.20.18 http_port: 172.20.20.18:3128 GET http://172.20.20.18:3128/design/motherbd/software/ias/updates.htm HTTP/1.0 Via: 1.0 squid.collanaud.qc.ca:3128 (squid/2.6.STABLE12) X-Forwarded-For: 172.21.132.93 Host: 172.20.20.18:3128 Cache-Control: max-age=259200 Connection: keep-alive
So your router is intercepting Squid's traffic and redirecting it back to Squid. That's not so good. In a big way.
And here is some of my squid.conf # Squid normally listens to port 3128 #http_port 3128 http_port 3128 transparent #Default: # cache_mem 8 MB cache_mem 512 MB #Default: # maximum_object_size 4096 KB maximum_object_size 25600 KB#Default: cache_dir ufs /usr/local/squid/var/cache 2500 16 256 # this one is a symlink to another disk
A symlink, or is the other disk mounted here. No matter, but you should probably be using aufs, which you will have to compile support for.
cache_dir ufs /usr/local/squid/var/cache2 2500 16 256
So how much memory does this box have? You've dedicated about a GB of RAM for Squid alone (512 cache_mem + (5GB of cache_dir * 0.1)).
all the other option is default value and I have some config for wccp
And apparently some url_rewriters (unless those are implied by using wccp...).
Thank ---------------------------- Guillaume Chartrand Technicien informatique Cégep régional de Lanaudière Centre administratif, Repentigny (450) 470-0911 poste 7218
Chris