[48055] in North American Network Operators' Group
Re: Linux routing
daemon@ATHENA.MIT.EDU (Valdis.Kletnieks@vt.edu)
Wed May 22 09:21:22 2002
Message-Id: <200205221320.g4MDKgsp002807@turing-police.cc.vt.edu>
To: Peter van Dijk <peter@dataloss.nl>
Cc: nanog@merit.edu
In-Reply-To: Your message of "Wed, 22 May 2002 09:45:46 +0200."
<20020522074545.GA51074@dataloss.nl>
From: Valdis.Kletnieks@vt.edu
Mime-Version: 1.0
Content-Type: multipart/signed; boundary="==_Exmh_1309796505P";
micalg=pgp-sha1; protocol="application/pgp-signature"
Content-Transfer-Encoding: 7bit
Date: Wed, 22 May 2002 09:20:41 -0400
Errors-To: owner-nanog-outgoing@merit.edu
--==_Exmh_1309796505P
Content-Type: text/plain; charset=us-ascii
On Wed, 22 May 2002 09:45:46 +0200, Peter van Dijk <peter@dataloss.nl> said:
> Why are you benchmarking network troughput by bzip2'ing a file in
> /tmp? It makes no sense.
I'm suspecting that he's trying to indirectly measure the kernel CPU usage.
Most kernels don't give you the time spent in kernel mode (or bill
it incorrectly to a process - I seem to remember some handwaving in either
the Keifler&McKusic or Bach books about how interrupt time is charged against
the current process, but it usually evens out in the end). So what you end
up doing is running a cycle-sucking CPU-bound process, and seeing how much
progress it makes - if in 60 seconds, the cycle sucker gets 45, then your
kernel is getting the other 25% (or so the theory goes).
It's not perfect, but it works as a back-of-envelope test and is probably
accurate to within 5-10%...
--
Valdis Kletnieks
Computer Systems Senior Engineer
Virginia Tech
--==_Exmh_1309796505P
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Exmh version 2.5 07/13/2001
iD8DBQE865spcC3lWbTT17ARAh6eAKDC1f7sypasCw4OQza+6PUHAuhmCwCZAQhH
nU8qnmcGCn3cdCcXxJx2ZeY=
=+Jfv
-----END PGP SIGNATURE-----
--==_Exmh_1309796505P--