To prevent this issue, relocate the virtual machine templates to a shared storage that is presented to all ESXi hosts.
To workaround this issue, increase the number of buffers and reduce the flush interval.
Note: ESXi 5.0 hosts must be running Update 2 or later, prior to applying this workaround.
To increase the number of buffers and reduce the flush interval:
- Log in to the Local Tech Support Mode console of the ESXi host. For more information, see Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910).
- To increase the number of buffers from 2048 to 4096, run this command:
# esxcfg-advcfg -s 32768 /BufferCache/MaxCapacity
Note: If the above change does not result in a significant improvement, try reducing the flush interval.
- To reduce the Buffer Cache Flush interval from 30 seconds to 20 seconds, run this command:
# esxcfg-advcfg -s 20000 /BufferCache/FlushInterval
Notes:
- You may continue to experience some buffer cache exhaustion on large virtual machines, but the frequency is usually much lower.
- A host reboot is not required to increase the buffers, but to decrease the buffers to a lower value or to the default value, a host reboot is necessary for the changes to take effect.