[squid-users] Loads of TCP_MISS on files that should be hit

From: Victor <victor.lavaud_at_gmail.com>
Date: Wed, 09 Jan 2013 09:43:09 +0100

Hello

After spending hours configuring squid 3.2.5, I only get TCP_MISS. To
narrow the problem, I will focus on one PNG file that I want cached, but
note that I get TCP_MISS for 99% of my requests, not only PNG files.
Refreshing doesn’t help, it never gets a TCP_HIT.

        1357671721.566 127 127.0.0.1 TCP_MISS/200 618 GET
http://flags.tatoeba.org/img/flags/epo.png - HIER_DIRECT/86.65.39.22
image/png
        
in cache.log, I get:

        2013/01/09 09:27:04.627 kid1| client_side.cc(2298)
        parseHttpRequest: HTTP Client local=127.0.0.1:3303
        remote=127.0.0.1:54645 FD 12 flags=1
        2013/01/09 09:27:04.627 kid1| client_side.cc(2299)
        parseHttpRequest: HTTP Client REQUEST:
        ---------
        GET http://flags.tatoeba.org/img/flags/epo.png HTTP/1.1
        User-Agent: Wget/1.14 (linux-gnu)
        Accept: */*
        Host: flags.tatoeba.org
        Connection: Close
        Proxy-Connection: Keep-Alive
        
        
        ----------
        2013/01/09 09:27:04.719 kid1| http.cc(2221) httpStart:
        httpStart: "GET http://flags.tatoeba.org/img/flags/epo.png"
        2013/01/09 09:27:04.719 kid1| http.cc(2177) sendRequest: HTTP
        Server local=192.168.1.13:56799 remote=86.65.39.22:80 FD 13
        flags=1
        2013/01/09 09:27:04.719 kid1| http.cc(2178) sendRequest: HTTP
        Server REQUEST:
        ---------
        GET /img/flags/epo.png HTTP/1.1
        User-Agent: Wget/1.14 (linux-gnu)
        Accept: */*
        Host: flags.tatoeba.org
        Via: 1.1 nomada (squid/3.2.5)
        Cache-Control: max-age=777600
        Connection: keep-alive
        
        
        ----------
        2013/01/09 09:27:04.756 kid1| ctx: enter level 0:
        'http://flags.tatoeba.org/img/flags/epo.png'
        2013/01/09 09:27:04.756 kid1| http.cc(689) processReplyHeader:
        processReplyHeader: key 'B94126425D1E659B6A3B1898C8F2A39E'
        2013/01/09 09:27:04.757 kid1| http.cc(732) processReplyHeader:
        HTTP Server local=192.168.1.13:56799 remote=86.65.39.22:80 FD 13
        flags=1
        2013/01/09 09:27:04.757 kid1| http.cc(733) processReplyHeader:
        HTTP Server REPLY:
        ---------
        HTTP/1.1 200 OK
        Date: Wed, 09 Jan 2013 08:27:24 GMT
        Server: Apache/2.2.16 (Debian)
        Accept-Ranges: bytes
        Content-Length: 219
        Vary: User-Agent
        Expires: Fri, 10 Jan 2014 00:00:00 GMT
        Cache-Control: public, no-transform
        Content-Type: image/png
        Via: 1.1 tatoeba.fsffrance.org
        Keep-Alive: timeout=15, max=100
        Connection: Keep-Alive
        
        �PNG
        
        
        ----------
        2013/01/09 09:27:04.757 kid1| ctx: exit level 0
        2013/01/09 09:27:04.757 kid1| ctx: enter level 0:
        'http://flags.tatoeba.org/img/flags/epo.png'
        2013/01/09 09:27:04.757 kid1| http.cc(910)
        haveParsedReplyHeaders: haveParsedReplyHeaders: HTTP CODE: 200
        2013/01/09 09:27:04.757 kid1| http.cc(640) httpMakeVaryMark:
        httpMakeVaryMark: user-agent="Wget%2F1.14%20(linux-gnu)"
        2013/01/09 09:27:04.757 kid1| http.cc(640) httpMakeVaryMark:
        httpMakeVaryMark: user-agent="Wget%2F1.14%20(linux-gnu)"
        2013/01/09 09:27:04.757 kid1| ctx: exit level 0
        2013/01/09 09:27:04.757 kid1| client_side.cc(1362)
        sendStartOfMessage: HTTP Client local=127.0.0.1:3303
        remote=127.0.0.1:54645 FD 12 flags=1
        2013/01/09 09:27:04.757 kid1| client_side.cc(1363)
        sendStartOfMessage: HTTP Client REPLY:
        ---------
        HTTP/1.1 200 OK
        Date: Wed, 09 Jan 2013 08:27:24 GMT
        Server: Apache/2.2.16 (Debian)
        Accept-Ranges: bytes
        Content-Length: 219
        Vary: User-Agent
        Expires: Fri, 10 Jan 2014 00:00:00 GMT
        Cache-Control: public, no-transform
        Content-Type: image/png
        X-Cache: MISS from nomada
        X-Cache-Lookup: MISS from nomada:3303
        Via: 1.1 tatoeba.fsffrance.org, 1.1 nomada (squid/3.2.5)
        Connection: keep-alive
        
        
        ----------
        2013/01/09 09:27:04.758 kid1| http.cc(1044)
        persistentConnStatus: local=192.168.1.13:56799
        remote=86.65.39.22:80 FD 13 flags=1 eof=0
        

And this is my config file:

        cache_effective_user squid
        cache_effective_group squid
        acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
        acl localnet src 172.16.0.0/12 # RFC1918 possible internal
        network
        acl localnet src 192.168.0.0/16 # RFC1918 possible internal
        network
        acl localnet src fc00::/7 # RFC 4193 local private network range
        acl localnet src fe80::/10 # RFC 4291 link-local (directly
        plugged) machines
        acl SSL_ports port 443
        acl Safe_ports port 80 # http
        acl Safe_ports port 21 # ftp
        acl Safe_ports port 443 # https
        acl Safe_ports port 70 # gopher
        acl Safe_ports port 210 # wais
        acl Safe_ports port 1025-65535 # unregistered ports
        acl Safe_ports port 280 # http-mgmt
        acl Safe_ports port 488 # gss-http
        acl Safe_ports port 591 # filemaker
        acl Safe_ports port 777 # multiling http
        acl Safe_ports port 901 # SWAT
        acl CONNECT method CONNECT
        http_access allow localhost manager
        http_access deny manager
        http_access deny !Safe_ports
        http_access deny CONNECT !SSL_ports
        debug_options ALL,1 11,3 31,3 65,3
        http_access allow localnet
        http_access allow localhost
        http_access deny all
        http_port 3303
        cache_dir ufs /var/cache/squid 600 16 256
        cache_mem 256 MB
        coredump_dir /var/cache/squid
        refresh_pattern ^ftp: 1440 20% 10080
        refresh_pattern -i \.(gif|png|jpg|jpeg|ico|bmp)$ 260000 90%
        260009 override-expire ignore-no-cache ignore-no-store
        ignore-private
        refresh_pattern ^gopher: 1440 0% 1440
        refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
        refresh_pattern . 0 20% 4320
        
Note that I doubled check that my cache directories belonged to
squid:squid and their size slowly grows when I am using squid, yet I get
a TON of tcp_miss, even on cacheable sites (such aswww.lci.fr)
Any idea?
Received on Wed Jan 09 2013 - 08:43:40 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 09 2013 - 12:00:07 MST