This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Percent of CPU this job got > 100%


Christopher Faylor wrote:

> On Thu, Oct 16, 2003 at 08:38:33AM +0200, Alex Vinokur wrote:

>>$ /bin/time -v a 1000
>>[...]
>> Percent of CPU this job got: 133%

> Automatic, built-in meanness at no extra charge.

:-).

Alex: is it possible your program is multi-threaded, and you have one of
those shiny new hyperthreading P4s? Remote, but that could give you this
behavior..

But even otherwise, small discrepancies between wall clock and computed
CPU clock are not uncommon, and given that your running time is pretty
close to one CPU "HZ" tick, you can get weird anomalies like this.

Try timing "a 1000000".
--
Shankar.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]