High CPU utilization of inactive Windows virtual machines (1077)
- When an idle virtual machine executes a halt, it stops processing all instructions and requires no cycles on the server's physical CPU. This is an expected behavior in a virtual machine and causes no performance problems.
- When an idle virtual machine executes its idle loop, it is actively executing instructions which run on the underlying physical processor. In this case, performance tools in the guest operating system show an inactive operating system, but the CPU on the server is fully utilized.
Idle loop behavior occurs most often when you try to add virtual processors to a virtual machine. For more information, see the CPU Virtual Machine Configuration section of the vSphere Virtual Machine Administration Guide.
For a virtual machine running a Windows operating system, having the incorrect HAL (Hardware Abstraction Layer) installed makes the guest operating system always spin in its idle loop instead of halting. A virtual machine with two or more vCPUs configured should be running with a Multiprocessor or SMP HAL. A virtual machine with one vCPU configured should be running with a Uniprocessor HAL.
To determine which HAL your virtual machine is using and if you are running with the correct vCPU count for the HAL :
Note: Windows Server 2008 and later detected that HAL is at boot time and does not require changes.
- Right-click My Computer icon, and click Properties.
- Click the Hardware tab.
- Click the Device Manager tab.
- Double-click the Computer icon to see the HAL that is currently loaded.
- In the vSphere or VMware Infrastructure client, click the virtual machine and, then click the Summary tab to see how may vCPUs are configured.
Your configuration is correct if:
- You have one vCPU and your virtual machine operating system is configured for a Uniprocessor ACPI.
- Your virtual machine operating system is configured for two or more vCPUs and is running with a Multiprocessor ACPI.
For more information on adding processors in:
- ESXi 5.x virtual machines, see the Configuring a Virtual Machines section in the vSphere Virtual Machine Administration Guide.
- ESX/ESXi 4.x virtual machines, see the Virtual Machine Hardware Configuration in the vSphere Basic System Administration Guide.
- ESX 3.x virtual machines, see the Changing the Hardware Configuration of a Virtual Machine in the Basic System Administration Guide.
- Workstation 7.0 virtual machines, see the Use Four-Way Virtual Symmetric Multiprocessing in the Workstation User's Manual
- Workstation 6.5 virtual machines, see the Use Two-Way Virtual Symmetric Multiprocessing in the Workstation User's Manual
Note: When the correct HAL is installed, some guest operating systems halt more aggressively than others. When the system is inactive, some guest operating systems may spin in their idle loop for some time before issuing a halt instruction, whereas others may halt immediately. Typically, operating systems that spin in idle loops before halting are running with multiple processors.
Note: The preceding links were correct as of August 25, 2015. If you find a link to be broken, provide feedback on the article and a VMware employee will update the article as necessary.