Saturday, August 2, 2014

cpu usage - SVCHOST.EXE Using 25% Of CPU Load When Windows Update Is Running



Usually Windows Update does not take that much time to check what updates are available but this time I noticed that it took over 1 hour for it to check and return with information what updates it recommends to be installed. While at it I noticed svchost.exe using 25% of CPU load in Task Manager:


enter image description here


I have experienced similar Windows Update delay once but it was for laptop where I have not updated Windows for over 6 months. I thought it's because there's so much updates that need to be found, compared and downloaded by Windows Update. Not the case with my current laptop where I updated every time they have update available.


I am using Windows 7 64-bit Enterprise


Answer



When you use ETW/WPR/WPA to check for the CPU usage during the scan you see that the CPU usage comes from wuaueng.dll!CUpdatesToPruneList::AddSupersedenceInfoIfNeeded which is called from wuaueng.dll!CAgentUpdateManager::FindUpdates. The AddSupersedenceInfoIfNeeded method is the slowest thing. This does what the name indicates and looks if the offered/installed Windows 7 updates are still needed or superseded (outdated/replaced by newer ones). This is very slow.


With the last Windows Update Client update from March 2016, the update search is faster.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...