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

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

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

PrlApiDisp.h

Parameters

hDispConfig
A handle of type PHT_DISP_CONFIG.
nMemSize
The new minimum size (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 and other parameters. If needed, you can use this function to modify the default value of the minimum required 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 should be used in most situations.

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