dummynet(4) kernel process CPU usage monitoring

Eugene Grosbein eugen at grosbein.pp.ru
Mon Nov 21 06:23:29 UTC 2011


Hi!

I need to draw graph of dummynet's CPU usage.
"procstat -t 0" shows me TID (thread id) of dummynet kernel thread.
"ps -Hxo time,lwp" shows me total CPU time consumed by this thread.

Now I see this time has 9 seconds increase during 60 seconds of real time.
This should be 9/60=15% CPU usage, but "top -SHP" shows me 0.00% meantime.

Where is my error?

Eugene Grosbein


More information about the freebsd-hackers mailing list