diff options
| author | Fangrui Song <[email protected]> | 2023-12-19 21:41:23 -0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-12-29 11:58:42 -0800 |
| commit | 7fbb5e188248c50f737720825da1864ce42536d1 (patch) | |
| tree | 1a079634bcdd3a308a8e54eafed7abbf865d21f3 /tools/perf/scripts/python | |
| parent | b39ca208403c8f2c17dab1fbfef1f5ecaff25e53 (diff) | |
mm: remove VM_EXEC requirement for THP eligibility
Commit e6be37b2e7bd ("mm/huge_memory.c: add missing read-only THP checking
in transparent_hugepage_enabled()") introduced the VM_EXEC requirement,
which is not strictly needed.
lld's default --rosegment option and GNU ld's -z separate-code option
(default on Linux/x86 since binutils 2.31) create a read-only PT_LOAD
segment without the PF_X flag, which should be eligible for THP.
Certain architectures support medium and large code models, where .lrodata
may be placed in a separate read-only PT_LOAD segment, which should be
eligible for THP as well.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Fangrui Song <[email protected]>
Acked-by: Yang Shi <[email protected]>
Cc: Miaohe Lin <[email protected]>
Cc: Song Liu <[email protected]>
Cc: Matthew Wilcox <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions