forked from scylladb/seastar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
smp: allocate hugepages eagerly when kernel support is available
Instead of deferring merging pages into hugepages to the transparent hugepage scanner, advise the kernel to do so immediately using the new MADV_POPULATE_WRITE and MADV_COLLAPSE advices. Refactor the prefaulter to attempt first to use MAP_POPULATE_WRITE to fault in a whole hugepage's worth of memory. This should fault the range as a hugepage but for good measure use MADV_COLLAPSE too (which would be a no-op if the work was done in MADV_POPULATE_WRITE).
- Loading branch information
Showing
2 changed files
with
72 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters