2V0-621 · Question #165
An administrator is troubleshooting a CPU issue for a virtual machine. The following is seen in esxtop: - CPU0 is at 100% usage - The remaining logical CPUs are close to 0% - %RDY value is consistentl
The correct answer is C. The virtual machine has CPU affinity configured.. CPU affinity pins the VM to specific logical CPUs, saturating those CPUs while others sit idle and driving %RDY above 10% as the VM waits for its assigned CPU.
Question
An administrator is troubleshooting a CPU issue for a virtual machine. The following is seen in esxtop:
- CPU0 is at 100% usage
- The remaining logical CPUs are close to 0%
- %RDY value is consistently above 10%
What is likely the cause of the CPU issue?
Options
- AThe virtual machine has a CPU limit configured.
- BThe virtual machine's guest operating system is configured for SMP.
- CThe virtual machine has CPU affinity configured.
- DThe virtual machine is configured with a CPU reservation.
How the community answered
(31 responses)- A13% (4)
- B6% (2)
- C58% (18)
- D23% (7)
Why each option
CPU affinity pins the VM to specific logical CPUs, saturating those CPUs while others sit idle and driving %RDY above 10% as the VM waits for its assigned CPU.
A CPU limit throttles total CPU consumption across all eligible CPUs rather than pinning execution to one, so other logical CPUs would also show elevated usage instead of sitting near 0%.
Configuring SMP in the guest OS enables the guest to utilize multiple vCPUs simultaneously, which would spread load across multiple logical CPUs rather than concentrating it on CPU0.
CPU affinity restricts which physical CPUs a VM's vCPUs are allowed to run on. When CPU0 is the only CPU in the affinity set and is fully saturated, the VM is forced to wait for CPU0 to become available rather than being scheduled on any idle CPU, producing both the single-CPU saturation and the elevated %RDY seen in esxtop.
A CPU reservation guarantees a minimum CPU allocation to the VM but does not restrict which physical CPUs it may run on, so it would not cause other CPUs to idle.
Concept tested: CPU affinity effect on esxtop %RDY and CPU distribution
Source: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-D31BD47F-3C1F-4909-9706-3905D54B6B17.html
Topics
Community Discussion
No community discussion yet for this question.