[squid-users] Calculation of throughput...

From: Boosten, Peter <Peter.Boosten@dont-contact.us>
Date: Thu, 15 Aug 2002 11:41:26 +0200

Hi guys (m/f),

Could you help me on the following puzzle?

When I look at the Squid-logfiles, column 5 is the number of bytes from a
download, number 2 is the number of milliseconds that transaction took,
right?

So when I divide the two, like bytes/(time/1000), I get bytes/second, right?

If I do that for all succeeded transactions ( squid-status <>
"/[4-6][0-9]\{2\}", knowing how good you are in regular expressions), I get
the following results:

Commands used:
Number of succeeded transactions: grep -v "/[4-6][0-9]\{2\}" access.log | wc
-l
Avg transaction time: grep -v "/[4]6[0-9]\{2\}" access.log | awk '{time +=
$2} END {print time/NR}'
Avg download size: grep -v "/[4]6[0-9]\{2\}" access.log | awk '{size += $5}
END {print size/NR}'
Avg download speed: grep -v "/[4]6[0-9]\{2\}" access.log | awk '{time += $2;
size += $5} END {print (size/(time/1000))/1024}'

which give me the following results:

European Proxy (with a 6Mbit-internetlink):
# transactions: 1,554,209
avg time: 1,622.91 ms
avg size: 5,122.98 bytes
avg speed: 3.08 kb/sec

American Proxy (with a 4Mbit-internetlink):
# transactions: 477,666
avg time: 2,124.19 ms
avg size: 6,508.64 bytes
avg speed: 2.99 kb/sec

Could this all be right? That means that our internetlinks are slower that a
normal dialup-line....
Or am I making some mistake here?

Thanks in advance.

Peter

Disclaimer
1. This e-mail is for the intended recipient only. If you have received it
by mistake please let us know by reply and then delete it from your system;
access, disclosure, copying, distribution or reliance on any of it by anyone
else is prohibited.

2. If you as intended recipient have received this e-mail incorrectly,
please notify the sender (via e-mail) immediately. This e-mail is
confidential and may be legally privileged. DSM does not guarantee that the
information sent and/or received by or with this e-mail is correct and does
not accept any liability for damages related thereto.
Received on Thu Aug 15 2002 - 03:42:03 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:38 MST