Overclock.net banner

I need help fixing DPC Latency caused by storport.sys

42K views 28 replies 23 participants last post by  H1JaxX 
#1 ·
Hi,
I am new to this forum. I made an account here because of an issue I have been having with DPC latency. I have spent hours trying to figure out how to fix it, but I have failed to find a solution.

To begin, I first noticed this issue after I cloned my Samsung SSD to my new Samsung 960 evo m.2 drive. After playing some games like battlegrounds, dark souls, and final fantasy, I noticed that each one of them would microstutter every 30 minutes or so with a buzzing noise. They last for only about a second and then the game continues like nothing happened. I did some research and found out about DPC latency so I downloaded LatencyMon and dpclat. I then played a game with both of them running in the background until one of these audio/video stutters occurred. As soon as it happened, I alt+tabbed to my desktop and brought the two programs into view. dpclat showed all green bars and then one massive red one followed by all small green bars again. LatencyMon just simply showed storport.sys as having the highest reported DPC routine execution time.
I am completely baffled. I uninstalled and updated all of my drivers (bios, audio, internet/lan from the ASUS website), uninstalled the 960 evo NVMe drivers to see if windows NVM drivers fixed the issue (they didnt), installed the latest samsung 2.2 nvme drivers again, disabled all of my overclocks, ran memtest and chkdsk, ran HD tune, used defraggler to optimize my m.2 and ssd, defragged my HDDs, updated my chipset, updated my gpu, disabled almost everything in device manager, turned off every service that wasnt made by windows, stopped every process that wasnt made by windows, ran sfc /scannow and successfully repaired corrupt files, installed (and then uninstalled after use) malwarebytes, adwcleaner, msert, and avira, used ccleaner to clean and repair registry, and others that I cannot think of at the moment. The issue still persists after all of this. It seems like the only resort would be to do a complete clean install of windows, but I have tweaked with too many settings to optimize this pc and it would take days to get everything back to where I had it. I am hoping someone can help me, as this problem started after I cloned my 940 pro to my 960evo (the 940 pro was previously my C drive with windows installed, but now it is the 960 evo m.2 running the OS).
Also, I dont know if it helps, but after cloning my SSD to my m.2 windows said it needed to be activated, so I activated it with KMS since my previous windows 7 key wouldnt work for some reason (I used my windows 7 key to get a free copy of windows 8, and then windows 8 automatically updated to windows 10). And I feel like this should be obvious, but running the samsung magician benchmarking tool for my m.2 shows a very high DPC latency spike for storport.sys, as does running HD tune, but I think this is just because of the heavy load the m.2 is under when using those tools. As of now, I turned my ram and CPU overclocks back to where I had them previously before I cloned my ssd to my m.2 since they shouldnt be the issue since I never had this program until I cloned my drive (I used samsung's migration tool to accomplish this).
Thanks in advance to whoever offers some advice!

Here is a quick summary of my specs (full speccy txt file and DPC checker results attached separately):

Spec Summary:
[W10ProV1703b15063 x64]
Operating System
Windows 10 Pro 64-bit
CPU
AMD Ryzen 7 1700X 54 °C
Summit Ridge 14nm Technology
RAM
16.0GB Dual-Channel Unknown @ 1529MHz (16-18-18-36)
Motherboard
ASUSTeK COMPUTER INC. PRIME X370-PRO (AM4) 33 °C
Graphics
BenQ XL2730Z (2560x1440@144Hz)
8176MB ATI Radeon RX Vega (ATI) 33 °C
Storage
238GB Samsung SSD 840 PRO Series (SSD) 29 °C
931GB Seagate ST1000DX002-2DV162 (SATA) 31 °C
931GB Seagate ST1000DM003-9YN162 (SATA) 29 °C
232GB Samsung SSD 960 EVO 250GB (Unknown)
1862GB Western Digital WD Elements 25A1 USB Device (SSD) 29 °C
Optical Drives
ATAPI iHBS112 2
ATAPI iHAS324 B
ELBY CLONEDRIVE SCSI CdRom Device
Audio
Realtek High Definition Audio
Operating System
Windows 10 Pro 64-bit
Computer type: Desktop
PSU is the EVGA Supernova 850 P2 (80 Plus Platinum), and my ram is in dual channel slots 1 and 3.

Speccy: https://drive.google.com/open?id=0B8snXLdwm3VhaDV3RTlRZUEzU2c

Screenshot 1: https://drive.google.com/open?id=0B8snXLdwm3VhTDNWYWZudWs1bXc
Screenshot 2: https://drive.google.com/open?id=0B8snXLdwm3VhN1FUc056aEdReUk
Screenshot 3: https://drive.google.com/open?id=0B8snXLdwm3VhVVplTHcwZnBtdzA

LatencyMon Results #1: https://drive.google.com/open?id=0B8snXLdwm3VhR01sQi0tUVRyb1k
LatencyMon Results #2: https://drive.google.com/open?id=0B8snXLdwm3VhdGhjREhIQ2FmSUU

Trace File 1 (biggest spike recorded with this one): https://drive.google.com/open?id=0B8snXLdwm3VhSnFScU1fZ0tqcnM
Trace File 2: https://drive.google.com/open?id=0B8snXLdwm3VhbS0wRGlDcnVvSWc
Trace File 3: https://drive.google.com/open?id=0B8snXLdwm3VhX1ZQVXR4T2hNZkE
 
See less See more
#4 ·
Quote:
Originally Posted by WafflesTheWaffl View Post

but i didn't have this issue before... it only started after I cloned my SSD to my new m.2... so it should be fixable, right? I just need someone who knows how to read those trace files.
then make a clean install, the windows key is linked to you're msn account so it should activate by itself

windows still thinks that it's running of a SSD instead of the m.2 drive, so with a clean install and the proper drivers everything should be fine
 
#5 ·
This guy is a joke. He has no idea what he is talking about. The issue is caused by a faulty storage driver. Open Device Manager and scan for updates. The buzzing sound happens and your dpc latency skyrockets. You can do this multiple times and it happens everytime.

How to fix:

Click on IDE/ATAPI controllers tab

Now change the AMD Sata driver to SATA AHCI which is by Microsoft. And voila. No more stutters when Windows scans for driver updates. I had this problem too and it was driving me insane.
 
#7 ·
This guy is a joke. He has no idea what he is talking about. The issue is caused by a faulty storage driver. Open Device Manager and scan for updates. The buzzing sound happens and your dpc latency skyrockets. You can do this multiple times and it happens everytime.

How to fix:

Click on IDE/ATAPI controllers tab

Now change the AMD Sata driver to SATA AHCI which is by Microsoft. And voila. No more stutters when Windows scans for driver updates. I had this problem too and it was driving me insane.
First of all, I AM SORRY for resurrecting a super old thread. I registered just to thank this man with all my heart. Ive been battling this issue for months, tracked DCP latency for weeks, tried browsing through an endless amount of threads online to find a solution from people with the same problem and I am just shocked and relieved at both how simple the fix was and that I somehow managed to stumble upon this thread. No more freezeups, no more sound stutters, no more storport.sys going bat**** after leaving the pc on overnight. THANK YOU.
 
#6 ·
Quote:
Originally Posted by Sellis97 View Post

This guy is a joke. He has no idea what he is talking about. The issue is caused by a faulty storage driver. Open Device Manager and scan for updates. The buzzing sound happens and your dpc latency skyrockets. You can do this multiple times and it happens everytime.

How to fix:

Click on IDE/ATAPI controllers tab

Now change the AMD Sata driver to SATA AHCI which is by Microsoft. And voila. No more stutters when Windows scans for driver updates. I had this problem too and it was driving me insane.
This is the mostly correct answer.
Though I personally would just do a clean install and then install drivers directly from Samsung. (Would take 1-2 hours at most)
I'm not sure if the Samsung driver is better or worse in the DPC latency measurement, however it is better in throughput.

Windows 10 has no issues with SSDs or NVMe drivers.
 
#14 · (Edited)
In case someone comes across this thread in the future here's how i fixed my storport.sys & storahci.sys latency probs.

Things i tried:
1. change the newer Microsoft's Standard SATA AHCI Controller (storahci.sys) driver to older AMD SATA controller drivers: (amd_sata.sys) 1.3.1.276 [4/1/2017], and (amdsata.sys) 1.3.1.277 [4/15/2015]. Even though these drivers are meant for Windows 7, this actually lowered my latency from 16,000µs to 2,500µs, but still had noticeable audio desync & microstutters in videos.

2. clean install of Windows

3. change sata cables

4. move SSD with Windows installed to a different sata port (shown in tomahawkmax1.png). This actually increased my latency to 150,000µs.

What fixed it:
1. I removed all of my other SSDs/HDDs. Moved my Windows SSD to each sata port until i found one that had the best latency.

2. ended up at sata port 5 (shown in tomahawk2.png). Storport.sys: 20µs & Storahci.sys: 4µs

Its possible that this motherboard's southbridge is crap, i just lucked out with a rare crap southbridge, or the sata ports themselves are crap. I don't have another AMD motherboard to test.
Either way, i hope this helps someone.

PC Info:
Ryzen 3700x
MSI B450 Tomahawk Max
latest bios, chipset drivers, Windows 10 1909
 

Attachments

  • Rep+
Reactions: THEBOSS619
#26 ·
Nah uh... it says "1 Posts".
 
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top