My LatencyMon Journey 3 Dayz of !!!!

Author
taccess
Max Output Level: -80 dBFS
  • Total Posts : 534
  • Joined: 2015/01/11 19:14:36
  • Status: offline
2017/07/18 04:42:29 (permalink)

My LatencyMon Journey 3 Dayz of !!!!

 
Below is my notes i took over the last 3 days while trying to see if i could fix a Highest measured interrupt issue with LatencyMon.
There is a spike/pop issue ( for me ) when i run Sonar and i wanted to make absolute sure that my PC was not responsible.
As it turns out i have exceeded my expectations and want to share my messy notepad with you.
It was written for me as i troubleshooted and i have gone through it "quickly" to tidy it up for you.
Excuse the spelling !
 
NOTEPAD
Troubleshooting START:
PCIe tests with latency mon, Troubleshooting working from the top to bottom

>unplug USB wireless Microsoft mouse and keyboard + i plugged in a wired mouse and wired keyboard
>unplugged USB RME Audio interface
>made sure to disable LSI 1068 in bios as i am using PCie slot 7 and it shares either bandwidth or power or both !
>enabled all "devices" in BIOS



(TEST 1) = PCie Slot Config: keeps both hard drives and gpu's together on seperate CPUs
NvME slot 2 CPU 0
LSI  slot 4 CPU 0 ( lSI 9285 8e)
625  slot 5 CPU 1
520  slot 7 CPU 1
internal LSI 1068    CPU 1 ( DISABLED )

>First LatencyMon Quick Results : standard nvm express microsoft driver lasted 15 minutes then 3100us= bad
>changed the driver to samsung nvme 2.0 and 1 minute it was 21000us= really bad
>changed to samsung nvme 2.2 and 1 miute was same
>switched off windows firewall + deleted irq prioritys in regedit that i manually added Latencymon running for 7.55 minutes: 5337us = Still ! BAD
>disabled enhanced memory performance bios :WOW WOW I FOUND IT / LatencyMon is running perfect for 1 hour ( MAX 106 us latency / with only PC Running )
--------------------------------------------------------------------------------------------------
Going back into bios to turn off following "devices" :
serial port >hidden
internal usb ports > hidden
system audio > hidden
ieee 1394 controller > hidden
Ethernet controller (ASF) > hidden
sas controller > hidden
Legacy diskette> hidden
Embedded security device > hidden
sata 0 to 3 hidden
---------------------------------------------------------------------------
>I am Back and have plugged in Microsoft wireless keyboard and mouse + RME + win10 running again 11 minutes ( HIGHEST/M/I/L/=max 207us) CurrentMeasuredInterrupt/L/us = 10-30 idles NICE!
------------------------------------------------------------------------------------------------------------
>Turning off C + E drive indexing : taking forever..... But latencyMon is still running during this and steady at ( Highest measured interrupt 221us at 33 miutes IN )

----------------------------------------------------------------------------------------------------
disabling DEP : Done
always OFF :bcdedit.exe /set {current} nx AlwaysOff
always ON  :bcdedit.exe /set {current} nx AlwaysOn

> loads of forums all saying turn it off>  
> but this is the one that broke the camels back! https://forum.cockos.com/showthread.php?t=18940
QUOTE: From there !
I seem to remember some folks (maybe at the Sonar forums) turning this off in order to get
certain plugins working. The primary DAW related issue is that certain DLLs can be incorrectly
seen by DEP as malicious and thereby prevented from running.
 One would also presume that as a system service there is some overhead associated with it.
 I've always turned it off, and have never had any malware issues, so ...


always OFF :bcdedit.exe /set {current} nx AlwaysOff
always ON  :bcdedit.exe /set {current} nx AlwaysOn

--------------------------------------------------------------------------------------------------------

http://forum.cakewalk.com...mization-m2944111.aspx : ran through this and added a few more !

> Disable User Account Control (UAC) = ( Already DONE Previously )
> Change Processor Scheduling = ( Already DONE Previously )
> Disable USB Power Management = Device manager: ALL Human interface devices +  Keyboards + Mice and other pointing devices Properties > Power management UNCHECK !
> On board Devices = ( Already DONE Previously)
> Turn off multi boot
> DISABLE DRIVE INDEXING – ENDURANCE
> TURN HIBERNATION OFF - CAPACITY ( was already done but ran the cmd line again anyways)
> DISABLE WINDOWS SEARCH – ENDURANCE
> Check Your RAM - control panel > windows memory diagnose reboot > next time the PC REBOOTS it will check for me
___________________________________________________________________________________

>Lets test with Platinum Big Project running and lets try different PCIe slot configs if required !

(TEST 1) =  This is my CURRENT config and keeps both my HDDs on 1xCPU and Both my low Power consumption/WATT Nvidia Cards on another CPU.
NvME slot 2 CPU 0
LSI  slot 4 CPU 0
625  slot 5 CPU 1
520  slot 7 CPU 1

Test 1A) PC running + NO PROGRAMS - 1HOUR : [Result = Highest measured interrupt 288us / highest ISR 195us /Highest DPC 421us]  NICE!

Test 1B) PC running with + Sonar Platinum Big Project LoopPlayback + 2048 RME : [Result = I did 3 x 1 Hour Latency Mon tests = 2 resulted in Highest measure Interrupt 1260us MAX / 1 resulted in Highest Interrupt 1440us) highest ISR 800us /Highest DPC 800us ( no latencyMon photo / Steady BAD + SAD NEWS ):
****HOWEVER Considering that this highest interrupt was Previously going between 3000us and 21000us with My bios option : Enhanced Memory Performance ENABLED, the above results are steady and still wonderfull !
Can i get it lower with platinum running ( remember latencymon runs perfect with no program/s running ?

Summary So Far  : LatencyMon and just the PC are NICE, However LatencyMon With Platinum is steady but still to HIGH !
I think that a differnt PCIe config may make a differnce = time to swap the PCIe slots around.


(TEST 2) = This Config keeps My NvME C:Drive + Main GPU on CPU 1 and My LSI Sample HDD + Secondary GPU on CPU2
NvME slot 2 CPU 0
LSI  slot 5 CPU 1
625  slot 4 CPU 0
520  slot 7 CPU 1

Test 2A)PC running + NO PROGRAMS - 1HOUR [Result = Highest measured interrupt 200us / highest ISR 95us /Highest DPC 421us] NICE!
Test 2B)PC running + NO PROGRAMS + timer tool - 1HOUR [Result = Highest measured interrupt  91us / Highest ISR 125us /Highest DPC 403us] NICER!

Found this:
HPET : High Presion Event Timer / Now that Latencymon is Solid/Stable lets see if this helps !
To enable HPET as the only timer run the command bcdedit /set useplatformclock true
To disable HPET in Windows run the command bcdedit /deletevalue useplatformclock


Test 2C)PC running with HPET enabled - 1HOUR ( Win10 Default : DISABLED) [Result = Do in morning going to BED ]

Next day : Lets continue on
control panel > windows memory diagnose PERFORMED During reboot : No Errors ! NICE!

Test 2D) PC running + NO PROGRAMS + HPET enabled - 1HOUR : Win10 Default : DISABLED /I manually enabled it  [Result = Highest Interrupt 102us / highest ISR 156us /Highest DPC 423us ( see LatencyMon photo AAA : https://ibb.co/jmCOAF )]

Test 2E) PC running with HPET ENABLED + Sonar Platinum Big Project LoopPlayback + 2048 RME - 1HOUR [Result = Highest Interrupt 288us / highest ISR 163us /Highest DPC 449us ( see LatencyMon photo BBB: https://ibb.co/dkBGVF )]
OMG !!! What happened
This is spectacular, Last result has BLOWN ME WAY COMPLETELY ! WOW WOW WOW WOW ! OK so this is how LatencyMon should be > excellent results.
HANG ON ! BUT WHY AND WHAT HAS CHANGED :  Enabling HPET ? or a REBOOT  after 1 or more of the above Optimizations ? or my PCIe slot config change ? lets narrow it down !
Lets turn off HPET and reboot the PC and run the test again.

Reboot Done :
Test 2F) PC running with HPET DISABLED + Sonar Platinum Big Project LoopPlayback + 2048 RME - 1HOUR [Result = Highest Interrupt was steady for first 50 minutes it was 130us then reached 453us last 10 minutes / highest ISR 141us /Highest DPC 451 ( see LatencyMon photo CCC : https://ibb.co/bHOkPa )]
Test 2Fa) becuse the LatencyMon results were low for first 50 miutes i am running this test again for 1 hour
Test 2Fb) Second Run Results : PC running with HPET DISABLED + Sonar Platinum Big Project LoopPlayback + 2048 RME - 1HOUR [Result = Highest measured interrupt 155us / highest ISR 133us / Highest DPC 439us (SeeLatencyMon photo DDD : https://ibb.co/dA21xv )]
Glad i ran test 2F again because it confirmed what i noticed and noted previously .


FINAL Summary :( HPET disabled : windows default )  is Half the interrupt latency of HPET Enabled > this is with Sonar running a huge project and 2048 on the RME Babyface!
This is truly amazing and i am now at a point where LatencyMon is SO GOOD that there is no point trying to find a better setting !
I am curious though was it the PCIe slot config change or the WIN Optimizations i did listed above "COMBINED" with a reboot ?
( I kind of wish i rebooted now after each optimize step i did )
Something i did above has changed Sonar in latencyMon ASTONISHINGLY , i was'nt sure to be honest with you if it was normal or not for latencyMON to occasionally go in the red and believed that as long as the current measured interrupt was not always in the red that things were working fine ! I WAS WRONG.
I now know FOR SURE that LatencyMon is very accurate and reliable as a tool when changing bios or device/s  or drivers in win10 !
I now know FOR SURE that it is possible to run a HUGE Platinum Project with 2048 sample rate using a RME Babyface Audio Interface and Have LatencyMon Lower than i imagined was possible ! I am dumbfounded as i write this HONESTLY !

My Advice:
1) Run LatencyMon on your PC without anything else running for half hour minimum or 1 hour BEST! See if anything goes above 800 - 1000us ((( Personally after this i will always know something isn't  quite right unless the Highest Interrupt sits steady below 500us)))
If it does go HIGHER you CAN TRUST that LatencyMon is telling you to find something to fix ! Yes its a PITA to search/solve but worth it when you do ! Notepad every step you do !
2) On the other hand if everything runs NICE with LatencyMon and your PC or you have a latencyMon issue then find and fix it ! then fire up the biggest platinum project you have and 2048 buffers + loop playback a section and run LatencyMon for 1 hour and look and trust the LatencyMon results !

I did not plan on these AMAZING results but i am sharing this as i hope this helps someone with a LatencyMon search and find idea/plan.
 
Now i can go back to mixing and if the spike/pop issue occurs i can hunt it down inside platinum !

z800 Dual x5690
NvME 256gb 950Pro / Win10
LSI  MegaRaid
Nvidia 450 GTS
96GB 1366MHZ
RME Babyface
#1

1 Reply Related Threads

    ryecatchermark
    Max Output Level: -89 dBFS
    • Total Posts : 87
    • Joined: 2015/06/08 01:23:28
    • Status: offline
    Re: My LatencyMon Journey 3 Dayz of !!!! 2017/07/18 05:29:34 (permalink)
    Nice... LatencyMon really saved me getting my Asus gaming laptop ready for Sonar Platinum. Disabling my Ethernet Port got rid of latency spikes and now I can run LatencyMon for long periods, even with Sonar playing a session, with no problems. I can record with a RME Babyface Pro at a 64 buffer size while monitoring through a guitar amp simulation no problem while 50 other tracks are playing back. Mixing at a 256 buffer size is artifact free, even with lots of plugins enabled. Good Times ;-)

    Mark K.
    Asus G752VY Laptop.  Intel Quad i7 6700HQ 2.6 GHz. 32 GB RAM. NVIDIA GTX 980M. Windows 10 Home 64bit. MOTU 828x.
    #2
    Jump to:
    © 2024 APG vNext Commercial Version 5.1