-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Description
| # 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.
Metadata
Metadata
Assignees
Labels
No labels