Support > Knowledge Base
Knowledge Base

Search the Knowledge Base: |
Search the Knowledge Base: |
Slow reboot of vSMP virtual machines on ESX when a lot of guest memory is page-shared
Symptoms
-
Rebooting a virtual machine that has multiple vCPUs takes significantly longer than a single vCPU on an ESX host when using certain hardware
-
Slow performance of virtual machines that use more than one vCPU on an ESX host when using certain hardware
Caution: The most noticeable symptom is your virtual machine taking a significant amount of time to reboot, but it does not take significant amount of time for a fresh power on. If you are not seeing slow reboot times of virtual machines, this article does not apply to you. Do not turn off pagesharing if you are not experiencing these symptoms.
Resolution
This issue occurs because of changes in the architecture of certain CPUs. These changes affect the way that ESX hosts perform COW (Copy-on-Write) memory operations when using vSMP in a virtual machine.
There are two common ways to workaround this problem. Perform one of the following workarounds:
-
Instead of rebooting the virtual machine, power it off, then power it back on. This resolves the issue because the COW memory is cleared and repopulated upon startup of the virtual machine.
-
Disable pagesharing to resolve the slow performance. Pagesharing is used to reclaim duplicated memory pages across and within virtual machines. If pagesharing is disabled, virtual machines do not share memory in this way and therefore the virtual machine consumes more physical memory because all memory pages are duplicated for each virtual machine running on the ESX host.
Note: Turning pagesharing off can potentially increase the amount of swapping if you are overcommitting the ESX host memory resources.
To disable page sharing on the ESX host:
-
Log in to VirtualCenter (or the ESX host directly) with an administrative account using the VMware Infrastructure Client.
-
Click on the ESX host on which you want to disable pagesharing.
-
Click the Configuration tab.
-
Click the Advanced Settings link.
-
Click Mem in the Advanced Settings window.
-
Look for the Mem.ShareScanGHz option and set the value to 0 .
Note: By default, Mem.ShareScanGHz is set to 4.
-
Click OK.
-
Reboot the ESX host.
-
Additional Information
Note: This issue is resolved in vSphere 4.
Feedback
Actions
- KB Article: 1004901
- Updated: Aug 14, 2009
- Products:
VMware ESX - Product Versions:
VMware ESX 3.0.x
VMware ESX 3.5.x

