Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add parse_meminfo() to avoid chopping MemFree/MemTotal info #66

Merged
merged 3 commits into from
Sep 23, 2020

Conversation

naughtont3
Copy link
Contributor

NOTE: On current system the avail memory was truncated
when parsing the meminfo data, which made HBM device
look like it only had a fraction of available memory.

Signed-off-by: Thomas Naughton [email protected]

NOTE: On current system the avail memory was truncated
  when parsing the meminfo data, which made HBM device
  look like it only had a fraction of available memory.

Signed-off-by: Thomas Naughton <[email protected]>
@naughtont3
Copy link
Contributor Author

I noticed difference between system "MemFree" and SICM "avail" for devices. This patch fixes that, but needs more testing. Here are the logs before/after to show the problem/fix for my tests.

Example of problem for numa node 0 (dram device) and 252 (hbm device):

Example of "fix" for numa ndoe 0 (dram device) and 252 (hbm device):

Copy link
Member

@lionkov lionkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the printfs.

Signed-off-by: Thomas Naughton <[email protected]>
@naughtont3
Copy link
Contributor Author

naughtont3 commented Sep 23, 2020

@lionkov I removed the DBG printfs. Note, I only did minor testing of this code for current use case/test environment.

@naughtont3 naughtont3 changed the title WIP: add parse_meminfo() to avoid chopping MemFree info add parse_meminfo() to avoid chopping MemFree info Sep 23, 2020
@naughtont3 naughtont3 changed the title add parse_meminfo() to avoid chopping MemFree info add parse_meminfo() to avoid chopping MemFree/MemTotal info Sep 23, 2020
@lionkov lionkov merged commit 2d415eb into lanl:master Sep 23, 2020
@naughtont3
Copy link
Contributor Author

Note: It appears this was a known issue (#49). The old method may be better. I'm just adding this note b/c I did not see Ben's ticket when I submitted my change. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants