Created attachment 739934 [details] vdsm.log Description of problem: VDSM is reporting negative values for available memory. Version-Release number of selected component (if applicable): vdsm-4.10.2-15.0 How reproducible: 100% Steps to Reproduce: 1. Run memory load on host 2. vdsClient -s 0 getVdsStats | grep memAvailable Actual results: VDSM reports negative values ( memAvailable = -818 ) Expected results: VDSM should never report negative values for available memory
*** Bug 966165 has been marked as a duplicate of this bug. ***
The current memory computation is accurate and takes into account memory overcommitment. That's why one can get negative values there even if there is no KSM running. Maybe it should be mentioned in the docs — then open docs issue, please. But it is not a bug.
Peter , can we show 0 instead of negative number? Showing negative numbers as for available memory has bad user experience / impact.
Technically speaking, we can show anything. Yes, we can split one value into two: available memory (from 0 to N) and memory overcommitment (from -N to -1). But since this particular value is used only in the engine, it is better to keep current behaviour: 1. users are not supposed to do anything with VDSM ←→ engine protocol 2. the engine can rely on this values vdsClient is written to be used by experienced administrators and developers, so it is better to mention this particular case in the project documentation, 'cause it can be confusing.
I second the suggestion to keep showing negative values and provide an explanation in docs.
Re-opening on the engine as this is creating false events in the system. Additionally, the existing logic in the system should be verified in this light.
After discussion: This bug will require both change in VDSM and engine. VDSM currently does not report the true free memory on the host. instead it reports the total memory minus the sum of all used memory (for all processes). VDSM should report true free mem on host. this data should be the one referenced by the engine in context of 'minimum memory' events.
Closing - RHEV 3.3 Released
*** Bug 1049859 has been marked as a duplicate of this bug. ***