Symptoms
Sometimes it is necessary to emulate the existence of a paging file inside containers; for example, some applications require the presence of a paging file.
Resolution
The following command creates a corresponding value in the container's registry that allows you to emulate the existence of a paging file. Note that this command should be run inside the container:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v PagingFiles /t REG_MULTI_SZ /d "C:\pagefile.sys 2046 4092"
(where 2046 and 4092 are the min
and max
size of the paging file)
The value is removed automatically on CT restart; alternatively, you can use the command below to remove this registry value:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v PagingFiles /t REG_MULTI_SZ /d ""
Additional Information
Note: Containers don't have their own paging files by Virtuozzo design.