cpu usage with high-res timer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm running 2.6.33-rt on a powerpc platform(upgraded from 2.6.18-rt),
the main application is a multi-thread program. I use procps 3.2.7 to
check cpu usage, load avg etc.

2.6.33 beats 2.6.18 all around, including latency, hackbench, etc.

however my pthread app always takes 13% cpu (top reports cpu 87% idle,
i.e. 100%-13%=87%) while it's running and waiting for input on
2.6.33-rt, on 2.6.18-rt it's <1% cpu usage(top reports 97% idle
percentage).

when I disable high-res from 2.6.33-rt, cpu usage is the same but
'top' now reports 96% idle, looks like it ignores the fact that my
application is using 13% cpu(I suspect the idle rate should still be
100%-13%=87%, but it's not when high-res is disabled). both kernel
uses 1000HZ, 2.6.18 does not have high-res implemented.

I'm trying to find the cause of the 13% cpu usage on 2.6.33, and if it
has anything to do with high-res timer. Interestingly, 2.6.33 has only
half the load avg comparing to 2.6.18 while my application is waiting
for input, even though the application uses more cpu time but the
system load is lower, which is good news.

Still, why am my application suddenly showing a high cpu usage on this
new rt kernel?

any suggestion is appreciated,
xianghua
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux