The pfSense Store

Author Topic: Squid Cache Hit Rate.  (Read 1924 times)

0 Members and 1 Guest are viewing this topic.

Offline cylent

  • Full Member
  • ***
  • Posts: 101
  • Karma: +0/-0
    • View Profile
Squid Cache Hit Rate.
« on: March 31, 2012, 12:13:33 am »
I am trying my best to figure out a way to increase the squid cache hit rate.

in the last 3-4 days its been a pathetic 8-11% for around 80-90 users and an average of 5.8G download.

Seriously. this is just bad.

Any tips on how to increase the hit rate? (other than doing offline mode LOL)


Offline saxonbeta

  • Jr. Member
  • **
  • Posts: 36
  • Karma: +0/-0
    • View Profile
Re: Squid Cache Hit Rate.
« Reply #1 on: March 31, 2012, 10:55:50 am »
Wow, my hit rate Is just 2-3 % for 10 users and ca. 6 GB of downloads  :(
« Last Edit: March 31, 2012, 11:00:25 am by saxonbeta »

Offline marcelloc

  • Hero Member
  • *****
  • Posts: 9985
  • Karma: +2/-0
    • View Profile
Re: Squid Cache Hit Rate.
« Reply #2 on: March 31, 2012, 04:59:03 pm »
This can be espected as squid "engine" is not that good for dynamic/session pages.

I saw it on one doc comparing squid and varnish.
https://www.varnish-cache.org/trac/wiki/ArchitectNotes

A test I did once was configuring a varnish daemon as proxy server sending to a squid as backend. The result was some times faster then squid itself.

But I'm sure that there is some config options to improve cache hit.
« Last Edit: March 31, 2012, 05:03:38 pm by marcelloc »