Re: numbers don't lie ...



In <45099123.4000500@xxxxxxx>, Gary Corcoran <gcorcoran@xxxxxxx> typed:
The confusing thing is that I thought 'real' time should be >= 'user' + 'sys'.
But here 'user' is much greater than 'real' for both machines! The sense I
got from the other messages in this thread is that 'user' time is somewhat
meaningless (i.e. unreliable as a measure) in a multi-CPU and/or hyperthreading
environment. Can you clarify?

'real' is wall clock time. 'user' and 'sys' are cpu time. If your
process gets all of some cpu, then user + sys will be the same as real
time. It's not possible to get more than all of a cpu, so that's a
maximum *per cpu*. If you have multiple cpus, the formula you want is
'real' * ncpu >= 'user' + 'sys'.

I made the comment about freebsd's measure of user time being skewed
by hyperthreading. That's a bit vague. The problem is that waiting
caused by hyperthreading will count against the instruction that's
doing the waiting, which skews them. But as Kris pointed out, there
are other things that have that property, so this is just one more
complication when it comes to figuring the performance of modern CPUs.

<mike
--
Mike Meyer <mwm@xxxxxxxxx> http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Cannot get Hyperthreading working on Asus P4PE-X
    ... Everything I can find suggests that it should support hyperthreading but ... According to the intel site the specific model of CPU and the chipset ... Intel machine check architecture supported. ...
    (Linux-Kernel)
  • Re: numbers dont lie ...
    ... meaningless in a multi-CPU and/or hyperthreading ... process gets all of some cpu, then user + sys will be the same as real ... user (and sys) time are *not* measures ... be fairly obvious that in a multiprocessor environment that the real time ...
    (freebsd-hackers)
  • Re: Problems about MS DV Encoder/Decoder
    ... > The CPU of my computer is P4 3.0 HyperThread. ... A process using 100% of the capacity of a single execution unit will be ... Using both virtual execution units on a Hyperthreading CPU may or may not ... they need to be written carefully so as to avoid cache ...
    (microsoft.public.win32.programmer.directx.video)
  • RE: Guide Download Problem - a fix!
    ... background that is driving the CPU to 100% then anything using Microsoft's ... between one cpu and hyperthreading mode by going into the bios settings at ... system administrator to make sure your firewall is properly configured". ...
    (microsoft.public.windows.mediacenter)
  • Re: Hyperthreading with SMP in 5.2
    ... I understand that the kernel is now smp aware by default but ... > does it handle the logical cpu's of hyperthreading in the same manner as ... > I ask as for the best part my machine rarely goes above 50% cpu ... We're working on making the FreeBSD kernel more efficient ...
    (freebsd-current)