• Still running Windows 7 or earlier? Support for Windows 7 ended on January 14th 2020. Please review the thread here for more details.

NDIS.sys causing freezes and framerate drop!

andseg

Member
Joined
Jun 17, 2014
Posts
7
Good day people :smile9:. So, I am having a few problems with the NDIS.sys. It is causing constant freezes and slowing my PC. It starts whenever I use to much of my connection or when I begin to play online. I have a "temporary fix"... just turn the internet off, wait some seconds and turn it back on. However, this is starting to get annoying. A clean install won't fix it, i tried already.
I had this problem before and managed (with help) to fix it. But I can't, for the love of god, remember how! It was a very simple solution like messing around with the properties of NDIS.sys or something like it.
Anyways, here are some useful information (i guess):
Dropbox link to xperf results: https://www.dropbox.com/s/sxfslfbdudgftww/CPU.rar
Latency Mon Report:
Latency mon report.png


Thanks to everyone and have a nice day :)
 
Hi there,

It's been a while since I've seen DPC spikes reaching 100% of a CPU core - that's huge (usually ~10% is enough for noticeable issues):

DPCs.PNG

These DPC spikes are caused by netr28x.sys driver (used by your WiFi adapter) and, to be more specific, by MlmeDynamicTxRateSwitching function inside it:

netr28x.jpg

Looking into some Linux sources (which does not necessary mean it is the same for Windows) for this driver, we can find what this function does:

Code:
This routine calculates the acumulated TxPER of eaxh TxRate. And 
according to the calculation result, change CommonCfg.TxRate which 
is the stable TX Rate we expect the Radio situation could sustained.
IRQL = DISPATCH_LEVEL

We can also see under which conditions it is called (once again, it's not necessary true for Windows):

Code:
// execute every 500ms 
if ((pAd->Mlme.PeriodicRound % 5 == 0) && RTMPAutoRateSwitchCheck(pAd)/*(OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_TX_RATE_SWITCH_ENABLED))*/)
{
#ifdef CONFIG_STA_SUPPORT
  // perform dynamic tx rate switching based on past TX history
	IF_DEV_CONFIG_OPMODE_ON_STA(pAd)
	{
		if ((OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_MEDIA_STATE_CONNECTED)
				)
			&& (!OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_DOZE)))
			MlmeDynamicTxRateSwitching(pAd);
	}
#endif // CONFIG_STA_SUPPORT //
}
So, for MlmeDynamicTxRateSwitching() function to be called (hence, the DPC spike in your case to occur), the following conditions must be met:

  1. 500ms interval must pass (pAd->Mlme.PeriodicRound % 5 == 0)
  2. AutoRate switch must be enabled (RTMPAutoRateSwitchCheck(pAd))
  3. Device must support STA mode (CONFIG_STA_SUPPORT)
  4. Device must be operating in STA mode (IF_DEV_CONFIG_OPMODE_ON_STA(pAd))
  5. Device must be connected (OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_MEDIA_STATE_CONNECTED))
  6. Debugging must disabled (!OPSTATUS_TEST_FLAG(pAd, fOP_STATUS_DOZE))
As your WiFi is operating as a station (STA) mode (you are using it to connect to WiFi access point), that satisfies #3 and #4 requirements. Also, as you are connected, you satisfy #5 as well. #1 and #6 is nothing that depends on us, leaving #2 as the only interesting requirement. So, in short, that means that causing RTMPAutoRateSwitchCheck() function to return FALSE, by disabling Auto Rate Switch, would stop the driver from calling MlmeDynamicTxRateSwitching(), resolving the DPC latency issues you have as well.

Following the information above as well as some general tips, please try the following (in the order):

  1. Look for updated drivers for your wireless adapter.
  2. Open your Wireless Device properties in Devices Manager and check for any Advanced settings having Auto values. Try setting them to a static value, depending on your network configuration, where possible.
  3. Open your router configuration page and check WiFi settings for Auto values. Try setting them to a static value, depending on your network configuration, where possible.
  4. Get a new USB Wireless adapter (they are pretty cheap these days).
 
Last edited:
sorry, my internet went down for real this time. So, what do I have to do again?

Once again:

Following the information above as well as some general tips, please try the following (in the order):

  1. Look for updated drivers for your wireless adapter.
  2. Open your Wireless Device properties in Devices Manager and check for any Advanced settings having Auto values. Try setting them to a static value, depending on your network configuration, where possible.
  3. Open your router configuration page and check WiFi settings for Auto values. Try setting them to a static value, depending on your network configuration, where possible.
  4. Get a new USB Wireless adapter (they are pretty cheap these days).
 
So, I found a "speed and duplex" option that was on "auto negotiation". I changed it but i dont thinks thats it. I will be running a test! Oh and... let's say that buying anything right now its not avaliable :P I hope i can "skip" this part!
 
So, I found a "speed and duplex" option that was on "auto negotiation". I changed it but i dont thinks thats it. I will be running a test! Oh and... let's say that buying anything right now its not avaliable :P I hope i can "skip" this part!

Are you sure you are checking the settings of your wireless device in Device Manager? Wireless devices shouldn't have "Speed and duplex" settings, so I seems you are looking into settings of your Ethernet adapter.
 
Well... I have no ideia where to check then. I can only find "adaptadores de rede" which are translate to "network adapters"
 
I found something: 802.11n Wireless LAN card! I will mess around with it for a while to see if it is the right one.
 
Alright, I cant find a option that have auto values. But I am pretty sure this is the wireless device.​
The options I have are:
"IEEE802.11h" as disable
"energy saving mode" as disable
"radio on/off" as enable
"SmartScan" as disable.
Thats all I have. Is there a way we can use teamviewer or something so you can take a look? I feel like I am doing something wrong!​
 
Sorry, we prefer using the forum only, avoiding direct desktop sharing.

These options seems OK. Have you tried looking for new drivers for your WiFi card?
 

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top