Bug 1730107
Summary: | Hugepage data is incorrect | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Charles Haithcock <chaithco> |
Component: | pcp | Assignee: | Nathan Scott <nathans> |
Status: | CLOSED ERRATA | QA Contact: | Jan Kurik <jkurik> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.7 | CC: | agerstmayr, jkurik, lmiksik, mgoodwin, nathans, patrickm |
Target Milestone: | rc | Keywords: | Bugfix, Triaged |
Target Release: | 7.9 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | pcp-4.3.4 | Doc Type: | No Doc Update |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-09-29 19:24:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1782202 |
Description
Charles Haithcock
2019-07-15 20:48:41 UTC
Thanks for the detailed analysis Charles. Yes, the values are off by a factor 1024 as a result of an assumption in proc_meminfo.c::refresh_proc_meminfo around line 115 which is assuming all values here need to be converted from kbytes to bytes (not so for the hugepages metrics). I'll work on a fix today, get it resolved upstream and then propose it for 7.8. commit 29092aa58df23fcc43f813d54b16a733d19f770c Author: Nathan Scott <nathans> Date: Tue Jul 16 12:28:26 2019 +1000 pmdalinux: fix hugepage metric value calculations The values for some of the Linux kernel hugepage metrics were being incorrectly multiplied by 1024. This was due to a code assumption in proc_meminfo.c::refresh_proc_meminfo around line 115, which was assuming all meminfo values needed conversion from kbytes to bytes - not so for these metrics. The fix involves removing this assumption (for all values from /proc/meminfo) and individually applying unit conversion where needed only. Updated calculations are now reflected in qa/821. Resolves Red Hat BZ #1730107. (In reply to Nathan Scott from comment #2) > Thanks for the detailed analysis Charles. ... > I'll work on a fix today, get it resolved upstream and then propose it for > 7.8. You are so welcome, and thank you for the quick turnaround on this! 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 (Low: pcp security, bug fix, and enhancement update), 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-2020:3869 |