Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a1810d1a8b74cc256da23a37d3bca62d49aee14a
Ticket: 1353858fffffffffffffffffffffffffffffffff
windows: timing granularity is poor on many systems
User & Date: kennykb on 2005-11-11 23:21:04
Changes

  1. icomment:
    Logged In: YES 
    user_id=99768
    
    Let me make sure that we're reading from the same page here,
    because I think this is going at cross purposes.  I *do*
    understand that the tests in the _WIN64 block fail. They are
    too conservative.
    
    I quite agree that an unpredictable 1-10 ms delay in [after
    1] is unacceptable in any case, and I'm looking into using
    the multimedia timer to mitigate that - bringing it down to
    1 ms resolution.  That can be done regardless of whether we
    use the perf counter.  So yes, your immediate problem *will*
    get fixed, in something close to the way you request.
    
    One possibility is to go to a two-loop PLL - phaselock the
    MM timer derived reference to the system clock (this may be
    done for us, I'm checking up on that), and then phaselock
    the perf-counter-derived reference to the MM timer.  That
    gives the single-processor (or even multiple-core-per-chip)
    the best of both worlds.
    
    You have more experience with modern MT servers than I do -
    but the limited work that I've done on Dell servers suggests
    that the board-level integrators actually did better than
    MS's documentation indicates.  My understanding is that the
    multiple CPU's actually derive their clocks from the same
    reference, and get their reset pulse at the same time, so
    that even though the counters are separate registers, they
    actually increment in lockstep.  That's why I described the
    tests as "overconservative."  This was not always true -
    Compaq got it spectacularly wrong in the 486 era - but I
    have contacts that report good results with patching out the
    test on modern systems.  That's why I'm trying to identify
    how to make the tests more permissive.
    
    And, well, the perf counter is just too useful on today's
    typical desktop machines for me to give it up entirely.  I
    still think we can get the best of both worlds - no
    unpredictable 10 ms delays *and* the high-resolution counter
    in places where it works.
    
    
  2. login: "kennykb"
  3. mimetype: "text/plain"
  4. username: "kennykb"