You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During tests, @cperakis discovered that EVE OS reports the memory allocated for a VM as still free when using the free tool. This behavior is also observed in /proc/meminfo. This could mean we should not trust what we get from the system as "free" memory. When Pillar requests free memory, it might include memory already allocated for an app, which could pose a problem when deciding on available resources for starting a new VM. This behavior is due to Linux's memory overcommitment, which does not mark the memory as non-free until it is really used.
Currently, as far as I remember we retrieve the "free memory" value by analyzing the MemAvailable line in /proc/meminfo:
Verify how this information is used later in Pillar.
Ensure that Pillar correctly accounts for app-allocated memory, either by manual accounting in the code or by accurately interpreting the system-reported "free" memory.
If it does not interpret it right - fix it.
The text was updated successfully, but these errors were encountered:
During tests, @cperakis discovered that EVE OS reports the memory allocated for a VM as still free when using the
free
tool. This behavior is also observed in/proc/meminfo
. This could mean we should not trust what we get from the system as "free" memory. When Pillar requests free memory, it might include memory already allocated for an app, which could pose a problem when deciding on available resources for starting a new VM. This behavior is due to Linux's memory overcommitment, which does not mark the memory as non-free until it is really used.Currently, as far as I remember we retrieve the "free memory" value by analyzing the MemAvailable line in
/proc/meminfo
:eve/pkg/pillar/vendor/github.com/shirou/gopsutil/mem/mem_linux.go
Lines 92 to 98 in 078f891
eve/pkg/pillar/hypervisor/hypervisor.go
Line 115 in 397dce6
The task is to:
The text was updated successfully, but these errors were encountered: