forked from chromium/chromium
-
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.
chromeos_hugepage: Make text section 2MB aligned for hugepages.
If we do not use the option '-Wl,--section-start=.text=2001000' at link time, the performance gain on hugepages is gone. This is probably because the original text section is not 2MB aligned and the after mremap, the hugepage is not preserved. This removes the support for anonymous hugepages. Because it causes some board crashes. It also removes the hugepage size limit, we want to use compiler flags to seperate hot and cold text segment. BUG=chromium:569963 TEST=it still uses hugepage on falco with modified kernel. On x86-alex and peach-pit, chrome starts normally. Review URL: https://codereview.chromium.org/1687223004 Cr-Commit-Position: refs/heads/master@{#377107}
- Loading branch information
Showing
1 changed file
with
19 additions
and
63 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