Bug 1916519
Summary: | Host memory statistics discrepancies due to SReclaimable | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Germano Veit Michel <gveitmic> |
Component: | vdsm | Assignee: | Liran Rotenberg <lrotenbe> |
Status: | CLOSED ERRATA | QA Contact: | Qin Yuan <qiyuan> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.3.9 | CC: | ahadas, dfodor, emarcus, lsurette, mavital, michal.skrivanek, srevivo, ycui |
Target Milestone: | ovirt-4.4.5 | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | vdsm-4.40.50.4 | Doc Type: | Bug Fix |
Doc Text: |
Previously, the used memory of the host didn't take the SReclaimable memory into consideration while it did for free memory. As a result, there were discrepancies in the host statistics.
In this release, the SReclaimable memory is a part of the used memory calculation.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2021-04-14 11:38:44 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Germano Veit Michel
2021-01-15 00:43:30 UTC
Verified with: vdsm-4.40.50.4-1.el8ev.x86_64 Steps: 1. Create a large number of empty directories on host to make SReclaimable big 2. Check memUsed Results: 1. memUsed is correct. meminfo: [root@ocelot06 ~]# cat /proc/meminfo |grep -e MemTotal -e MemFree -e Buffers -e '^Cached' -e SReclaimable MemTotal: 98597084 kB MemFree: 64820576 kB Buffers: 4540 kB Cached: 3329852 kB SReclaimable: 10779752 kB Consider SReclaimable when calculate memUsed: memUsed = 100-int(100*(MemFree+Buffers+Cached+SReclaimable)/MemTotal) = 100-int(100*(64820576+4540+3329852+10779752)/98597084) = 20 Don't consider SReclaimable when calculate memUsed: memUsed = 100-int(100*(MemFree+Buffers+Cached)/MemTotal) = 100-int(100*(64820576+4540+3329852)/98597084) = 31 Check actual memUsed: [root@ocelot06 ~]# vdsm-client Host getStats |grep -E 'mem[PFSUCA]' "memAvailable": 77306, "memCommitted": 0, "memFree": 77050, "memShared": 0, "memUsed": "20", As you can see, the actual memUsed is the result of considering SReclaimable. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: RHV RHEL Host (ovirt-host) 4.4.z [ovirt-4.4.5] security, bug fix, enhancement), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:1184 Due to QE capacity, we are not going to cover this issue in our automation |