|
Set hard cache limit.
- Parameters:
-
uiPercent |
If non-zero, the hard limit is calculated as a percentage of either available memory or total physical memory. If zero, the uiMax parameter is the hard limit. |
bPercentOfAvail |
Only used if uiPercent is non-zero. If TRUE, the limit is calculated as a percentage of currently available memory. If FALSE, the limit is calculated as a percentage of total physical memory. |
uiMin |
Only used if uiPercent is non-zero. This is the minimum hard limit that can be set. If the calculated hard limit is less than this, it will be adjusted up to this minimum. |
uiMax |
If uiPercent is zero, this is the hard limit to set. Otherwise, this is the maximum limit that should be set. If the limit is calculated as a percentage of either available memory or total physical memory, and it is over this maximum, it will be adjusted down to this maximum. NOTE: When a calculation is being done, FLAIM will first adjust down to the maximum, and then, if necessary, up to the minimum. |
uiMinToLeave |
Only used if uiPercent is non-zero and uiMax is zero. In that scenario, the hard limit is being calculated, but no maximum limit was specified, so uiMinToLeave is used to calculate a maximum. The maximum will be calculated as the available memory (if bPercentOfAvail is TRUE) or total physical memory (if bPercentOfAvail is FALSE) minus uiMinToLeave. |
bPreallocate |
Preallocate all of the memory once the limit is calculated. |
|