I had a really weird computer problem today, and I figured I would share the symptoms and solutions, since it took me about 4 hours to finally find the answer through Google. Hopefully this posting will get picked up by Google and help anyone else with a similar problem out.
My laptop computer is usually plugged in to the AC power, my USB mouse, and my ethernet cord. Whenever I use it at the kitchen table, for instance, I unplug all three of those things and move it. Usually this works perfectly, with no issue whatsoever. However, two days ago this is what happened. When I would unplug my computer, it would become extremely sluggish within a few seconds and stay that way until I plugged it back in again.
I determined the cause of the sluggishness was 100% CPU usage (as opposed to high disk activity or RAM exhaustion), but this didn’t help determine the root cause because the culprit process was “System”, which isn’t exactly something I can uninstall or stop from running, as it’s integral to the Windows OS. I should also note some other symptoms. Every 30 seconds or so in this “sluggish” mode, the computer screen would turn black and come back a few seconds later — it turned out that the Nvidia driver crashed. It seemed the longest I let this go without plugging back in, the worst the symptoms would get until the computer was almost completely unresponsive.
Originally I believed the “unplugging” action that caused it was unplugging the AC power cord. That seemed to make sense to me because I figured that going to battery power might cause some weird performance issues. Google revealed people with the same problem as me, who got 100% CPU usage after unplugging power. However, their solution didn’t help — I was already using High Performance mode and all of the processor settings were set to maximum even when on battery power.
However, when I started to troubleshoot, I unplugged each device one by one. First the mouse. That didn’t cause it. Then the power. Oh, wait… that wasn’t the cause after all. And sure enough, when I unplugged the Ethernet, the 100% CPU usage would begin. I plugged the power and mouse back in and the computer was still sluggish. Within 2 seconds of reconnecting the Ethernet, the problem disappeared and my problem was back to normal.
So, how exactly do you solve an issue where unplugging an Ethernet cable leads to 100% cpu usage? I should also mention this was ethernet specific, and didn’t involve lack of Internet, since I had wireless enabled this entire time and could browse the Internet (albeit slowly due to the sluggishness) while the ethernet was unplugged. Well, eventually I found a thread about a somewhat similar problem, where the user had high latency corresponding with network usage.
The linked forum thread actually has many solutions in it. I tried all of them and none of them actually worked for me. I finally decided to just use the workaround posted in the thread, which is to simply disable my ethernet adapter (in Network Adapters window right-click on it, select “Disable” ). This solved the problem completely, and it persists across restarts. I should mention that the tools xperf and LatencyMon were invaluable in finding this forum thread, because I never would have known the problem was caused by “ndis.sys” without those two programs.
I still don’t see why this caused the above symptoms. There must be some bug in Windows 7 where certain laptops have this problem. But just like so many curiosities, this one probably has no rational explanation.
Posted in Tech | Comments Off
I previously wrote an article on how to get the ...Comments Off
Click here to see what I like to call my ...Comments Off
Mozilla Developers moved the Mozilla HEAD branch from Beta 3 ...Comments Off
I'm not going to reinvent the wheel here by making ...Comments Off
Jailbreaking an iPod Touch is the process used to allow ...Comments Off
Looking at the numbers of the various consoles sold doesn't ...Comments Off
Mozilla Developers have recently moved the Mozilla HEAD branch from ...Comments Off
You would rather live in the city because it has ...Comments Off