Collapse All
Virtuozzo Virtualization SDK C API Reference
ContentsIndex
PreviousUpNext
PrlDispCfg_SetMaxReservMemLimit Function
PHT_DISP_CONFIG  See Also

Allows to manually set the upper limit of the memory size that can be reserved for Virtuozzo Service operation.

Syntax
PRL_RESULT PrlDispCfg_SetMaxReservMemLimit(
    PRL_HANDLE hDispConfig, 
    PRL_UINT32 nMemSize
);
File

PrlApiDisp.h

Parameters

hDispConfig
A handle of type PHT_DISP_CONFIG.
nMemSize
The new maximum memory limit (in megabytes).

Returns

PRL_RESULT. Possible values: 

PRL_ERR_INVALID_ARG - invalid handle. 

PRL_ERR_SUCCESS - function completed successfully. 

Remarks

By default, memory limits are calculated automatically based on the host machine RAM size. If needed, you can use this function to modify the default value of the maximum reserved memory size. Please note that modifying default memory limits must be done with extreme caution. Unjustified memory limits may result in too much or too little memory reserved for Virtuozzo Service, which in turn may lead to an unstable or inefficient system. While this and other functions allow you to experiment with Virtuozzo Service memory limits, the default values are the ones that should be used in most situations.

See Also
Links
Copyright ©2016-2017 Parallels International GmbH. All rights reserved.