* [NETWORK MODULE PERFORMANCE]: How to measure it?
@ 2001-10-25 17:02 Radivoje Todorovic
2001-10-25 17:31 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Radivoje Todorovic @ 2001-10-25 17:02 UTC (permalink / raw)
To: Linux-Kernel
Hello,
I am confronted with somewhat hard problem. Say one develops Network Module
X, i.e. using Netfilter hooks. X will (simply) mangle the packets and then
forward them or do whatever. How can I measure the performance of X module?
I am not sure exactly what I am asking but say, I have a Linux router with X
module running and I need to get information what is the CPU usage under
heavy traffic with, and without X module. Actually it would be nice to see
the latency per-packet that X introduces and how it changes if the volume of
traffic increases.
Any hint would be highly appreciated.
Rade
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [NETWORK MODULE PERFORMANCE]: How to measure it?
2001-10-25 17:02 [NETWORK MODULE PERFORMANCE]: How to measure it? Radivoje Todorovic
@ 2001-10-25 17:31 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2001-10-25 17:31 UTC (permalink / raw)
To: Radivoje Todorovic; +Cc: Linux-Kernel
Radivoje Todorovic wrote:
>
> Hello,
>
> I am confronted with somewhat hard problem. Say one develops Network Module
> X, i.e. using Netfilter hooks. X will (simply) mangle the packets and then
> forward them or do whatever. How can I measure the performance of X module?
> I am not sure exactly what I am asking but say, I have a Linux router with X
> module running and I need to get information what is the CPU usage under
> heavy traffic with, and without X module. Actually it would be nice to see
> the latency per-packet that X introduces and how it changes if the volume of
> traffic increases.
>
The most precise tool known to mankind is cyclesoak :)
It's at http://www.uow.edu.au/~andrewm/linux/#zc and there's
a README in the tarball.
cyclesoak measures subtractively - rather than measuring the
load of your software, it measures how much other system
load slows it down. For networking it gives results which
are repeatable down to about 0.2% of system capacity. So
you should run a known workload both with and without your
netfilter code and record the difference in cyclesoak output.
Currently it tries to lump memory bandwidth load and CPU cycle
load into a single metric, which doesn't work very well - these
things are orthogonal and should be reported separately. That's
on my TTD list.
-
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-10-25 17:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-25 17:02 [NETWORK MODULE PERFORMANCE]: How to measure it? Radivoje Todorovic
2001-10-25 17:31 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox