RE: [squid-users] TCP_HIT and TCP_MISS

From: Guillaume Chartrand <guillaume.chartrand@dont-contact.us>
Date: Tue, 18 Mar 2008 09:36:57 -0400

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:

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

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
cache_dir ufs /usr/local/squid/var/cache2 2500 16 256

all the other option is default value and I have some config for wccp

Thank

----------------------------
Guillaume Chartrand
Technicien informatique
Cégep régional de Lanaudière
Centre administratif, Repentigny
(450) 470-0911 poste 7218
-----Message d'origine-----
De : Manoj_Rajkarnikar [mailto:manoj@vianet.com.np]
Envoyé : 18 mars 2008 00:54
À : Guillaume Chartrand
Cc : squid-users@squid-cache.org
Objet : Re: [squid-users] TCP_HIT and TCP_MISS

On Mon, 17 Mar 2008, Guillaume Chartrand wrote:

> Hi everybody,
>
> I run Squid2.6Stable12 for few months ago and when I look to my access.log I have no TCP_HIT, I just have TCP_MISS, so it's seem to cache nothing. And if I look to the cache.log I have almost just entry like :
> httpReadReply: Excess data from
> or
> WARNING! Your cache is running out of filedescriptors
> 2008/03/17 07:23:54| WARNING: All url_rewriter processes are busy.
> 2008/03/17 07:23:54| WARNING: up to 27 pending requests queued

Some information from "squid -v" and squid.conf please..

>
> My configuration is a transparent squid with WCCP router to redirect without client configuration.
>
> So what I did wrong
>
> ----------------------------
> Guillaume Chartrand
> Technicien informatique
> Cégep régional de Lanaudière
> Centre administratif, Repentigny
> (450) 470-0911 poste 7218
>

-- 
Received on Tue Mar 18 2008 - 07:39:44 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Apr 01 2008 - 13:00:05 MDT