Re: New time code miscalculates cpu usage

2007-10-25 Thread Sergei Shtylyov
Hello. Benjamin Herrenschmidt wrote: 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

Re: New time code miscalculates cpu usage

2007-10-24 Thread Olof Johansson
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:

Re: New time code miscalculates cpu usage

2007-10-24 Thread Sergei Shtylyov
Hello. Olof Johansson wrote: 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

Re: New time code miscalculates cpu usage

2007-10-24 Thread Benjamin Herrenschmidt
On Thu, 2007-10-25 at 00:17 +0400, Sergei Shtylyov wrote: Hello. Olof Johansson wrote: 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); }

Re: New time code miscalculates cpu usage

2007-10-24 Thread Paul Mackerras
Benjamin Herrenschmidt writes: Your input would be much more valuable if you actually pointed out where that happens and why since you seem to know it. He did already, a couple of messages ago. Paul. ___ Linuxppc-dev mailing list

Re: New time code miscalculates cpu usage

2007-10-24 Thread Benjamin Herrenschmidt
On Thu, 2007-10-25 at 10:19 +1000, Paul Mackerras wrote: Benjamin Herrenschmidt writes: Your input would be much more valuable if you actually pointed out where that happens and why since you seem to know it. He did already, a couple of messages ago. Allright, I missed that. Ben.

Re: New time code miscalculates cpu usage

2007-10-17 Thread Tony Breeds
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

New time code miscalculates cpu usage

2007-10-16 Thread Olof Johansson
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 real0m2.008s user0m4.014s sys