[FIX] Performance problem with servers that use Hot-Swap memory.

Article ID: 1606 
Last Review: Oct,6 2008
Author: Basalyko Roman
Last updated by: system APPLIES TO:
  • Virtuozzo for Windows 3.5.1
  • Virtuozzo for Windows 3.5.1 SP1
  • Virtuozzo Containers for Windows 4.0

Symptoms

The server supports Hot-Swap memory technology, that allows dynamic addition of physical memory. Leak of kernel mode memory appears and leads to "insufficient resources" errors.

For example:

The target 16 CPU system with 8Gb of physical memory is unable to run more than 30 VEs. After starting 30-th one the user becomes unable to start any more process because of "insufficient resources" error.

Cause

During the system initialization, OS allocates PFN Database. If the Hot-Swap technology is supported, the allocatable size of the PFN Database can be determined two ways:

 · by the value of "DynamicMemory" variable in registry
 · by the maximum Hot-Swap memory address supported by HAL

The "DinamicMemory" variable is not present in registry by default. So, the OS always uses maximum supported amount.

For example:

There is 8Gb of physical memory on the target system. The PFN Database size required for this value is: 8Gb/PAGE_SIZE*PFN_SIZE = 56Mb. But OS always allocates PFNs for maximum supported Hot-Swap memory. If this amount equal to 64Gb (maximum for ia32 PAE) the allocated value is: 64Gb/PAGE_SIZE*PFN_SIZE = 448Mb.

This results in leak of kernel mode memory, and leads to "insufficient resources" errors.

For example:

The target 16 CPU system with 8Gb of physical memory is unable to run more than 30 VEs. After starting 30-th one the user becomes unable to start any more process because of "insufficient resources" error.

Resolution

To resolve this situation with Hot-Swap memory, we should add into the system registry:
 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management] "DynamicMemory" value, with type of DWORD, that specifies the amount of gigabytes of physical memory supported by system PFN Database.
Keywords: insufficient resources


Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields