CV0-003 · Question #156
An administrator needs to build a VM for a legacy, single-threaded application. According to best practice, how many virtual CPUs should the administrator use?
The correct answer is A. 1. Single-threaded applications can only execute on one processor core at a time, making additional vCPUs wasteful and potentially harmful to hypervisor scheduling performance.
Question
An administrator needs to build a VM for a legacy, single-threaded application. According to best practice, how many virtual CPUs should the administrator use?
Options
- A1
- B2
- C4
- D8
How the community answered
(28 responses)- A89% (25)
- B7% (2)
- D4% (1)
Why each option
Single-threaded applications can only execute on one processor core at a time, making additional vCPUs wasteful and potentially harmful to hypervisor scheduling performance.
A single-threaded application is architecturally limited to one execution thread, so assigning exactly one vCPU matches the workload's actual parallelism. Adding extra vCPUs forces the hypervisor scheduler to find multiple physical cores simultaneously, increasing contention and scheduling latency without delivering any performance benefit to the application.
Two vCPUs waste scheduler resources because a single-threaded app cannot execute on both cores simultaneously and the hypervisor must still schedule both vCPUs on physical cores.
Four vCPUs amplifies scheduler overhead and resource contention on the host for a workload that is fundamentally incapable of parallel execution.
Eight vCPUs is severely oversized and would impose significant hypervisor co-scheduling complexity for an application limited to a single thread of execution.
Concept tested: vCPU right-sizing for single-threaded workloads
Source: https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-resource-management/GUID-6C3D0067-58BB-4A68-B4CE-1AE64E9A5B3E.html
Topics
Community Discussion
No community discussion yet for this question.