Troubleshooting high latency and VMK_LIMIT_EXCEEDED in vSAN cluster
search cancel

Troubleshooting high latency and VMK_LIMIT_EXCEEDED in vSAN cluster

book

Article ID: 422686

calendar_today

Updated On:

Products

VMware vSAN

Issue/Introduction

Symptoms:

  • Elevated disk group latency observed on a single host within the vSAN cluster.

  • Extreme %WAIT and %VMWAIT values in esxtop (e.g., system world values exceeding 50,000).

  • Guest OS scheduling stalls on database-intensive workloads.

  • On the ESXi host, the Monitor > vSAN > Performance view shows a sudden spike in the Delayed I/O Average Latency counter.

Environment

VMware vSAN 8.x

Cause

This issue is typically driven by two concurrent factors:

  1. Log Buffer Saturation: High-frequency, small-block writes saturate the metadata region of the vSAN write buffer. In vSAN OSA, when the free write buffer drops (typically below 40%), vSAN injects log congestion to protect data integrity.
  2. Object-Level Queue Exhaustion: One or more VMs generate large I/O operations directed at a single VMDK. Each vSAN object has an independent queue depth; exceeding this depth triggers forced retries.

Technical Verification

Review the following logs and metrics to confirm the root cause:

  • In the vsan trace logs, the event DOMTraceOperationNeedsRetry is logged indicating more queueing at the down owner [MASKED OWNER] more I/Os are waiting to be processed than the queue can handle:

    YYYY-MM-DDTHH:MM:SS.MS+HH:MM [291729295] [cpu12] [4b69a9ba OWNER [MASKED OWNER] VMDISK] DOMTraceOperationNeedsRetry:4483: {'op': 0x45bc1c9d47c0, 'objUuid': '########-####-####-####-############', 'pendingUpdatesListLen': 128, 'inclusiveCommitCount': 0, 'prepWaitQueueLen': 0, 'status': 'VMK_LIMIT_EXCEEDED'}
    YYYY-MM-DDTHH:MM:SS.MS+HH:MM [291729296] [cpu12] [4b69a9bc OWNER [MASKED OWNER] VMDISK] DOMTraceOperationNeedsRetry:4483: {'op': 0x45bc1cf8f580, 'objUuid': '########-####-####-####-############', 'pendingUpdatesListLen': 128, 'inclusiveCommitCount': 0, 'prepWaitQueueLen': 1, 'status': 'VMK_LIMIT_EXCEEDED'}

    Under /var/run/log/vmkernel.log, CMMDSCompleteLocalUpdate entries will report extreme latencies:

    YYYY-MM-DDTHH:MM:SS.MS+HH:MM In(182) vmkernel: cpu35:2098582)CMMDS: CMMDSCompleteLocalUpdate:3865: ########-####-####-####-############: Number of slow updates in last interval is 1 maxLatency 302 millisecs slowest UUID67ecd62f-####-####-####-############
    YYYY-MM-DDTHH:MM:SS.MS+HH:MM In(182) vmkernel: cpu63:2098582)CMMDS: CMMDSCompleteLocalUpdate:3865: ########-####-####-####-############: Number of slow updates in last interval is 1 maxLatency 466 millisecs slowest UUID52301903-####-####-####-############

    A latency of 302ms to 466ms for a local metadata update is extremely high (normally these are sub-millisecond). When CMMDS updates are slow, every I/O operation that requires a metadata change (like writing to a new block or updating object status) is delayed. This explains the high %WAIT values you see in esxtop.

Resolution

To remediate congestion and increase cumulative queue depth, follow these architectural adjustments:

  1. Workload Redistribution: Redistribute high-intensity workloads across multiple smaller VMDKs rather than a single large disk.

  2. Controller Optimization: Attach new VMDKs to secondary VMware Paravirtual SCSI (PVSCSI) controllers to maximize I/O parallelism.

  3. Infrastructure Updates: Verify that host BIOS, NIC drivers, and firmware are up to date, particularly on Nutanix or Dell hardware platforms.

Distributing the application workload across multiple smaller Virtual Disks (VMDKs) significantly improves throughput. Because each VMDK maintains an independent I/O queue, striping the data across multiple storage objects multiplies the total available queue depth.

This architectural adjustment prevents single-object bottlenecking, thereby reducing vSAN backend processing pressure and minimizing guest-level latency.

Additional Information

Refer kb https://knowledge.broadcom.com/external/article/416407 for more information on the Log Buffer Saturation.