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

Check the default huge page size for Linux #425

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

hankluo6
Copy link
Contributor

In Linux, we can read /proc/meminfo to get the huge page size.

Please node that this will get only one possible size, but Linux can supports more than one huge page size.

In Linux, we can read `/proc/meminfo` to get the huge page size.
@daanx
Copy link
Collaborator

daanx commented Oct 19, 2021

Thanks for the PR! and apologies for being so late addressing this :-(.
But yikes -- this is so fragile; very hesitant to include this ... it may be the only way to get the large page size though so perhaps it is what it is :-). I need to think a bit more on this.

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