New time code miscalculates cpu usage
Olof Johansson
olof at lixom.net
Thu Oct 25 06:19:32 EST 2007
On Wed, Oct 17, 2007 at 04:07:48PM +1000, Tony Breeds wrote:
> On Tue, Oct 16, 2007 at 03:25:25PM -0500, Olof Johansson wrote:
> > Hi,
> >
> > Not sure when this started happening, but I wanted to report it. I'll
> > start bisecting in a day or two if noone else has gotten around to
> > looking at it:
> >
> > $ echo "int main(void) { while(1); }" > test.c ; gcc test.c
> > $ time ./a.out & sleep 2 ; killall a.out
> > real 0m2.008s
> > user 0m4.014s
> > sys 0m0.002s
> >
> > Seen on POWER5 and PA6T, haven't tried anything else yet.
>
> For what it's worth, this is my bug. I suspected it, and git bisect
> confirmed it.I have an ugly work around now, but hope to have something
> better out tomorrow.
Hi Tony,
Any news?
-Olof
More information about the Linuxppc-dev
mailing list