ESXi NUMA Alignment and vCPU Sizing: Why Bigger VMs Often Run Slower
How crossing physical NUMA node boundaries degrades database latency on ESXi hosts, and how to right-size vCPU and memory allocations.
βAdding four more vCPUs to a sluggish database VM that already fits inside a single physical socket often makes latency worse, not better.β
Understanding Remote Memory Penalties
Modern dual-socket ESXi hosts divide physical cores and RAM into distinct Non-Uniform Memory Access (NUMA) nodes. Accessing memory attached to the local CPU socket is fast; traversing the interconnect to the remote socket adds measurable latency and contention.
When a VM is sized wider than a single physical NUMA nodeβeither in vCPU count or memory footprintβthe hypervisor must span it across multiple NUMA clients (wide-VM). Combined with high %RDY (CPU Ready) times from over-allocated vCPUs, transactional workloads suffer unpredictable tail latency.
Practical Sizing Rules
- Keep VMs inside one NUMA node whenever possible: If your host has 10 physical cores and 128 GB RAM per socket, cap standard database VMs at 8 vCPUs and 96 GB RAM.
- Prefer
Cores per Socket = 1by default unless software licensing requires a specific socket count, allowing ESXi to present the optimal virtual NUMA topology automatically. - Monitor
%RDYandN%Linesxtop: Target< 5%CPU Ready and> 95%NUMA local memory (N%L) for latency-sensitive workloads.
π€ Interrogate This Field Note in Digital Twin
Click a prompt below to immediately stream an architectural analysis from Virtual Sachin's RAG cognitive twin:
Sachin Kumar Sharma
Director (Cloud & Infrastructure Architecture) | Principal Agentic AI Architect | 20+ Yrs Exp
Architecting resilient multi-cloud enterprise landing zones, SDN overlay fabrics, DevSecFinOps automation pipelines, and autonomous Agentic AI platforms.
π‘ Related Engineering Articles
Nested ESXi Virtualization: Exposing Hardware-Assisted VT-x/EPT to Hypervisors
Why nested ESXi hypervisors fail to power on 64-bit VMs, and how exposing VT-x/EPT CPU flags and tuning vDS security policies fixed our cloud lab factory.
Resource Contention: Balancing 320GB RAM & 20 Cores Across Concurrent Nested Pods
Why NUMA node boundary crossing causes 100% CPU wait times in nested virtualization labs, and how proper socket alignment doubled pod density.
Zero-Trust AI Tool Execution: Sandboxing Autonomous Agents at the OS & Network Boundary
Why prompt-level safety instructions are insufficient for autonomous coding and ops agents, and how OS-level sandboxes, egress allowlists, and pre-execution hooks enforce real boundaries.
π¬ Stay Updated on Tech Releases
Sign up to get notified when I publish new production war stories, agentic AI architecture blueprints, or open-source infrastructure tools.