Search squid archive

Rather poor performance?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

openSuse v12.3
linux v3.7.10-1.16-desktop x86_64
Squid Cache: Version 3.2.11

The data is from the <access.log> file for a 4 day period.
HIT   -   237
MISS  - 10522
total - 11347
The stats from <access.log> indicate a 2.2% hit rate. Is this typical?
Seems a bit low.


I loaded the <http://www.squid-cache.org/> page (last 2 lines of
access.log):
1377455358.004    731 192.168.69.115 TCP_REFRESH_UNMODIFIED/304 447 \
  GET http://www.squid-cache.org/Images/img8.gif - \
  HIER_DIRECT/198.186.193.234 -
1377455358.023    750 192.168.69.115 TCP_REFRESH_UNMODIFIED/304 446 \
  GET http://www.squid-cache.org/Images/img7.gif - \
  HIER_DIRECT/198.186.193.234 -

Reloaded the page again:
1377455563.566    268 192.168.69.115 TCP_REFRESH_UNMODIFIED/304 447 \
  GET http://www.squid-cache.org/Images/img8.gif - \
  HIER_DIRECT/198.186.193.234 -
1377455563.571    266 192.168.69.115 TCP_REFRESH_UNMODIFIED/304 446 \
  GET http://www.squid-cache.org/Images/img7.gif - \
  HIER_DIRECT/198.186.193.234 -

I had expected cache hits.

Cache information for squid:
	Hits as % of all requests:	5min: 90.0%, 60min: 6.1%
	Hits as % of bytes sent:	5min: 25.0%, 60min: 1.1%
	Memory hits as % of hit requests:	5min: 0.0%, 60min: 0.0%
	Disk hits as % of hit requests:	5min: 0.0%, 60min: 5.3%
	Storage Swap size:	9132744 KB
	Storage Swap capacity:	17.4% used, 82.6% free
	Storage Mem size:	56628 KB
	Storage Mem capacity:	21.6% used, 78.4% free
	Mean Object Size:	70.26 KB

[----squid.conf file----]

# acl manager proto cache_object
acl manager url_regex -i ^cache_object:// /squid-internal-mgr/
acl managerAdmin src 192.168.69.115
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32

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 563         # nntps
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 CONNECT method CONNECT

http_access allow manager localhost
http_access allow manager managerAdmin
http_access deny manager

http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access deny to_localhost

acl localnet src 192.168.69.0/24

#http_access allow localnet
http_access allow localhost
http_access deny all

http_port 3128

hierarchy_stoplist cgi-bin ?
cache_dir ufs /data01/var/cache/squid 51200 16 256
maximum_object_size 102400 KB
cache_mem 256 MB

coredump_dir /var/cache/squid

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i (/cgi-bin/|\?) 0     0%      0
refresh_pattern .               0       20%     4320


- -- 
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlIaUMsACgkQzTcr8Prq0ZM/BwCgiST3rfTlmJs0e6jcyFL3/4rx
E80An1ZMLhUIcHqUI3DcaxhGWUjnhebg
=RvT5
-----END PGP SIGNATURE-----




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux