High GuestOS Nic latency on host with CPU overutilization.
search cancel

High GuestOS Nic latency on host with CPU overutilization.

book

Article ID: 462891

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

 

  • High ping response times on a single host between VMs on the same host
  • On the ESXi host, you may see spikes in the CPU Utilization, CPU Ready, and or CPU CoStop values.
  • Commit values for the CPU with HT (1.25 cores per core) can show over 650% commit.

Environment

vSphere 8.x and above.

Cause

Severe host-level CPU resource contention driven by excessive vCPU over-provisioning, which resulted in hypervisor resource starvation and delays in the VMkernel network stack. 

When CPU Ready time is high, the ESXi scheduler is unable to provide CPU cycles in a timely manner. This creates a bottleneck at the hypervisor scheduling layer that prevents the vmxnet3 network driver from processing packets efficiently, leading to receive (RX) buffer overflows and packet loss, even if the guest OS CPU utilization appears within normal limits.

Resolution

Implement the following remediation steps:
    1. Right-size VMs by reducing vCPU allocations to better align with actual workload requirements and reduce scheduling overhead.
    2. Implement CPU Reservations for latency-sensitive or network-heavy VMs to guarantee physical resource availability.
    3. Change the ESXi host Power Management policy to "High Performance" to ensure stable CPU clock speeds and prevent latency introduced by frequency scaling or deep power-saving (C-state) transitions.
    4. Utilize DRS anti-affinity rules to distribute high-demand workloads across the cluster.
    5.  OR, increase the number of hosts in the cluster and spread the work load amongst all the hosts. 

Additional Information

Reducing vCPU counts directly decreases scheduling contention. CPU Reservations bypass standard scheduling queues during contention spikes, ensuring critical workloads retain performance. Setting the host to "High Performance" mode provides a consistent execution environment, which resolves jitter and latency previously introduced by the CPU waking from lower power states during processing bursts. Adding more resources can alleviate the issue, by providing more physical resources to a resource starved environment.