Windows 8 High DPC latency Fix

Discussion in 'Videocards - NVIDIA GeForce Drivers Section' started by Penal Stingray, Jan 27, 2013.

  1. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,596
    Likes Received:
    13,605
    GPU:
    GF RTX 4070
    Btw did you check all page of CPUID? In my localized AIDA64 'Invariant TSC' is almost at the bottom. And if your CPU does not support it the checkbox is there but unchecked.
     
  2. Vbs

    Vbs Guest

    Messages:
    291
    Likes Received:
    0
    GPU:
    Asus Strix 970, 1506/7806
    Vista tries to use HPET without testing anything (invariant TSCs were not available then)
    Windows 8 uses the same procedure as Windows 7, and besides allowing you to set useplatformclock, also allows you to explicitly set tscsyncpolicy and useplatformtick. Shall we open even more Pandora's Box? :roll:

    Very good questions! :) But I'm really settled on bcdedit /deletevalue useplatformclock :D
     
  3. -Tj-

    -Tj- Ancient Guru

    Messages:
    18,102
    Likes Received:
    2,606
    GPU:
    3080TI iChill Black
    yes its constant, but it shows 3.682Ghz instead of 2.66ghz?, while my Oc is 3.632Ghz, this is with dynamic tick off and hpet on (bios) and useplatformclock true atm.

    Although that time for query perf. call is ~ 520us.


    Edit: Im gonna try this delete value one more time

    Ok now it looks like windows HPET is off, primary timer is ~ 3.54mhz and that time for query perf. call ~ 14us.
     
    Last edited: Feb 20, 2013
  4. tsunami231

    tsunami231 Ancient Guru

    Messages:
    14,748
    Likes Received:
    1,868
    GPU:
    EVGA 1070Ti Black
    Ok well Im gona give ago with the Hpet on in the bios and bcdedit /set useplatformclock false

    As of now only difference I See with True and False is With True Time For QueryPerformanceCounter is 750ns VS about 11ns with False.

    Other then the Hpet on and off in Bios and TRue and False in windows all show the same Clock speed of 2653 give or take a mhz or .
     

  5. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,596
    Likes Received:
    13,605
    GPU:
    GF RTX 4070
    Folks, you don`t need to bother about that stuff because you don`t do real-time tasks at you rigs, right? Main thing is well-synced timers...

    750 microseconds is less the 1 millisecond...

    Edit: Wait... milliseconds? Mine shows nanoseconds - time for QueryPerformanceCounter() call...
     
    Last edited: Feb 20, 2013
  6. tsunami231

    tsunami231 Ancient Guru

    Messages:
    14,748
    Likes Received:
    1,868
    GPU:
    EVGA 1070Ti Black

    well i did that and was getting 1500+ us interupt process spikes in latencymon

    So i just went back to Hpet 64bit + True in Win 7 pc been working fine so just gona leave it as it is. In all honestly common person should never have to touch or play with these settings.

    Unless I rebuild my pc with all new Mobo and CPU im just gona leave setting as is as this is how it works best for me

    True=750ns give or take
    False= 11 ns give or take

    But like I said when I did False or Delete of that value I was getting 1500us interupt process latency in latency mon
     
    Last edited: Feb 20, 2013
  7. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,596
    Likes Received:
    13,605
    GPU:
    GF RTX 4070
    But are we common persons here? :nerd:
     
  8. tsunami231

    tsunami231 Ancient Guru

    Messages:
    14,748
    Likes Received:
    1,868
    GPU:
    EVGA 1070Ti Black
    here? haha hell no ever one here to point is extremist me to much less extent of most people here. but ya
     
  9. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,596
    Likes Received:
    13,605
    GPU:
    GF RTX 4070
    You realize that second sentence does undo first one, right?

    Edit: Oops... Never mind - I just misinterpreted the 'leave setting'...
     
    Last edited: Feb 20, 2013
  10. Penal Stingray

    Penal Stingray Banned

    Messages:
    957
    Likes Received:
    0
    GPU:
    GTX 680 Tri-Sli-S27A950
    I Found the best combo is HPET on Bios and HEPT off On windows but that's just my set up.
     

  11. tsunami231

    tsunami231 Ancient Guru

    Messages:
    14,748
    Likes Received:
    1,868
    GPU:
    EVGA 1070Ti Black
    Bottom line fine what works best and leave it be, every machine is diffrent
     
  12. Vbs

    Vbs Guest

    Messages:
    291
    Likes Received:
    0
    GPU:
    Asus Strix 970, 1506/7806
    Unfortunately, no... :D High latency external timers (like HPET) are also problematic. I'm guessing noone read the blog post yet! Shall I link it for the 5th time? :)
    So, the best case scenario is always to have HPET enabled in BIOS and bcdedit /deletevalue useplatformclock as that guarantees you:
    1) use of the invariant TSC(s) if your CPU supports it correctly (RESET line properly implemented for syncing)
    2) a fall back to HPET if it doesn't, which is the next best compromise.

    For DPC latency, you can try toying with disabledynamictick, as that will probably be the main cause for DPC latency increases (due to hardware timer interrupts being delayed so that a CPU can stay more time on a low power state) - but please note that dynamic ticks are only used when there are CPU cores in low-power states, so it should't have any effect on DPC latency when the CPU has a normal load.
     
    Last edited: Feb 20, 2013
  13. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,596
    Likes Received:
    13,605
    GPU:
    GF RTX 4070
    'When gathering high volume events such as the CSwitch, ReadyThread, ISR and DPC, using QPC for timestamps in ETW generates significant overhead.
    ...
    When the ETW tracing infrastructure is used to gather OS kernel scheduling events, it is probably the most frequent caller of the API on the machine.'

    'ETW lets you enable or disable event tracing dynamically, allowing you to perform detailed tracing in a production environment without requiring computer or application restarts.'

    If Windows does that ETW activity every second 24/7 then high latency QPC becomes a culprit. If ETW activity is mainly toggled by user (ETW consumers) then high latencies of QPC is of no importance. I really don`t know about default ETW level in OS...

    Add:
    'Providers

    Providers are applications that contain event tracing instrumentation. After a provider registers itself, a controller can then enable or disable event tracing in the provider. The provider defines its interpretation of being enabled or disabled. Generally, an enabled provider generates events, while a disabled provider does not. This lets you add event tracing to your application without requiring that it generate events all the time.'
     
  14. Mineria

    Mineria Ancient Guru

    Messages:
    5,540
    Likes Received:
    701
    GPU:
    Asus RTX 3080 Ti
    There is one issue thou, it doesn't sync between cores.
     
  15. Vbs

    Vbs Guest

    Messages:
    291
    Likes Received:
    0
    GPU:
    Asus Strix 970, 1506/7806
    They are guaranteed to be in-sync, that was one of the problems invariant TSCs solved.

     

  16. mbk1969

    mbk1969 Ancient Guru

    Messages:
    15,596
    Likes Received:
    13,605
    GPU:
    GF RTX 4070
  17. Mineria

    Mineria Ancient Guru

    Messages:
    5,540
    Likes Received:
    701
    GPU:
    Asus RTX 3080 Ti
    On paper sure ;)
     
  18. Vbs

    Vbs Guest

    Messages:
    291
    Likes Received:
    0
    GPU:
    Asus Strix 970, 1506/7806
    Those are different problems. The 2nd paragraph deals with the nefarious effects of having the OS postpone a write to a counter, to attend something else - this can happen with any counter, HPET included.
     
  19. marcosamerio

    marcosamerio Master Guru

    Messages:
    727
    Likes Received:
    2
    GPU:
    ZOTA NVIDIA 1060
    Sorry for my noob question, but ¿wich is the ideal scenario of all 4 pictures

    and why?

    Bye all and great post
     
  20. Mineria

    Mineria Ancient Guru

    Messages:
    5,540
    Likes Received:
    701
    GPU:
    Asus RTX 3080 Ti
    Well, ideal is when games run the smoothest on a rig, ensuring the player more frags.
     

Share This Page