YYYY-MM-DDTHH:MM:SS.sssZ| vcpu-1| W115: MONITOR PANIC: vmk: vcpu-0:P2M reservation failed after max retriesYYYY-MM-DDTHH:MM:SS.sssZ cpu174:4463989)VmMemCow: 1706: p2m update: cannot reserve - cur 0 0 rsvd 1028 req 257 avail 1279YYYY-MM-DDTHH:MM:SS.sssZ cpu174:4463989)Vmxnet3: 16524: Failed to map the rx data ring for rq 0Note: NSX Edge VMs can be affected by this issue
VMware vSphere ESXi 6.x, 7.x, 8.x, 9.x and 9.1.x
VMware NSX version 4.0.x or Above (if applicable)
Each virtual machine has a fixed-size buffer that records changes to its guest-to-host memory mappings (the P2M buffer). Under heavy workload, for example a high rate of storage or network I/O combined with breaking up shared memory pages, the buffer can stay full for an extended period. When the buffer is full, requests that need a free entry must wait until one is released. A defect in ESXi causes these waiting requests to give up much sooner than intended. When an entry is released, every waiting request is woken. A request that wakes but fails to obtain an entry (due to contention) still counts as a failed attempt. As a result, the retry limit can be exhausted in as little as a few seconds, instead of after the full intended 15-minute. The virtual machine may then power off with the error message "P2M reservation failed after max retries.
To workaround this issue, you need to increase the P2M buffer slots on the ESXi host.
Implementation Steps:
Mem.ShareCOSBufSize.32 (this is the maximum supported size).Note: If the VM logging the messages is an NSX Edge VM, consider upgrading the setting on the following combination of products. Change the value on hosts which already have a set ShareCOSBufSize to 32 :