<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>cpu-load &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/cpu-load/</link>
	<description>Feed of posts on WordPress.com tagged "cpu-load"</description>
	<pubDate>Sun, 20 Jul 2008 06:34:09 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[The swirl on your desk. Updating the Update. The svchost 100% CPU Load Issue Under The Hood. Ways of Fixing.]]></title>
<link>http://swirldesk.wordpress.com/2007/05/11/the-swirl-on-your-desk-updating-the-update-the-svchost-100-cpu-load-issue-under-the-hood-ways-of-fixing/</link>
<pubDate>Fri, 11 May 2007 12:56:38 +0000</pubDate>
<dc:creator>swirldesk</dc:creator>
<guid>http://swirldesk.wordpress.com/2007/05/11/the-swirl-on-your-desk-updating-the-update-the-svchost-100-cpu-load-issue-under-the-hood-ways-of-fixing/</guid>
<description><![CDATA[Well, you probably heard all the rumors about the issue with user computers getting locked up right ]]></description>
<content:encoded><![CDATA[<p>Well, you probably heard all the rumors about the issue with user computers getting locked up right after users logging into their accounts. If you haven't, lucky you are and your users too.<br />
What I am talking about? I am talking about the notorious issues when user can't start working with applications because right after logging on with his credentials and establishing network connection system gets locked up. Even your mouse pointer moves so slowly as if you are doing some super complex computing.</p>
<p><strong>How to check what causes the system lockup, locate and resolve the problems? </strong><br />
While all that can be done in a one-pass way utilizing the <a href="http://www.scriptlogic.com/products/desktopauthority/landing/desktop-authority.asp">desktop management</a> techniques with some efforts applied we can try to handle this manually using command line tools, built-in windows tools, and surely the fix from Microsoft.</p>
<p>Fist of all, we need to trap the suspect process.<br />
What we get from the users? Just the general info like "My PC is working like my Apple II two decades back". User reports that he just booted the computer and cannot start neither any of Office applications nor any other applications. Even the task bar gets screwed up if you will move the mouse pointer over it and release it to by clicking the icons in notification area or window tabs right on the taskbar. Everything hands and the computer itself behaves the way it was ages before. That's an example of the typical rant/compliant you can get from your mail or phone.</p>
<p><strong>So what should be our fist steps?</strong><br />
As Windows is (in a very limited abstracted way of view) about subsystems, processes and threads we need to find the process that causes the system hang.<br />
The quickest way to do what hangs our system is to fire up the <a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/taskman_whats_there_w.mspx">Windows Task Manager</a>. While there's a fully descriptive answer on <a href="http://support.microsoft.com/kb/323527">how to use it</a> the simplest way that works all the time is to use the keyboard combination and press <strong><em>Ctrl+Esc</em></strong>. Well, you can also press the standard Ctrl+Alt+Del, but as we know the button to start it can be removed from the logon screen widow using the Remove Task Manager policy. That's what is the first about the difference and the preferences. The second is that while Ctrl+Esc combination opens right the Windows Task Manager window itself, Ctrl+Alt+Del shortcut is far more general combination and is used actually to open Windows logon screen window.</p>
<p><em>A little tip</em>: you can switch between different types of logon screen - logon window and <a href="http://windowshelp.microsoft.com/Windows/en-US/Help/9643b4f4-b9e2-47ce-99b4-ee15c13897471033.mspx">welcome screen</a> by following <a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ua_logon_at_welcome_page_w.mspx">these steps</a>. Don't mix it with <a href="http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/93487.mspx">Windows 2000 welcome sceen</a>.</p>
<p><strong>What to do if you don't see the Windows Task manager button on your logon window?</strong></p>
<p>1. Log on to the system using your account that has administrative pribileges and is not restricted from opening MMC snap-ins<br />
2. Click <strong>Start</strong> &#62; <strong>Run </strong>and type <em><strong>rsop.msc</strong></em> to open the <strong>Resultant Set of Policy </strong>snap-in<br />
3. In the left panel within the <strong>Resultant Set of Policy</strong> snap-in navigate to the folder <em><strong>User Configuration\Administrative Templates\System\Ctrl+Alt+Del Options</strong></em> and check whether you have the <strong>Remove Task Manager</strong> policy defined in the right panel<br />
4. If you have and the policy contains <em><strong>Enabled </strong></em>in the <strong>State</strong> column that is the use of the <strong>Task Manager</strong> button was prevented on this machine</p>
<p>The Task Manager is opened. Now what?<br />
Switch to the <strong>Performance </strong>tab to see the statistics showing you the general information about memory and CPU consumption. I bet you will see the CPU is taking 100% from the <strong>CPU Usage</strong> bar. If so, we need to know what gets all the system and CPU resources. To do that</p>
<p>1. Switch to the <strong>Processes </strong>tab<br />
2. Click <strong>View </strong>&#62; <strong>Select columns...</strong> and check <strong>CPU Usage</strong> and <strong>CPU Time</strong>, and <strong>PID (Proccess Identifier)</strong> checkboxes within the <strong>Select Columns</strong> dialog<br />
3. Click <strong>OK </strong>to save the settings and close the window<br />
4. Sort the CPU column by clicking on it twice to show the most CPU consuming process on top of the list<br />
5. That should be the <em><strong>svchost.exe</strong></em> process that takes so much of CPU time</p>
<p><em>By the way, if you wish, you can get how much time it took from the overall amount of CPU time. From my experience, these locks are sometimes so long-term so they took from 15 minutes to an hour of processor time. Compare it with the time taken by your Word processor that you always claim for the slow work.</em></p>
<p>6. Now find what you have written in the PID column for the row with the faulty process and write it down somewhere we will need this info in our future steps</p>
<p><em>Some tricky info about the CPU Time</em><br />
If you have multicore or hyperthreading processor, note that CPU time represents the summary for or your physical or virtual cores. Thus if you have 2 cores, you need to divide the CPU time you see in the CPU column by 2 to get the time for one. That's a very-very rough calculation as the core load is not equally distributed between the cores. That actually depends on how well written the applications is, how much threads it uses and if there were any multicore optimizations made by developer. But at least you will get why your second hand is running so fast.</p>
<p>I am almost 100% sure that you will see the svchost.exe process listed as the most CPU consuming one in the <strong>Image Name</strong> column in the task manager window</p>
<p><strong>What does the svchost do?</strong></p>
<p>Shortly speaking the process <em>hosts </em>(as it comes from the name) other system processes which in windows terminology are called as <em>services</em>. You can get more information about what is the reason to have this process running on the system from <a href="http://windowshelp.microsoft.com/Windows/en-US/help/057580a1-7002-4f43-9240-a74f42cb05c91033.mspx">this article</a>.</p>
<p>How to find which service is hosted by this process? There are ways to do that and two of them we will discuss later.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Controlando seu Notebook]]></title>
<link>http://edsonw.wordpress.com/2008/04/02/controlando-seu-notebook/</link>
<pubDate>Wed, 02 Apr 2008 05:12:43 +0000</pubDate>
<dc:creator>edsonw</dc:creator>
<guid>http://edsonw.wordpress.com/2008/04/02/controlando-seu-notebook/</guid>
<description><![CDATA[Notebook Hardware Control é um aplicativo que permite você controlar vários aspectos do seu noteb]]></description>
<content:encoded><![CDATA[<p><a href="http://www.pbus-167.com/">Notebook Hardware Control</a> é um aplicativo que permite você controlar vários aspectos do seu notebook, principalmente para resfriá-lo e aumentar a duração da bateria.</p>
<p style="text-align:center;"><img src="http://www.gigaclube.webfenix.com/wp-content/uploads/2008/04/nb_hardwarecrtl.gif"></p>
<p style="text-align:left;">Com ele você pode controlar a velocidade e voltagem da sua CPU, controlar e monitorar o HD, e muito mais. <br><br>Fonte: <a href="http://shellcity.net/" target="_blank">ShellCity</a></p>
<p class="zoundry_raven_tags">  <!-- Tag links generated by Zoundry Raven. Do not manually edit. http://www.zoundryraven.com -->  <span class="ztags"><span class="ztagspace">Technorati</span> : <a href="http://technorati.com/tag/CPU%20Clock" class="ztag" rel="tag">CPU Clock</a>, <a href="http://technorati.com/tag/CPU%20Load" class="ztag" rel="tag">CPU Load</a>, <a href="http://technorati.com/tag/Controlando" class="ztag" rel="tag">Controlando</a>, <a href="http://technorati.com/tag/Notebook" class="ztag" rel="tag">Notebook</a>, <a href="http://technorati.com/tag/Resfri%C3%A1-lo" class="ztag" rel="tag">Resfriá-lo</a></span> </p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[The svchost 100% CPU Load Issue Under The Hood. Fixing the Update Hog.]]></title>
<link>http://swirldesk.wordpress.com/2007/06/20/the-svchost-100-cpu-load-issue-under-the-hood-fixing-the-update-hog/</link>
<pubDate>Wed, 20 Jun 2007 12:35:32 +0000</pubDate>
<dc:creator>swirldesk</dc:creator>
<guid>http://swirldesk.wordpress.com/2007/06/20/the-svchost-100-cpu-load-issue-under-the-hood-fixing-the-update-hog/</guid>
<description><![CDATA[Last time we stopped on how can we find which service is hosted by working process.
We can retrieve ]]></description>
<content:encoded><![CDATA[<p><a href="http://swirldesk.wordpress.com/2007/05/11/the-swirl-on-your-desk-updating-the-update-the-svchost-100-cpu-load-issue-under-the-hood-ways-of-fixing/">Last time</a> we stopped on how can we find which service is hosted by working process.</p>
<p>We can retrieve this information using the <a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sc.mspx"><strong>Service Controller</strong></a> (commonly known as SC) utility.</p>
<p>But before doing that we need to get a list of working services. This can be done by controlling the services using <strong>Services</strong> snap-in, using the mentioned <em>SC.exe</em>, using <strong>tasklist </strong>tool, or <a href="http://www.scriptlogic.com/products/desktopauthority/landing/desktop-authority.asp">controlling it remotely</a> by connecting to the affected computer from the remote place and managing the services on it in the real time.</p>
<p>How to retrieve service status using the <a href="http://technet2.microsoft.com/WindowsServer/en/library/3c5945ee-afb8-43ce-b39d-50e6d5b89bf81033.mspx">Services snap-in</a><br />
1. Click <strong>Start</strong> &#62;&#62; <strong>Control Panel</strong> &#62;&#62; <strong>Administrative Tools</strong> &#62;&#62; <strong>Services</strong><br />
2. In opened <strong>Services</strong> windows click twice on the <strong>Status</strong> column within the right panel<br />
3. The snap-in will sort your services so that those ones that are currently working will appear on the top of the list</p>
<p><strong>NOTE</strong>: <em>The shortest way to open the services snap-in is to click <strong>Start</strong> &#62;&#62; <strong>Run</strong> and type <strong>services.msc</strong></em></p>
<p><strong>NOTE</strong>: <em>If there's a lot of services running on your computer and you know the service name, and you know the name of the service you are searching within the list, you can just press the key on the keyboard with the letter that corresponds to the letter the name of the service starts with to rich the service position in the service list. Windows automatically sorts and scrolls the selection to the typed name. If you are quick enough in your typing you can type something like .NET Runtime Optimization Service v2.0.50727_X86 and navigate to the Microsoft .NET Framework NGEN service in a flash.</em></p>
<p>By the way, if you are unfamiliar with .net but want to know what the native image generator is, you can read info about it and more specific info in this brilliant <a href="http://msdn.microsoft.com/msdnmag/issues/05/04/NGen/">article</a> in MSDN magazine.</p>
<p>How to retrieve service status using the <a href="http://technet2.microsoft.com/WindowsServer/en/library/3c5945ee-afb8-43ce-b39d-50e6d5b89bf81033.mspx">Service Controller</a><br />
This is quite simple. Just<br />
1. Open command window by typing <em><strong>%comspec%</strong></em> in the Run dialog or in Windows explorer window<br />
2. In the command window type<br />
<strong><em>SC query</em></strong></p>
<p><strong>NOTE</strong>: <strong>if output is big enough to fit your command window buffer, redirect SC output to the <a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/more.mspx">more command</a> input using this command<br />
sc query &#124;more<br />
Notice, there's a space after the sc argument but no spaces after the pipe symbol</strong>.<br />
<em>Useful tip</em>: to force more command to display text splitting it in pages so that the output will be displayed in chunks filling one whole window at the time press Space bar when asked by more utility</p>
<p><em>Service controller</em> outputs lot of information that's hard to find in the output on the display. To save our eyes we can redirect output from the console to the file by running this command<br />
<strong><em>sc query&#62;c:\servicequery.txt</em><br />
</strong><br />
What we want to get is the service status and, preferably the description. In that situation it's probably more handy to get the list by extracting the information from the <strong>Services</strong> snap-in window. To do that<br />
1. Open <strong>Services</strong> snap-in as described above<br />
2. Select <strong>Action</strong> &#62;&#62; <strong>Export List</strong><br />
3. Select the save file type (comma separated file preferably)</p>
<p><strong>How to retrieve service status using the <a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/tasklist.mspx">Task List</a> utility</strong><br />
You may ask, why we need another utility when we already retrieved service status? The answer as easy. We retrieved the service status, and that's the major step forward, but we still have not retrieved the information that will stick two parts of our conversation in a single consistent one. I mean that we need to find the connection between the hosting process that harms our system performance that we located in previous sections on this page. Here's where we will use the process PID we wrote down.</p>
<p>1. Open command window by typing <strong><em>%comspec%</em></strong> in the <strong>Run</strong> dialog or in Windows explorer window<br />
2. In the command window type<br />
<strong><em>tasklist /svc</em></strong><br />
This command will list all services that are currently working on your computer. But besides the service name it will output the process, the image name, its PID and the whole list of services that are hosted by the process. That's what we need the PID for. Now locate the PID of a process that hangs the system and locate it in the list of the command output.</p>
<p>Very likely that will be that process that hosts the major part of services and has the several services listed in the Services column like<br />
<em>AudioSrv, Browser, CryptSvc, .... , Themes, TrkWks, W32Time, winmgmt, wuauserv, WZCSVC</em></p>
<p>As the system lockup occurs right when you connect to the internet, that's likely that this the service which searches for something when it gets the connection the one who is the source of all problems here. So we can drill thought all the list of services hosted by this process. But how we can get what is that <strong>wuauserv</strong> listed there? We need to get the service name.</p>
<p><strong>How to get service name using the SC utility</strong></p>
<p>1. Open command window by typing <strong>%comspec%</strong> in the <strong>Run</strong> dialog or in Windows explorer window<br />
2. In the command window type<br />
<strong><em>sc GetDisplayName wuauserv</em></strong></p>
<p>it will return service name. In this example it will be<br />
<strong><em>Name = Automatic Updates</em></strong></p>
<p><strong>NOTE</strong>: <em>I use %comspec% environment variable instead of running the command window directly. It's the good way to avoid problems with running another image of cmd.exe. To check what image corresponds to the path selected when you use this vriable use set command.</em></p>
<p><em>Additional information about service control programs can be found in <a href="http://msdn2.microsoft.com/en-us/library/ms685151.aspx">this section</a>.</em></p>
<p><strong>What to do if you are running out of ideas and need to fix service status?</strong><br />
If you see, everything goes wrong with your services and you have no clue what to do, don't panic. First try resetting service settings to the default state that they have right after installing the operating system. You can find the list with default settings for all services available in Windows by default on <a href="http://technet2.microsoft.com/windowsserver/en/library/26ee53c7-70e4-431c-a00c-6a28e8fd04f81033.mspx">this page</a>.</p>
<p><strong>What to do next?</strong></p>
<p>We localized the service name and what we should look for. It's the problem with Windows Automatic Updates service, that is described in the <a href="http://support.microsoft.com/kb/916089/">article KB 916089</a>. But one of the solutions is hidden in the <a href="http://support.microsoft.com/kb/927891">next article</a>.</p>
<p><strong>Here's what we can do to fix this issue</strong></p>
<p>We will re-registed the <strong>Windows Update Components</strong> and then set the update patch from the KB 916089. To do that we need to stop all services that may interfere with the process, flush the <strong>SoftwareDistribution</strong> folder to eliminate problems connected with corruption of folder storage, register the Windows update libraries with <a href="http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/regsvr32.mspx">regsvr32</a> COM registration utility and apply patch at the end of the procedure.<br />
Here's the example of batch file that can be used to automate this task.<br />
<code><br />
rem Here we stop the  Automatic Updates service itself to unlock libraries<br />
net stop wuauserv<br />
rem Stopping Background Intelligent Transfer Service what's not necessary but better to do to avoid interfering with server-client transfers<br />
net stop bits<br />
rem Removing the Automatic Update service storage folder content out to the temporary storage<br />
move %SystemRoot%\SoftwareDistribution %TEMP%\SoftwareDistribution<br />
rem Registering Service components<br />
regsvr32 /s wuapi.dll<br />
regsvr32 /s wuaueng.dll<br />
regsvr32 /s wuaueng1.dll<br />
regsvr32 /s atl.dll<br />
regsvr32 /s wucltui.dll<br />
regsvr32 /s wups.dll<br />
regsvr32 /s wups2.dll<br />
regsvr32 /s wuweb.dll<br />
rem Setting up the KB 927891 fix patch<br />
rem Defining the storage where to look for the fix<br />
set fix=c:\patches<br />
rem Windows Automatic Updates SVCHOST 100% CPU Load patch for Windows XP X86<br />
%fix%\WindowsXP-KB927891-v2-x86-ENU.exe /quiet /norestart</code></p>
<p>You can find another fixes on the KB page and add them to the end of batch file if you want to update Windows Server 2003 machines too.</p>
<p><em>Technorati</em>: <a href="http://technorati.com/tag/office+update" rel="tag">office update</a> <a href="http://technorati.com/tag/system+hang" rel="tag">system hang</a> <a href="http://technorati.com/tag/100%25+load" rel="tag">100% load</a> <a href="http://technorati.com/tag/snap-in" rel="tag">snap-in</a> <a href="http://technorati.com/tag/manage+tasks" rel="tag">manage tasks</a> <a href="http://technorati.com/tag/process+identification" rel="tag">process identification</a> <a href="http://technorati.com/tag/control+service" rel="tag">control service</a> <a href="http://technorati.com/tag/process+view" rel="tag">process view</a> <a href="http://technorati.com/tag/CPU+load" rel="tag">CPU load</a> <a href="http://technorati.com/tag/svchost" rel="tag">svchost</a> <a href="http://technorati.com/tag/windows+update" rel="tag">windows update</a> <a href="http://technorati.com/tag/desktop+management" rel="tag">desktop management</a> <a href="http://technorati.com/tag/service" rel="tag">service</a> <a href="http://technorati.com/tag/remote+control" rel="tag">remote control</a> <a href="http://technorati.com/tag/PID" rel="tag">PID</a> <a href="http://technorati.com/tag/microsoft+update" rel="tag">microsoft update</a> <a href="http://technorati.com/tag/service+status" rel="tag">service status</a> <a href="http://technorati.com/tag/remote+management" rel="tag">remote management</a> <a href="http://technorati.com/tag/tips%26tricks" rel="tag">tips&#38;tricks</a></p>
<p><a href="http://technet2.microsoft.com/WindowsServer/en/library/26ee53c7-70e4-431c-a00c-6a28e8fd04f81033.mspx">Best practice with working with services</a><br />
<a href="http://www.scriptlogic.com/products/desktopauthority/landing/desktop-authority.asp">Automatic Distribution of Patches Throughout the Active Directory Clients</a></p>
]]></content:encoded>
</item>

</channel>
</rss>
