forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shmem: support huge_fault to avoid pmd split
Transparent hugepage of tmpfs is useful to improve TLB miss, but it will be split during cow memory fault. This will happen if we mprotect and rewrite code segment (which is private file map) to hotpatch a running process. Users of huge= mount option prefer huge pages after cow. We can avoid the splitting by adding a huge_fault function.
- Loading branch information
1 parent
0aa002b
commit 40060ce
Showing
1 changed file
with
45 additions
and
0 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