OOM Registry Settings (Compact 2013)
3/28/2014
There are several thresholds, adjustable by the registry, in the out-of-memory (OOM) design. These thresholds ensure that different levels of available memory are available for different types of components.
The registry values shown in the following table refer to the registry key HKEY_LOCAL_MACHINE\SYSTEM\OOM.
Name |
Type |
Description |
Default value |
---|---|---|---|
cpSystem |
REG_DWORD |
The kernel low threshold, which is the minimum number of pages of memory for system process allocation to succeed. |
100 |
cpForeground |
REG_DWORD |
The application critical threshold, which is the minimum number of pages of memory for foreground process allocation to succeed. |
200 |
cpAppLow |
REG_DWORD |
The application low threshold, which is the minimum number of pages of memory for regular process allocation to succeed. |
400 |
cpHealthy |
REG_DWORD |
The number of pages available for a healthy memory state. |
800 |
Registry Values for the OOM Model
The following example code shows the OOM registry settings of a device.
[HKEY_LOCAL_MACHINE\SYSTEM\OOM]
"cpSystem"=dword:100
"cpForeground"=dword:200
"cpAppLow"=dword:400
"cpHealthy"=dword:800