Skip to contentSkip to conversation

measure cpu load ?

LARTC Lars Landmark 4 participants 4 messages Apr 1, 2003 – Apr 25, 2003

lore
Share & tools
lore
#1 lore raw
Quoted 2 lines

I would like to measure the CPU load for some queuing discipline, and only queuing discipline. Is there any tool witch this can be done.

I think you will need to do this indirectly.

Perform an experiment like this:

Setup a test machine. It runs nothing but traffic management.

Push test traffic through the machine.

Observe the machine's CPU load.

You can now derive the relationship between traffic level, traffic mix, traffic type and CPU load, by repeating the experiment with different input variables.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Lars Landmark
Quoted 9 lines
Quoted 2 lines

I would like to measure the CPU load for some queuing discipline, and only queuing discipline. Is there any tool witch this can be done.

I think you will need to do this indirectly.

Perform an experiment like this:

Setup a test machine. It runs nothing but traffic management.

Quoted 7 lines

Push test traffic through the machine.

Observe the machine's CPU load.

You can now derive the relationship between traffic level, traffic mix, traffic type and CPU load, by repeating the experiment with different input variables.

You can try with ttcp tool.

Srikanth.

------------------------------------------------------------------------

#3 lore raw
In reply to Lars Landmark

You can did it by wrapping xxx_dequeue routine of the qdisc by calls to TSC counter and accumulate these differences over some time.
I measured CBQ and HTB cpu usage by this way as can be seen at HTB home page.
devik

Quoted 18 lines · Srikanth
Quoted 9 lines
Quoted 2 lines

I would like to measure the CPU load for some queuing discipline, and only queuing discipline. Is there any tool witch this can be done.

I think you will need to do this indirectly.

Perform an experiment like this:

Setup a test machine. It runs nothing but traffic management.

Quoted 7 lines

Push test traffic through the machine.

Observe the machine's CPU load.

You can now derive the relationship between traffic level, traffic mix, traffic type and CPU load, by repeating the experiment with different input variables.

Quoted 9 lines

You can try with ttcp tool.

Srikanth.

------------------------------------------------------------------------

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/