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 support for reading AnonHugePages from /proc/meminfo #1519

Merged
merged 1 commit into from Sep 4, 2023

Conversation

kevinconaway
Copy link
Contributor

This commit adds support for reading the AnonHugePages field from /proc/meminfo.

The values in this field allow monitoring the THP usage by systems that use this type of memory

This commit adds support for reading the `AnonHugePages` field from `/proc/meminfo`.

The values in this field allow monitoring the [THP](https://www.kernel.org/doc/Documentation/vm/transhuge.txt) usage by systems that use this type of memory
Copy link
Owner

@shirou shirou left a comment

Choose a reason for hiding this comment

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

We have added HugePagesRsvd and HugePagesSurp in #1275. As I stated in the PR, we do not want to add any more Linux-specific information. However, since information related to HugePages has already been added, I think we should unfortunately also add this AnonHugePages field. Anyway, I am very appreciative of your contribution.

@shirou shirou merged commit d80af8b into shirou:master Sep 4, 2023
19 checks passed
@kevinconaway kevinconaway deleted the kevinconaway/mem-anonhugepages branch September 5, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants