On Thu, Dec 30, 2010 at 8:47 AM, RLW <seran...@o2.pl> wrote: >> index %time self descendents called+self name index >> [1] 83.9 0.00 359.49 sched_idle [1] >> You spent> 80% in idle. So while forwarding all that traffic the box was >> mostly idle. > > although kernel profiling stats show that system spends 80% time in idle, > top during the iperf test shows: > > load averages: 0.40, 0.16, 0.11 15:43:02 > 27 processes: 1 running, 25 idle, 1 on processor > CPU states: 0.6% user, 0.0% nice, 77.6% system, 21.8% interrupt, 0.0%
I forget if the profile counts interrupts as coming from idle. If you're mostly forwarding traffic, the idle loop will be the top function on the stack just about always.