Optimize Audio in Win
Optimize Audio in Win
2023 ***
Before to apply anything, just read this:
Some Microsoft properties and how to optimize for your music production
Every time be careful and think, what you are doing, if you are not sure, just
google for any forums etc.
First of all, make the backup of the system, restore point etc. for case, you will
spot any issue and you would like to return back.
I don't recommend to apply everything down below, just read it, analyse your
situation with DPC Latency checker and then apply.
Other tip, do not update manually Registry using regedit, because you need to know,
what is the consequence with the other part in Windows.
If you do some malware removal etc., try to run it in safe mode - more down below.
Summary
Remember, think twice, make restore points before, backups and measure before and
after the change.
Don't just follow and do everything listed here. Its just an info to assist you,
when you find the tips and how to, read resources.
Tip: Write down the changes, just to quickly refresh, what you did exactly in your
case for change.
Remember *
---------------
Keep on mind, that when Windows Update says "Your computer is ready" and when it
does not show any updates, just click search updates to double check.
Next thing you need to remember is to periodically check MS Store for latest
updates.
Please, keep on mind, that there are drivers, your 3rd party drivers, which are not
maintained by Microsoft updates. Check manually from time to time on manufacturer
site.
Basic terms
Deferred Procedure Calls (DPC)
Interrupt Service Routines (ISRs)
* Run cleanmgr to make more disk space and remove unwanted waste *
* Use intelligent storage management *
Intelligent storage management helps you to make more space on disks and recommends
you, what you can remove or manage
Be aware, that if you have system disk full or almost full, this goes to decrease
your performance too
I highly do not recommend to uninstall windows system components this way such a
like Xbox etc.
* Network adapter *
uncheck Power Management
* Bluetooth *
Disable it, if you don't use Bluetooth
* Run your device manager and go to View and choose to see "Hidden devices"
I do not recommend to remove system devices. Step 2: Take a look on the "greyed
out" devices - these are unused or disconnected. Just choose show "hidden" devices
in device manager.
If you are using for example printer and this printer is turned off, you will see
it also as "greyed out" - keep it in mind.
But, I recommend to remove these hidden devices, if you are not using it.
* Bonjour *
If you are not using Apple related software and hardware, just uninstall Bonjour
app.
I dont know about any application, that needs to have this Bonjour installed for
their functionallity.
* Optimizing startup and disabling third party services you don't want to start
during startup *
Win + R, put msconfig, go to startup applications. Then choose "Hide all Microsoft"
down below.
Now, go one by one and disable it, "if you don't need it". Try and you can return
it back, if you need it.
* Run dxdiag *
DXDIAG
- press windows and write dxdiag (directx diagnostic, check on each tab, that you
dont have any issues).
Follow the results of this diagnosis and resolve it.
If you have code 22 - go to device manager and enable the device. Run dxdiag again
to see, if its resolved.
If you have, you can disable in device manager to prevent from any unwanted lags
etc.
* DISM tool *
If you are not satisfied with the performance or you spot any issues, you can try
this:
run cmd as admin and put one by one these commands:
sfc.exe /scannow
wait until finished
Now put
dism.exe /online /cleanup-image /scanhealth
open computer
right click on your disk and choose properties
then choose disk cleanup
let computer calculate the disk
then choose temporary files and delete it (do not select downloads, if you want to
keep it)
open computer
right click on your disk and choose properties
then go to tab Properties and choose optimize
click optimize under each disk you have listed there
if you dont play games on xbox, disable xbox bar with the following
press win tab
choose settings
choose gaming
uncheck xbox game bar
also disable game mode
Audio crackling
---------------
There could be many reasons for this, I decide to share with you some, that helped
me
* Latency monitor *
Download DPC Latency monitor and you can try below steps and measure this by
running this monitor to check the latency etc.
More below at the bottom of this list
Latency monitor
When I speak about DPC Latency, I speak about the results of DPC Latency monitor,
you can download for free and donate here:
https://www.resplendence.com/latencymon
Please, read about how to use it first.
I recommend to start Latencymon after few minutes from start of the system.
I recommend to run this Latencymon for at least one minute as minimum.
I recommend to do some one change and restart pc and run Latencymon again to see,
if problem still occurs. And continue with the other.
I do not recommend to do "everything" at once to be sure, that your change brings
light.
Dont forget, that its "plug and play", so in any case of issue, just try to unplug,
wait few seconds and plug back.
If you install some device and you do not see this in your application or on your
system, try to turn off your connected device and turn on again. Check the cables.
If everything ok and problem occurs, just restart your pc. If not solved, try to
Turn off your PC and start it again.
This can "resolved" your issue. Just "exit and start again" method, especially with
USB.
* USB controller *
- Check in device manager. I have experienced, that one controller for USB 3.1 is
enough
Depends on your motherboard, you can also try another controller than from
Microsoft (but, its not the core issue to use it)
If you spot the issues with USB disconnecting from sometime, go to device manager,
select Universal Serial Bus controllers,
right click on each one, then click Properties and Power management (the last on
the right) and then
uncheck Allow the computer to turn off this device to save power
* HW conflicts *
- Check hardware conflicts, press windows, write msinfo, check Hardware conflicts
IRQs in general - explanation, what is IRQ and what types of IRQ you can see for
example here: https://tldp.org/HOWTO/Plug-and-Play-HOWTO-10.html
press windows, write msinfo, resp msinfo32 and press enter
(you should know, that two same IRQ channels, if there, could be issue - depends
on, what you are using)
If it is this case, go to device manager and disable for example integrated audio
card you are not using could be good case
DXDIAG
- press windows and write dxdiag (directx diagnostic, check on each tab, that you
dont have any issues).
If you have, you can disable in device manager to prevent from any unwanted lags
etc.
* IRQ conflicts *
MSI interupts: https://tldp.org/HOWTO/Plug-and-Play-HOWTO-7.html#ss7.4
Use MSI_util_v2 or MSI_util_v3
In general to MSI enable / disable
One more note: If MSI mode was a flat improvement it would always be used by
default. These companies aren't completely stupid, the reason it's not enabled is
because of compatibility issues or other reasons.
In the way to resolve HW conflicts with IRQ, thats where I used it. I did not apply
MSI on everything written it supports MSI.
But, depends on your decission, you can try, if your hw supports MSI (you can see
in MSI util, check on manufacturer site).
search google for more information, how to use
Fixing this:
1. We grabbed the Message-Signaled Interrupts Utility v2.0 from github
https://render.otoy.com/forum/viewtopic.php?f=9&t=68650 (pre compiled executable is
also available) which enables MSI messaging over the BSOD-inducing line-based
interrupts using Nvidia's latest driver branches beyond 382.33.
BSOD = Blue Screen Of Death
2. Extract MSI_util_v2.exe
3. Right-click MSI_util_v2.exe and Run as administrator (Or the pci-e devices and
GPU's will not display)
4. Enable MSI for each GPU listed (Multiple similar GPU's should be stacked
together) by clicking each GPU checkbox in the MSI column.
5. Click apply in the upper right corner, and Restart your workstation
6. Re-run the tool to to make sure MSI is still enabled
point 4. perfectly works for me.
Resource information: https://forums.guru3d.com/threads/windows-line-based-vs-
message-signaled-based-interrupts-msi-tool.378044/
* CUBASE optimization *
- Try with or without ASIO guard (check which level high,normal,low is better for
you. When using this setting on "high" your computer will allow you to maximize the
number of plugins you can run)
https://steinberg.help/cubase_pro/v12/en/cubase_nuendo/topics/optimizing/
optimizing_vst_performance_window_r.html
- Check Project setup, if the same for Bit/WAV quality setting vs. your Windows
audio setting
- Multi processing distributes the processing load evenly to all available CPUs,
allowing Cubase to make full use of the combined power of the multiple processors.
Multi processing is activated by default. You can find the setting in the Studio
Setup dialog (Audio System page)
- Do not have "record enable" ative on your track(s) - check, that no virtual
instrument track is record armed
- Change buffer size to higher when crackling (especially, if you dont need low
latency during mixing - During tracking you’d like to have the “real time” flair of
small buffer sizes. During mixing you want to make sure you don’t have any
crackles, thus you increase the buffer size.)
- Freeze your tracks, if possible (along with any CPU-hungry insert effects, it’s
so easy with the freeze button)
You either choose "Freeze Instrument Only" which allows you to add Insert effects
after freezing on the frozen instrument track, or you can choose to "Freeze
Instrument and Channels" which will also render your insert effect plugins. Note,
that after doing this all insert effects get disabled so you can't change any of
the plugin settings anymore unless you first unfreeze the instrument track
After freezing your track the instrument controls will be locked so you won't be
able to change any parameter. In order to change parameters, you will need to
unfreeze the instrument first. To get a visual feedback that an instrument is
frozen the Inspector shows the "Freeze Instrument Channel" button in orange and the
Instrument name will also change its color to orange. In your MixConsole, it then
shows a star above the channel name.
- Rendering virtual instrument tracks and audio tracks which have plugins on them
is considered a best practice especially when you want to be able to recall a
project in the future. When a DAW company changes which plugin versions they
support you can run into this issue, especially when the plugin software provider
either goes out of business, discontinues their product or doesn't update its
format to keep up with the ever-evolving industry. An Operating System update can
also cause this
- We also can use the "Channel Batch Export" checkbox in the top left corner of
that window to do multiple instruments at once. However, when using this technique
be aware that it will also capture any insert effects, EQ, or channel strips which
have been activated. If you don't want to include this in your export, make sure
you disable them first
Resources:
https://steinberg.help/cubase_pro/v12/en/cubase_nuendo/topics/optimizing/
optimizing_performance_aspects_c.html
https://steinberg.help/cubase_pro/v12/en/cubase_nuendo/topics/setting_up/
setting_up_studio_setup_dialog_r.html
- Turn off virtualisation (Hyper-V in features, disable in Bios, if you dont need
it)
* MSI_Util_v2.exe *
Put MSI mode on all hardware, where you have this choice available.
Try to put High priority on graphic card (especially, if you are using NVidia) and
USB ports. Check, if it helps. You will need to restart your pc.
* Game mode *
I recommend to do not turn on game mode, once we do not need it for our DAW and it
will prevent us from decreasing performance in our DAW.
More information also
https://devblogs.microsoft.com/windows-music-dev/unofficial-windows-10-and-11-
audio-workstation-build-and-tweak-guide-part-3/
* Visual effects *
Disable Win Visual effects by your custom setting, remove that, you dont need. Yes,
it could be also reason for some crackling..
Specially, Switch Off animated windows by:
* Disable apps from running in the background, which you don't need *
Open Settings
Click on Privacy.
Click on Background apps.
Under the "Choose which apps can run in the background" section, turn off the
toggle switch for the apps you want to restrict.
5A) Update all hardware firmware. Similar to BIOS, firmware is the code that is
built onto the actual hardware. Many devices have firmware updates available, such
as optical drives, graphics cards, solid state drives, internet routers, etcetera.
The easiest way to find these is to type in the model number at the manufacturer
website and specifically look for "firmware" downloads. Take the time to check
every single piece of hardware connected to the computer, both internally and
externally.
5B) Check that all of the required drivers for the computer are actually installed.
To do this, access the "Device Manager" which can be found in the Control Panel,
then check for any yellow exclamation marks which indicate that a driver has not
yet been installed and the device is running in limited capacity. Some of the
device names are easy to recognize, but others will require a Google search to
figure out what they are. Install any missing drivers and see if that fixes the
issues.
5C) After all missing drivers are installed, go uninstall any problematic drivers
indicated in LatencyMon, reboot and then replace the bad driver and see if that
fixes the issues.
Note: only download the latest, official drivers from the hardware manufacturer,
you should not be using 3rd party driver packs, modded drivers, or Windows update
for drivers. Also, be sure to always right-click and "Run as administrator" when
installing a driver. For some drivers you have the option of using the manufacturer
version or the one that comes from the designer. For example, Realtek Audio
supplies a generic sound driver, but some hardware manufacturers will provide a
customized version. In situations like these, try both and see which one works
better.
Resource:
https://www.ntlite.com/community/index.php?threads/guide-dpc-latency.3274/
If the DPC problems persist after installing all Windows updates then the next step
is to try to deduce the device that's causing the problem. Common problematic areas
are:
- Network/WiFi adapters
- Card readers
- Other sound devices that aren't in use
- Bluetooth adapters
- Graphics card
This means your issue could most probably comes from those drivers.
In case of Realtek (very common HW on motherboard) saidly, not every driver works
perfectly and there are a lot of cases described,
the installation downgrade to the older driver fixed the issue.
The drivers, which are not in use - you can find them, when you go to Device
manager and click od Display and select "Show hidden"
When you are going thru the drivers, you can see, there are lines, which are
lighter than else. You can uninstall them, if you dont need
(in my case, I have experienced double monitor, so the lighter one I removed, I did
not remove replaced disks once they were disconnected once
I did not need to have it connected everytimes...the rest removed). This could help
to do not "block" that positions in the system, when not needed
and prevent from unwanted issues.
In case of downgrading your Realtek driver, you could try to disable the option
"Automatic download and installation of manufacturer application.."
- steps: Open Control panel and go to device and printers. Find your pc in the
list of devices, Right click and choose
"Device setting installation". Choose "No" - if you will not find it helpful, you
can choose back "Yes" later..
This will prevent from Microsoft automatic updates for the drivers you would like
to keep older version..
The same thing is to use NVidia HD Audio drivers, also causing issues. The better
way is to install Sound device High Definition Audio (only),
works much better.
I have also installed "Microsoft Realtek Gaming GbE Family Controller(Microsoft)
instead of the Realtek one,
this could also caused the crackling audio.
* Windows optimization *
The goal here is to disable as much power savings as possible, reduce the
background activity, and stop things like Windows update from taking control of the
computer. This step is where the NTLite program shines, because all of these
settings can be integrated into a custom Windows so that it is optimized right out
of the box after a clean install, rather than doing all of this manually or with
scripts. I also have a guide on how to create an optimized Windows image that you
can use, which has all of these tweaks included already.
6A) The general guidelines for improving performance are listed below, though the
individual steps are not shown because they vary between operating systems. Below
are some of the commonly tweaked settings, and you do not have to do all of them,
but each one will either improve DPC or reduce the overhead of Windows, thus
improving performance:
- Disable troubleshooters/diagnostics
- Disable telemetry everywhere (Windows, apps, drivers, etcetera)
- Enable the "High performance" power plan (or Ultra)
- Adjust advanced power settings to disable power savings features
- Disable/pause Windows update
- Disable automatic updating everywhere (apps, drivers, etcetera)
- Disable advanced security features
- Disable virtualization
- Disable indexer
- Disable sysmain (superfetch)
- Disable internet novelty features (dynamic wallpaper, suggestions, ads, etcetera)
- Reduce visual effects (DWM settings - Desktop Window Manager)
- Disable all syncing (OneDrive, Microsoft Account, etcetera)
- Disable all startup apps (do not automatically start programs after reboot)
- Remove all forms of file compression and encryption
- Disable pagefile or set it to a static amount
6B) All standard versions of Windows operating systems have now reached end of
life, except for W10 and W11. As time goes on, more programs (games, browsers,
etcetera) will stop working on older operating systems, so keep that in mind when
choosing one. If you are building a computer, it is also important to know that
older operating systems may not support the latest technology or have drivers
available for new hardware.
6C) When it comes to W10 versus W11, the benchmarks I use show W10 being equal or
pulling slightly ahead of W11 in some cases, and I highly recommend testing both
operating systems to see which one has lower DPC latency on your machine, as I
found W10 to have lower average latency and fewer spikes than W11. This may be
hardware dependent though, and since license keys are interchangeable between them,
it is worth taking the time to test this and see which is best for you. Also, W11
is new, it takes several years for operating systems to mature and stabilize, and
Microsoft is actively evolving W11 which can make tweaking it more difficult as
they change or add new features.
6D) The final bit of Windows advice is to upgrade hardware, but be sure to allocate
money where it matters the most. The single biggest improvements that can be made
to speed up Windows is ensuring that you are at least using a solid state drive or
better, as well as 8 GB memory at a minimum, along with a good processor that has a
high single-threaded performance rating. These three pieces of hardware are
important because it is where the bulk of all communication happens, and
bottlenecks here can severely affect everything else in the computer.
Resources: https://www.ntlite.com/community/index.php?threads/guide-dpc-
latency.3274/
* Windows updates *
Check Windows updates
* MS Store applications *
Check MS Store updates for your applications
* Antivirus check *
Run your antivirus check - I recommended default, just run quick check.
* Nvidia users *
Optimize your graphic card NVidia here is the tip
Disable ALT+Z overlay
I also recommend
this setup resource to change in your GeForce Experience:
https://community.acer.com/en/discussion/612495/windows-10-11-optimization-guide-
for-gaming/p1
Give a try and you will see
** LatencyMon **
DPC Latency checker:
Notes:
Identifying a problem is fairly easy, using some guidelines. Anything spiking over
100 - 120 microseconds (or 0.1 milliseconds) can be problematic. If something is
reaching into the hundreds or thousands of microseconds it will almost assuredly
manifest as a problem somewhere, even if you do not overtly notice it, and the
performance of the system will be hindered. To get started, we need to identify the
most troublesome driver first.
2A) The "Main" tab is a quick summary of the latency spikes that are occurring in
the system. Look at the text labeled "Highest reported DPC routine execution time"
and you will see a number, such as 1098.145234 which indicates how long the "pause"
was for. In the parenthesis to the right of it there will be a driver file name,
such as ndis.sys and that is the driver responsible for the spike.
2B) The "Drivers" tab gives us a detailed look at every driver installed and how
high each of them is spiking, as seen in the "Highest execution" column. This
number can be slightly confusing because it is now in milliseconds, and so a value
of 1.098145 in this column for ndis.sys is exactly the same spike we saw on the
first tab.
To fix these problems we have to understand why they are happening. Underneath all
of the user interfaces are countless lines of code that have an infinite number of
ways a developer can make a mistake, and even if all the code is working as
intended users can create problems through operator error by doing something that
developers cannot reasonably plan for. The three major sources of DPC issues are
listed below.
3A) BIOS: this is where a lot of mistakes are made, for two main reasons. One is
that people will overlook it and use the defaults, which are not optimized for
gaming or audio production, thus not optimized for DPC latency. The other problem
is that people will haphazardly change settings, which can make things worse than
the defaults.
3B) Drivers: these are often the cause of problems, and also where a lot of
operator error occurs, because too many people are using 3rd party driver
installers or Windows update. The way Windows update matches your hardware to a
driver is not always accurate. For example, if I let Windows update run on my
desktop computer it will download a 2 year old graphics driver instead of the
latest, as well as attempting to install incorrect chipset drivers. On my laptop,
Windows update tries to install half a dozen incorrect drivers, including an
optional monitoring app that causes an error every reboot.
3C) Windows: as the operating systems have grown over the years they have more code
running than ever before, naturally increasing the chances of a conflict occurring,
leading to DPC issues. This increased background activity also consumes more
resources, which decreases overall performance too. All of the new power saving and
virtualization features being added in each update also greatly contributes to
decreased performance.
Resource:
https://www.ntlite.com/community/index.php?threads/guide-dpc-latency.3274/
ndis.sys
means Network Driver Interface Specification,
talks to WIFI/Ethernet drivers
This refers to network or wi-fi adapters.
You can try disabling Wifi and network adapters in device manager.
When you right click your Network adapter and go to uncheck Power saver on the
network driver in device manager. This helps to me.
If nothing helped, if you use Realtek, you can try to use different driver,
sometime microsoft driver could do better job in dpc then realtek, try and see.
run cmd as admin and put:
netsh int tcp show global
more:
https://learn.microsoft.com/en-US/troubleshoot/windows-server/networking/
information-about-tcp-chimney-offload-rss-netdma-feature
also recommended:
https://serverfault.com/questions/708014/setting-affinity-for-network-interrupts-
in-windows-server-2012-r2
Microsoft:
https://learn.microsoft.com/en-us/windows-server/networking/technologies/network-
subsystem/net-sub-performance-tuning-nics#bkmk_low
Another:
https://github.com/djdallmann/GamingPCSetup/blob/master/CONTENT/DOCS/NETWORK/
README.md
Network activity:
netstat.exe -a -b
this will show the sockets and the name of the binary that is using them
Sometimes you can find programs running that you do not expect to be using up all
of your network resource. Office update etc...
You can try also:
netstat -o -n -a -b
If nothing helped, you can try run Powershell as admin and enable Coalescing like
following:
Set-NetOffLoadGlobalSetting -ReceiveSegmentCoalescing Enabled
I also recommend to Affinity your network adapter to all cores expect core 0.
You can do that using utility GoInterruptPolicy (download from GIT hub)
ohci1394.sys
This refers to firewire card or firewire device.
There are a variety of solutions for this which include the following:
Try unplugging any firewire devices and re-test for latency issues
Update any drivers for your firewire devices and try again.
Check for IRQ conflicts particularly with video drivers.
If you have a built in firewire port, try using a PCI or PCIe firewire card
instead.
USBPORT.sys
These are your USB Controller drivers on your motherboard.
Download the latest chipset drivers for your motherboard, available from your
computer or motherboard manufacturers support website.
It also may help if you are on Windows 7 SP1
http://support.microsoft.com/kb/2529073
In rare cases we’ve seen certain computers with Card Reader slots cause high DPC
latency.
Disable any SD/MMC/Compact Flash entries from within device manager.
nvlddmkm.sys
These are your video card drivers.
Visit www.nvidia.com and locate the latest drivers for your video card and update
them.
Double check for IRQ conflicts between your video card and other devices on your
system, particularly the IEEE 1394 Controller.
On certain computers these may also be related to your motherboard chipset drivers.
If you are using NVidia, I recommend also to check my tips search NVidia.
ACPI.sys
This issue occurs typically on laptops.
This can be difficult, sometimes impossible to solve.
This driver is for ACPI on your motherboard which controls different power modes.
First disable any sleep settings on your PC and do normal PC optimization.
In some cases disabling the ACPI Battery from within device manager also helps.
This may disable the ability for the PC to charge the battery on a laptop.
With any of the issues above, be sure to also go through the entire PC
Optimization.
In addition, be sure to disable any unnecessary devices in your BIOS including
legacy Drive A options,
Serial Port and Parallel Port options, Onboard Audio, and any Stepping technologies
like Intel SpeedStep or AMD K8 Cool&Quiet.
In Win 10 system I found the ACPI problem was related to the "turn off display/ put
computer to sleep" settings in power options.
I set both to "never", and the ACPI problem went away.
storport.sys
means Microsoft Storage Port Driver, that is the Microsoft SCSI driver for your
hard drives and SCSI attached stuff.
storport.sys - storage port - storage drives
Check storage drivers for update.
Possibly, driver is outdated
If its up to date, check IDE/ATA/ATAPI controllers and check the driver for the
latest version for AHCI controller, if your SSD is SATA
on AHCI, its important to be the best driver you may have
Some people determined, that Microsoft AHCI is the better option then Intel.
Some people mentioned, that they had misconfigured some drive setting (like not
using AHCI).
More: https://learn.microsoft.com/en-us/windows-hardware/drivers/storage/storage-
port-drivers
classpnp
classpnp isnt used for scsi, its for all storages, usb included
- change driver in system drivers - in my case from SMBus driver to Intel(R) SMBus
- 06A3
- try update PCI driver
afd.sys - ancillary function driver for winsock - windows driver used for lan
tcpip.sys
Transmission Control Protocol/Internet Protocol, or TCP/IP.sys, handles
communication between computers. If TCP/IP.sys becomes corrupt, it will often
result in stuttering audio and blue screens of death. Like ndis.sys, the most
common fix will require you to run Command Prompt as Administrator. However, you
will need to enter a different set of commands.
First, check your network activity and task scheduler - change to be running once
per week, disable what you dont need or its old etc.
Recommend to go through this article and setup by the meaning as you need / disable
what you dont need.
Check your network driver, network traffic and your configuration.
https://www.speedguide.net/articles/network-adapter-optimization-3449
Download and set "Optimal" using TCP Optimizer.
Disable IVP6- Resource: https://www.itechguides.com/how-to-disable-ipv6-in-windows-
11/
Set MSI priority to High.
What applications uses my network adapter: ctrl+shift+escape to go to task manager
and you can see it in column "Network"
You can also try:
Click the Windows icon, type “cmd”, then right-click Command Prompt and select Run
as Administrator.
Type “netsh winsock reset”, then press Enter.
Type “netsh int ip reset”, then press Enter.
Type “ipconfig /release”, then press Enter.
Type “ipconfig /renew”, then press Enter.
Type “ipconfig /flushdns”, then press Enter.
Reboot your computer.
Next method is to open properties on your network adapter and uncheck IPV6 - to
disable IPV6, if you dont use it.
Also, lot of people reported, that changing properties to uncheck power management
solved their issue immediately.
(ndis.sys) When you are sure, you have set best-performance network adapter driver,
also most people disabled "green ethernet". This helped me also to decrease spikes.
* ntoskrnl.sys *
means Windows NT operating system kernel executable
These drivers belong to the Windows kernel. Update all available system updates for
your computer, including the BIOS, Chipset, IDE / ATAPI / SATA controllers, USB
controllers and graphics card. Also make sure that all available Windows updates
have been installed. Some users have reported issues with these drivers when
connecting USB 2.0 devices to USB 3.0 ports. If this is the case on your system,
install the latest drivers for your USB 3.0 controller or connect the devices to a
USB 2.0 port instead.
In my case, It helped to change SM Bus driver and to disable power saving for SM
Bus driver.
Try this:
https://answers.microsoft.com/en-us/windows/forum/all/massive-lag-spikes-cause-by-
ntoskrnl/6de9b47d-27dd-4669-a109-73cee7b78ae3
In my case, I found more useful to do not use page file.
Method 1:
a) Press Windows key + X key from the keyboard.
b) Select the option Control Panel and All control panel items then System.
c) Click on Advanced system settings.
d) Under performance, click on settings.
e) Go to Advanced tab, Under Virtual memory, click on Change.
f) UN-check "Automatically manage paging file size for all drives" check box.
g) Select your windows drive (where OS is installed).
h) Click on Custom size radio button.
i) Set Initial size equivalent to your RAM size in MB.
j) Set Maximum size to twice of your RAM size in MB.
k) Click on Set.
l) Click on OK thrice.
m) Restart your system.
Method 2:
I would suggest you to boot the computer in Safe mode and check if the issue
persists.
Safe mode starts Windows with a limited set of files and drivers. Startup programs
don't run in safe mode, and only the basic drivers needed to start Windows are
installed.
Windows Startup Settings (including safe mode)
If the issue does not persist in safe mode, then perform a clean boot to check if
any third party application is causing the issue, as clean boot helps in
eliminating software conflicts.
How to troubleshoot problems using clean boot in Windows:
http://support.microsoft.com/kb/929135
Note: Once you are done with the troubleshooting, refer to the steps in “How to
reset the computer to start as usual after troubleshooting with clean boot “to
reset computer as usual.
* dxgkrnl.sys *
means DirectX Gpu KeRneL
run DXDIAG and resolve the issues.
If everything ok, try another graphic adapter (newer, older) and measure after some
minutes again.
Turn off GSYNC in Nvidia control panel, if you dont use GSYNC
* wdf01000.sys *
Windows Driver File
To fix Wdf01000.sys you have to enable MSI on USB HUB and bind Hid-complient mouse\
keyboard on less busy core using Microsoft Interrupt Affinity Tool
* iastorac.sys *
Its related to storage drivers (Intel Rapid Storage Technology (RST)).
Try Microsoft SATA AHCI instead of for example Intel.
Resource: https://answers.microsoft.com/en-us/windows/forum/all/uninstalling-the-
intelr-rapid-storage-technology/e3c4b6d6-56ba-4ac5-be50-89843c9d9b22
https://learn.microsoft.com/en-us/windows/iot/iot-enterprise/soft-real-time/soft-
real-time-device
More in detail:
Run these two commands in a cmd prompt. This disables CPU idle states, where a CPU
with no instructions to run will enter a power-saving state. This is undesirable in
real-time scenarios as idle CPUs have a delay in starting to execute new
instructions:
Resource: https://www.youtube.com/watch?v=hWUjbfLZzJY&ab_channel=ComputersSuck
https://support.native-instruments.com/hc/en-us/articles/209571729
scroll down to section "Problematic drivers"
* wmiadap.exe *
wmiadap is a application that runs on Windows that can update performance
information in the WMI repository.
Resource: https://learn.microsoft.com/en-us/windows/win32/wmisdk/wmiadap
* Affinity *
What is Affinity:
https://www.xbitlabs.com/how-to-use-interrupt-affinity-policy-tool/
Optimizing affinity - check Interrupt Affinity Policy Tool
There is Microsoft basic version, which is great.
I rather prefer a little bit better one on
https://github.com/spddl/GoInterruptPolicy
* Hard Pagefaults *
------------------
Hard Pagefaults
For the high hard pagefaults, it can help to:
1) Limit startup processes that you don't need
2) Limit Windows-Updates file-sharing (in Settings > Updates and security > Windows
Update > Advanced Options > Choose how updates are delivered > turn off "updates
from more than one place" - that will limit unnecessary background network
activity)
3) Limit the amount of "telemetry" (data sent to Microsoft ... choose the "Basic"
option in Settings > Privacy > Feedback & Diagnostics ... and you can try "Never"
as your "Feedback Frequency" while testing your latency issues)
4) Limit any Notifications that you don't need or want (Settings > System >
Notifications & actions
5) Turn off "Live" tiles on your Start Menu (to limit unnecessary background
updating of any information you don't want or need)
Some users also noticed, that Steam has been periodically checked, so you can try
to exclude Steam from checks, if you use Steam.
To switch back into normal boot mode go to Start > Windows Administrative Tools >
System Configuration > click the "Boot" tab, then uncheck "Safe boot", click
"Apply" then "Okay" and "Restart".
Resource: https://www.ntlite.com/community/index.php?threads/discussion-nvidia-
display-driver-nvlddmkm-sys-dpc-latency.2924/page-33
* BIOS optimization *
nter the BIOS during a reboot to configure it, which usually requires a function
key to be pressed, such as F2. If a mistake is made and it is preventing the
computer from booting, a few methods for resetting the BIOS exist. There is a reset
to defaults option in the BIOS menu, it can also be reset by removing the CMOS
battery from the motherboard (turn off power first), or reset by putting a jumper
over the appropriate pins.
4A) Reset the BIOS to defaults. Be sure that any boot configuration options you
manually changed before, such as IDE/AHCI mode or UEFI/CSM do not get altered in
this process or you will be forced to install Windows again. If you have serious
DPC issues though, this may be part of the problem and perhaps using the default
boot options and installing Windows again will be how you fix things. Lastly, take
note of the BIOS version for the next step, then save these changes and exit,
allowing the computer to boot back into Windows.
4B) After the step above, go online and check the manufacturer website for your
motherboard and download the latest BIOS update. Follow the instructions and
install the new BIOS. After the update is done, you need to reset the BIOS to
defaults one more time, then save and exit, before going back into the BIOS and
manually configuring any settings.
4C) BIOS settings have little documentation, and the fastest way to figure out what
something does is to write down literally every setting and Google them to learn
more. You can also download the PDF manual for your motherboard and it may explain
the settings in more detail. There are too many settings over the years to list
them all, so it requires some experimentation to figure out the best combination
for your computer. Below are some commonly tweaked settings related to performance:
Note: the basic premise is to disable unused features, power savings, and settings
that cause the processor clock speed to fluctuate, as these are things that create
DPC issues. Also, it is recommended to enable Execute Disable Bit (NX) since it is
required for DEP (Data Execution Prevention) and some anti-cheat software, and
could get you banned if it is disabled. Lastly, enabling HPET does not force the
timer, it only allows the timer to be available to Windows if it is needed, and
some benchmarking software requires it.
Resources: https://www.ntlite.com/community/index.php?threads/guide-dpc-
latency.3274/
* Windows Troubleshooting *
If you are getting in some troubles, you can try to troubleshoot it as following.
But-I dont recommend to just run it without any reason.
If you are running troubleshooter and you just 'try' without having issue, you can
get into issue, because its also processing some changes,
f.e. to default settings etc.
Windows key > Setting > Troubleshooting > choose the one by need on the bottom last
choice something like "More troubleshooting"
Windows key > Nastavení > Odstranit potíže > Další poradci při potížích
* BCDEDIT *
BCDEDIT > what is it?
Nástroj příkazového řádku Bcdedit.exe slouží ke změně úložiště
konfiguračních dat spouštění. Úložiště konfiguračních dat spouštění obsahuje
parametry konfigurace a určuje, jak je operační systém spouštěn.
Dříve se tyto parametry nacházely v souboru Boot.ini (v operačních systémech
založených na systému BIOS) nebo v položkách permanentní paměti RAM
(v operačních systémech založených na rozhraní EFI). Pomocí nástroje
Bcdedit.exe lze do úložiště konfiguračních dat spouštění přidávat položky,
odstraňovat je, upravovat a připojovat.
More info>
http://www.servispckupka.cz/jak_pracovat_s_prikazovym_radkem_bcedit.php#nadpis
If you are spotting issues, you can try to disable dynamic ticking and tune some
things with running cmd as admin command prompt:
I dont recommend this if you are not sure, that you really need this
My configuration
bootmenupolicy Standard
useplatformclock No
useplatformtick Yes
disabledynamictick Yes
* PnPutil *
Check what it is and how to use it
Example from practice:
***********************
First, go for Obtaining list of 3rd party drivers from the driver store...
run this following on cmd as admin:
dism /online /get-drivers /format:table
go through list and if you see something you already do not use or do not need or
you want to uninstall, do this:
for example, on your list is
oem99.inf | vbvmvaio64_win10.inf | No | MEDIA
| VB-Audio Software | 11.01.2019 | 2.1.5.2
and you dont use VB.Audio Software anymore, just uninstall with following command :
pnputil /delete-driver oem99.inf /uninstall
you can also list of disconnected (hidden devices) and remove them:
pnputil /enum-interfaces /disabled
You can find useful this tool also in case, that your pc crashed, you take the disk
and put it into new pc hardware.
You can find and remove some hidden devices also for example by using this tool
* HPET *
High Precision Event Timer (formerly Multimedia Timer)
Check, what is HPET and how to use it.
Generally, you can play to disable it and enable it, if you will see, that its
affecting your performance too.
Now, before you reboot go into device manager (the regular one) go to system
devices, and disable HIGH PRECISION EVENT TIMER
If you had it in bios you'd still need to do it there too.
Other useful links and informations about latency from Pete Brown
https://devblogs.microsoft.com/windows-music-dev/unofficial-windows-10-audio-
workstation-build-and-tweak-guide-part-1/
https://devblogs.microsoft.com/windows-music-dev/unofficial-windows-10-audio-
workstation-build-and-tweak-guide-part-2/
https://devblogs.microsoft.com/windows-music-dev/unofficial-windows-10-audio-
workstation-build-and-tweak-guide-part-3/
* Events *
Check events - any critical events ?
* Tip2 *
Control Panel\All Control Panel Items\Security and Maintenance
Click on Maintenance
Choose View reliability history
and check if there are any critical and resolve.
cz:
Ovládací panely\Všechny položky Ovládacích panelů\Zabezpečení a údržba
Pak "Zobrazit historii spolehlivosti"
Počítač\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy
SCHTASKS
You can use SCHTASKS and a triggering event:
SCHTASKS /Create /SC ONEVENT /MO ONLOGON /TN ON_LOGON /tr "c:\some.bat"
or
* Disable sysmain *
run cmd as admin
enter those commands
sc stop "SysMain"
sc config "SysMain" start=disabled
* Enable/Disable C-states
Run "powercfg /a" at an admin command line.
Confirm whether your system firmware support Standby (S3).
Computer Configuration -> Administrative Templates -> Windows Components -> File
Explorer
Enable Show sleep in the power option menu
Computer Configuration -> Administrative Templates -> System -> Power Management ->
Sleep Settings
Enable Allow standby states (S1-S3) when sleeping (plugged in)
Enable Allow standby states (S1-S3) when sleeping (on battery)
Resources: https://answers.microsoft.com/en-us/windows/forum/all/how-to-enable-s3-
sleep-state-and-disable-modern/507c85fb-977d-4891-b5b1-d302c918ee0e
Other: https://www.elevenforum.com/t/disable-modern-standby-in-windows-10-and-
windows-11.3929/
* Hyperthreading tips *
https://www.youtube.com/watch?v=-uvhk823e8Q&ab_channel=Panjno
* Troubleshooting: Windows does not boot and its not possible to go to safe mode *
Try restore point. If not possible, go to bios, Start recovery, choose boot from
UEFI.
Most probably you will reinstall windows, with that, you can also choose to keep
files and programs.
* Useful cmd *
run cmd as admin and type
systeminfo
If you have troubles with click on ms office to start and it does not start, go to
ccleaner and put the program back from the sleep.
* Tips to set priority for your devices like your graphic card, your mouse and
keyboard *
Basically, you can setup priority using regedit and get better performance. In this
context, graphic card, mouse and keyboard is great candidates for it.
In specific cases could be good to prioritize for example also your usb.
We can choose this in two specific directions in your registry: Control and
Services:
Control:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\PriorityControl
Win32PrioritySeparation - is basically amount of time for each service to get.
Try values 28 or 2a or 16 or 7777 - try which one will work in the best way for you
IRQ0Priority with REG_DWORD value 1 - this is for system timer
IRQ4294967245 - specific interrupt request queue, you need to find your IRQ for
graphic card with pressing windows button and typing msinfo and choose IRQ and
scroll down to find your IRQ for your graphic card.
You will put this IRQ with format IRQxxxxxxxxxx and value 1 to tell windows to
setup priority for your graphic card. This one is recommended to try, especially,
if you are
using NVidia graphic card. To specify this in your registry, it means the big
chance for your IRQ to be prioritized.
Services:
For your mouse:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\mouclass\Parameters
MouseDataQueue try this value: 14
ThreadPriority try 1f
Resource: https://youtu.be/kVHiSsZhR_c
Understanding I/O system:
https://www.microsoftpressstore.com/articles/article.aspx?p=2201309&seqNum=3
Try and see, what will fit best for you.
* high tcpip.sys *
https://windowsreport.com/flush-dns-windows-10-without-admin-rights/
https://windowsreport.com/tcpip-sys-latency/
DiagTrack
This is Diagnostics Tracking Service
This service collects data to send to Microsoft.
You can disable it.
sc query DiagTrack
sc stop DiagTrack
sc config DiagTrack start=disabled
cz resource:
http://www.harryho.info/security_jakna_w10.htm
Environments that use Windows Management Instrumentation (WMI) can use the MDM
Bridge WMI Provider to accomplish this. Here's an example to set the RealTime
configuration with three real-time cores
So, how it can be done:
run cmd as administrator
put PowerShell, enter
Get-CimInstance -Namespace "root\cimv2\mdm\dmmap" -ClassName
"MDM_Policy_Result01_Experience02"
put this command, where SERVER1 is name of your computer:
[Microsoft.Management.Infrastructure.CimCmdlets.ProtocolType]$Protocol = 'DCOM'
>> $option = New-CimSessionOption -Protocol $protocol
>> $session = New-CimSession -ComputerName SERVER1 -SessionOption $option
>> Get-CimInstance -CimSession $session -ClassName win32_computersystem
+
Resource: https://learn.microsoft.com/en-us/windows/iot/iot-enterprise/soft-real-
time/soft-real-time-device
...
COMPUTER\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\
Multimedia\SystemProfile\Tasks\Audio
change setting for Affinity from 0 to 7
"Affinity"=dword:00000007
Change "SFIO Priority" to "High"
Change "Scheduling Category" to "Medium"
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\
SystemProfile\Tasks\DisplayPostProcessing]
"Affinity"=dword:00000000
"Background Only"="True"
"BackgroundPriority"=dword:00000018
"Clock Rate"=dword:00002710
"GPU Priority"=dword:00000012
"Priority"=dword:00000008
"Scheduling Category"="High"
"SFIO Priority"="High"
"Latency Sensitive"="True"
Change "GPU Priority" from 8 to 12
Change "Background Only" from "True" to "False"
Change "SFIO Priority" from "Normal" to "High"
Resources:
http://jplay.eu/forum/index.php?/topic/3063-pink-hq-minorityclean/page-145
https://n1kobg.blogspot.com/p/blog-page_23.html
Note2:
For badly configured windows computers, MMCSS (Multimedia Class Scheduling Service)
is extremely useful, because it prioritizes certain multimedia threads higher than
any other processes running on your computer. In Cubase since version 7.0.6, the
realtime ASIO threads are the ones that get prioritized.
MMCSS normally reserves 20% of your CPU power to low priority processes. All the
time. Always. Permanently.
You can get this down to 10% if you like by a registry change:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\
SystemProfile
SystemResponsiveness=10 (DWORD, default is 20, all decimal)
The hex values: 0xa (10), default is 0x14 (20).
You CANNOT GO LOWER THAN 10, it will just default back to 20 if you do.
But that's still 10% of your computers CPU power wasted for low priority processes
that might never occur while using Cubase.
C:\Windows\System32>bcdedit /set vm No
Operace byla dokončena úspěšně.
You must restart the computer in order for the autotuning change to take effect.
https://sites.google.com/view/melodystweaks/basictweaks