Re: Scheduler fixes for hyperthreading

From: Bruce M Simpson (bms_at_spc.org)
Date: 05/22/05

  • Next message: Max Okumoto: "Re: Handling of shell builtins in make(1)"
    Date: Sun, 22 May 2005 03:59:15 +0100
    To: Stephan Uphoff <ups@tree.com>
    
    

    On Sat, May 21, 2005 at 10:44:25PM -0400, Stephan Uphoff wrote:
    > Beside benchmarking - is there any other real use for RDTSC ?
    > Is there any use of RDTSC that system requiring the security cannot live
    > without? (We could even try to emulate the instruction if we really need
    > to)

    A number of ports use RDTSC for high-resolution timing. The most obvious
    examples being machine emulators mostly used for gaming (UAE and MAME
    spring to mind, possibly also dosbox and others).

    I daresay VMware probably uses RDTSC too.

    BMS
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Max Okumoto: "Re: Handling of shell builtins in make(1)"

    Relevant Pages

    • Re: Scheduler fixes for hyperthreading
      ... :> Is there any use of RDTSC that system requiring the security cannot live ... (We could even try to emulate the instruction if we really need ... A number of ports use RDTSC for high-resolution timing. ...
      (freebsd-arch)
    • Re: No difference on my machine
      ... show better reproducable timing values. ... Apparently 300 cycles on my machine. ... My understanding is that without a serializing instruction, ... come from after the rdtsc in our code, ...
      (alt.lang.asm)
    • Re: More performance tests of different AES implementations
      ... > "The RDTSC instruction is not a serializing instruction. ... cy = cycles() - cy; ... >> Are you saying that the timing results vary widely from one run to ...
      (sci.crypt)
    • Re: Timing is everything
      ... the only way to time small pieces of code is from ring0 ... as RDTSC like any other instruction in ring3 task switching conditions ... Most end up opting for a test condition that loops an instruction ... under in ring3 task switching application mode. ...
      (alt.lang.asm)
    • Re: Reading the TSC
      ... Now it says that rdtsc is not a 386 instruction. ... > which means the TSD CR4 bit is correct RM dos. ... I should run that small program under pure DOS. ...
      (comp.os.msdos.djgpp)