Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pillar: Use hard memory limit for EVE memory management.
Previously, EVE referenced the soft memory limit (`memory.soft_limit_in_bytes`) to determine available memory for VM creation. By default, the soft and hard memory limits were set to the same value, so this did not cause any issues. However, if the soft and hard limits are configured differently, EVE would not respect the hard memory constraints, allowing VMs to be created without adhering to the intended maximum memory limits. This commit updates the `EveMemoryLimitFile` path to use the hard memory limit (`memory.limit_in_bytes`) instead of the soft limit. By doing so, EVE will now properly account for the hard memory restrictions when managing memory for containers and creating new VMs, preventing potential memory overcommitment when soft and hard limits differ. Signed-off-by: Nikolay Martyanov <nikolay@zededa.com>
- Loading branch information