Re: [squid-users] Bandwidth Savings

From: Chris Robertson <[email protected]>
Date: Wed, 10 May 2006 12:39:43 -0800

Odhiambo WASHINGTON wrote:

>Salut!
>
>Maybe this is a FAQ: How do I calculate/enumerate the bandwidth savings
>as a result of using a caching proxy (Squid in this case)?
>
>I'd like to come up with a report on the savings that can show how Squid
>is making the browsing experience better.
>
>Thanks in advance.
>
>
>-Wash
>
>http://www.netmeister.org/news/learn2quote.html
>
>--
>+======================================================================+
> |\ _,,,---,,_ | Odhiambo Washington <wash@wananchi.com>
>Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com
> |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922
> '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121
>+======================================================================+
>
>"They that can give up essential liberty to obtain a little temporary
>safety deserve neither liberty nor safety."
> -- Benjamin Franklin, 1759
>
>
Scalar (http://scalar.risk.az/) gives this information, in a text format
suitable for emailing. Here's an extract:

~~~ Analysis Headlines
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  Log Start Time [09-05-2006 01:02:38]
    Log End Time [10-05-2006 01:01:58]
  Lines Analyzed 1.107M

 Unique Clients: 1461

     In Traffic: 14.257 GB
    Out Traffic: 16.298 GB
  ------------------------------------
  Saved Traffic: 2.040 GB 12.52 %

Calamaris looks like it fits the bill as well
(http://cord.de/tools/squid/calamaris/calamaris-2.html#16). Calamaris v3
beta looks like it's even better
(http://cord.de/tools/squid/calamaris/calamaris-3/#0).

If you don't mind a little math, you can get instant bandwidth saving
reports using squidclient, and the utilization menu option (squidclient
cache_object://localhost/utilization). Just subtract
server.http.kbytes_in from client_http.kbytes_out, and you have your
current bandwidth savings.

client_http.kbytes_out = 748.875717/sec
server.http.kbytes_in = 590.903991/sec
Savings of ~158.0 kbytes/sec on replies

client_http.kbytes_in = 74.455909/sec
server.http.kbytes_out = 62.886027/sec
Savings of ~11.6 kbytes/sec on requests

Chris
Received on Wed May 10 2006 - 14:39:58 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 01 2006 - 12:00:02 MDT