On Sun, 14 Feb 2010 19:50:17 -0600, Andres Salazar <ndrsslzr80@xxxxxxxxx> wrote: > Hello, > > I just installed 3.1.0.16 on CentOS 5.4 I noticed that in general > sites low very slow, when i take the proxy off they load fine. Iam the > only user. This is the cache log (i have cache disabled) > > 2010/02/14 21:34:57| Starting Squid Cache version 3.1.0.16 for > i686-pc-linux-gnu... > 2010/02/14 21:34:57| Process ID 2967 > 2010/02/14 21:34:57| With 1024 file descriptors available > 2010/02/14 21:34:57| Initializing IP Cache... > 2010/02/14 21:34:57| DNS Socket created at [::], FD 5 > 2010/02/14 21:34:57| Adding nameserver 16.10.4.10 from /etc/resolv.conf > 2010/02/14 21:34:57| Adding nameserver 16.40.4.13 from /etc/resolv.conf > 2010/02/14 21:34:57| Adding domain localdomain from /etc/resolv.conf Sigh. I guess we should start helping the root guys out a bit. I highly recommend you find out where that .localdomain comes from and get it changed to .local or your real domain name. Even getting it changed in resolv.conf to "search .local. yourdomain.example.com" would be better. > 2010/02/14 21:34:57| Unlinkd pipe opened on FD 10 > 2010/02/14 21:34:57| Store logging disabled > 2010/02/14 21:34:57| Swap maxSize 0 + 262144 KB, estimated 20164 objects > 2010/02/14 21:34:57| Target number of buckets: 1008 > 2010/02/14 21:34:57| Using 8192 Store buckets > 2010/02/14 21:34:57| Max Mem size: 262144 KB > 2010/02/14 21:34:57| Max Swap size: 0 KB > 2010/02/14 21:34:57| Using Least Load store dir selection > 2010/02/14 21:34:57| chdir: /var/log/squid/cache_instance0: (2) No > such file or directory Highly suspicious ... chroot'ing to a non-existence directory? > 2010/02/14 21:34:57| Current Directory is /usr/local/squid/etc > 2010/02/14 21:34:57| Loaded Icons. > 2010/02/14 21:34:57| Accepting HTTP connections at [::]:200, FD 11. > 2010/02/14 21:34:57| HTCP Disabled. > 2010/02/14 21:34:57| Squid modules loaded: 0 > 2010/02/14 21:34:57| Ready to serve requests. > 2010/02/14 21:34:58| storeLateRelease: released 0 objects > 2010/02/14 21:43:34| Preparing for shutdown after 386 requests Second most suspicious. Only 386 objects requested. Does not seem like much of a test of speed to me. Were they all cacheable? > 2010/02/14 21:43:34| Waiting 0 seconds for active connections to finish > 2010/02/14 21:43:34| FD 11 Closing HTTP connection > 2010/02/14 21:43:35| Shutting down... > 2010/02/14 21:43:35| basic/auth_basic.cc(97) done: Basic > authentication Shutdown. > 2010/02/14 21:43:35| Closing unlinkd pipe on FD 10 > 2010/02/14 21:43:35| storeDirWriteCleanLogs: Starting... > 2010/02/14 21:43:35| Finished. Wrote 0 entries. > 2010/02/14 21:43:35| Took 0.00 seconds ( 0.00 entries/sec). > CPU Usage: 1.048 seconds = 0.721 user + 0.327 sys > Maximum Resident Size: 0 KB > Page faults with physical i/o: 0 > Memory usage for squid via mallinfo(): > total space in arena: 3352 KB > Ordinary blocks: 3305 KB 208 blks > Small blocks: 0 KB 1 blks > Holding blocks: 5884 KB 34 blks > Free Small blocks: 0 KB > Free Ordinary blocks: 46 KB > Total in use: 9189 KB 274% > Total free: 47 KB 1% > 2010/02/14 21:43:35| Open FD READ/WRITE 5 DNS Socket > 2010/02/14 21:43:35| Open FD READ/WRITE 13 Waiting for next request > 2010/02/14 21:43:35| Open FD READ/WRITE 16 Waiting for next request > 2010/02/14 21:43:35| Open FD READ/WRITE 17 Waiting for next request > 2010/02/14 21:43:35| Open FD READ/WRITE 19 Waiting for next request > 2010/02/14 21:43:35| Open FD READ/WRITE 22 Waiting for next request > 2010/02/14 21:43:35| Open FD READ/WRITE 37 Waiting for next request > 2010/02/14 21:43:35| Squid Cache (Version 3.1.0.16): Exiting normally. > > Iam using the default config with no alteration. > > This is a 5.4 CentOS install with an encrypted filesystem.. I wouldnt > think this would affect? Otherwise remember cache is turned off. Maybe > it has to do somehting with how it allocated memory? I have 1GB ram. By "turned off" you mean: * you have no configured cache_dir entries? * that you configured "cache deny all" ? * that you shut down Squid? Unless you cache objects in transit there is no speed gain. There is some slow down while squid processes things before passing them on. Working without Squid will not have to do that extra processing, so will seem faster when just passing packets on. The speed gains from Squid come when an object is fetched from some local cache instead of from the Internet pipes. Yes. I would expect an encrypted filesystem to work slower than a non-encrypted one. Amos