Linux routing

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Wed May 22 13:20:41 UTC 2002


On Wed, 22 May 2002 09:45:46 +0200, Peter van Dijk <peter at 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 226 bytes
Desc: not available
URL: <http://mailman.nanog.org/pipermail/nanog/attachments/20020522/90b4bab9/attachment.sig>


More information about the NANOG mailing list