Fix scaling reserved RAM feature flag naming
This commit is contained in:
parent
da4e0a06c0
commit
27d3b2f857
12 changed files with 36 additions and 12 deletions
|
|
@ -164,7 +164,7 @@ async function getSystemReservedMemoryMegaBytes(
|
|||
// Windows needs more memory for OS processes.
|
||||
const fixedAmount = 1024 * (process.platform === "win32" ? 1.5 : 1);
|
||||
|
||||
if (await features.getValue(Feature.ScalingReservedRam)) {
|
||||
if (await features.getValue(Feature.ScalingReservedRamEnabled)) {
|
||||
// Reserve an additional 2% of the total memory, since the amount used by
|
||||
// the kernel for page tables scales with the size of physical memory.
|
||||
const scaledAmount = 0.02 * totalMemoryMegaBytes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue