We did not have a direct user interface of splitting the compound page backing a THP and there is no need unless we want to expose the THP implementation details to users. Make <debugfs>/split_huge_pages accept a new command to do that. By writing "<pid>,<vaddr_start>,<vaddr_end>" to <debugfs>/split_huge_pages, THPs within the given virtual address range from the process with the given pid are split. It is used to test split_huge_page function. In addition, a selftest program is added to tools/testing/selftests/vm to utilize the interface by splitting PMD THPs and PTE-mapped THPs. This does not change the old behavior, i.e., writing 1 to the interface to split all THPs in the system. Link: https://lkml.kernel.org/r/20210331235309.332292-1-zi.yan@sent.com Signed-off-by: Zi Yan <ziy@nvidia.com> Reviewed-by: Yang Shi <shy828301@gmail.com> Cc: David Hildenbrand <david@redhat.com> Cc: David Rientjes <rientjes@google.com> Cc: John Hubbard <jhubbard@nvidia.com> Cc: "Kirill A . Shutemov" <kirill.shutemov@linux.intel.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Mika Penttila <mika.penttila@nextfour.com> Cc: Sandipan Das <sandipan@linux.ibm.com> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
26 lines
401 B
Plaintext
26 lines
401 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
hugepage-mmap
|
|
hugepage-shm
|
|
khugepaged
|
|
map_hugetlb
|
|
map_populate
|
|
thuge-gen
|
|
compaction_test
|
|
mlock2-tests
|
|
mremap_dontunmap
|
|
mremap_test
|
|
on-fault-limit
|
|
transhuge-stress
|
|
protection_keys
|
|
userfaultfd
|
|
mlock-intersect-test
|
|
mlock-random-test
|
|
virtual_address_range
|
|
gup_test
|
|
va_128TBswitch
|
|
map_fixed_noreplace
|
|
write_to_hugetlbfs
|
|
hmm-tests
|
|
local_config.*
|
|
split_huge_page_test
|