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

Run-time huge page configuration is broken #147

Open
oandras opened this issue Mar 2, 2018 · 1 comment
Open

Run-time huge page configuration is broken #147

oandras opened this issue Mar 2, 2018 · 1 comment

Comments

@oandras
Copy link

oandras commented Mar 2, 2018

# Make hugepages available right away with a temporary systctl write

The code tries to set the desired number of huge pages by updating vm.nr_hugepages via sysctl. This sysctl manipulates the default sized hugepages only, so it's wrong to call this in a loop iterating over all huge page sizes.

https://www.kernel.org/doc/Documentation/vm/hugetlbpage.txt:

When multiple huge page sizes are supported, /proc/sys/vm/nr_hugepages
indicates the current number of pre-allocated huge pages of the default size.

Huge pages of a given size can be manipulated via /sys/kernel/mm/hugepages during run-time. It is also a question if the allocation of 1GB huge pages can be modified during run-time on the x86-64 architecture.

@oandras
Copy link
Author

oandras commented Mar 8, 2018

I created a patch https://github.com/oandras/salt-formula-linux/tree/fix_runtime_hugepage_allocation

Did not have the opportunity to test it yet.

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

No branches or pull requests

1 participant