To properly troubleshoot issues with high/frequent DPCs/IRPs, we require a XPERF trace. Please follow these steps to generate one:
Download Windows Software Development Kit (SDK) for Windows and run the setup.
Select Windows Performance Toolkit feature (all the others can be unchecked) and proceed with the download/installation.
Once the installation finishes, open an elevated Command Prompt by right-clicking on CMD.EXE shortcut in your start menu and selecting Run As Administrator from the context menu.
Type the following command, which will start tracing, in the Command Prompt window you just opened:
Code:
xperf -on PROC_THREAD+LOADER+PROFILE+INTERRUPT+DPC+DRIVERS+POWER+IDLE_STATES -stackwalk Profile -BufferSize 1024 -MinBuffers 256 -MaxBuffers 256 -MaxFile 256 -FileMode Circular
If you see a yellow warning "xperf: warning: This system is not fully configured for x64 stack tracing" after running the above command, please complete these extra steps (otherwise, proceed to the step #5):
Read More:
Run the following command which will stop the tracing:
Run the following command to enable stack tracing (by disabling Paging Executive):
Code:
REG ADD "HKLM\System\CurrentControlSet\Control\Session Manager\Memory Management" -v DisablePagingExecutive -d 0x1 -t REG_DWORD -f
Reboot the computer
Once computer reboots, proceed from the step #3
If you see a red error "xperf: error: NT Kernel Logger: A device attached to the system is not functioning. (0x1f)" after running the above command, please complete these extra steps (otherwise, proceed to the step #5):
Read More:
Run the following command to disable Driver Verifier, which causes the above error:
Reboot the computer
Once computer reboots, proceed from the step #3
If you see a red error "xperf: error: NT Kernel Logger: Cannot create a file when that file already exists. (0xb7)", please do the following (otherwise, proceed to the step #5):
Perform some activities with your computer for few minutes, making sure the issues you reported are reproduced.
Run the following command, which will stop the tracing, in the command prompt window you already have opened:
Code:
xperf -stop -d C:\CPU.etl
Compress file C:\CPU.etl
Upload the compressed file to a file sharing service (e.g. OneDrive or DropBox).
Share the download link here.
Thank you.