Subsystems (11)
Date: Tue, 3 Jan 2023 18:00:52 +0000
Subject: [PATCH 0/5] mm: trivial fixups
This patchset is for trivial fixups of mm stuff on MAINTAINERS, tools/ selftests, and docs.
SeongJae Park (5):
MAINTAINERS: add types to akpm/mm git trees entries MAINTAINERS/MEMORY MANAGEMENT: Add tools/vm/ as managed files tools/vm: rename tools/vm to tools/mm
selftests/vm: rename selftets/vm to selftests/mm Docs/admin-guide/mm/numaperf: increase depth of subsections
Documentation/admin-guide/mm/hugetlbpage.rst | 6 +++---
Documentation/admin-guide/mm/idle_page_tracking.rst | 2 +-
Documentation/admin-guide/mm/numaperf.rst | 8 ++++----
Documentation/admin-guide/mm/pagemap.rst | 4 ++--
Documentation/core-api/pin_user_pages.rst | 2 +-
Documentation/mm/page_owner.rst | 2 +-
Documentation/mm/slub.rst | 2 +-
Documentation/translations/zh_CN/mm/page_owner.rst | 2 +-
MAINTAINERS | 9 +++++----
mm/Kconfig | 2 +-
mm/Kconfig.debug | 2 +-
mm/memory-failure.c | 2 +-
tools/{vm => mm}/.gitignore | 0
tools/{vm => mm}/Makefile | 0
tools/{vm => mm}/page-types.c | 0
tools/{vm => mm}/page_owner_sort.c | 0
tools/{vm => mm}/slabinfo-gnuplot.sh | 0
tools/{vm => mm}/slabinfo.c | 0
tools/testing/selftests/{vm => mm}/.gitignore | 0
tools/testing/selftests/{vm => mm}/Makefile | 0
.../selftests/{vm => mm}/charge_reserved_hugetlb.sh | 0
tools/testing/selftests/{vm => mm}/check_config.sh | 0
tools/testing/selftests/{vm => mm}/compaction_test.c | 0
tools/testing/selftests/{vm => mm}/config | 0
tools/testing/selftests/{vm => mm}/cow.c | 0
tools/testing/selftests/{vm => mm}/gup_test.c | 0
tools/testing/selftests/{vm => mm}/hmm-tests.c | 0
tools/testing/selftests/{vm => mm}/hugepage-mmap.c | 0
tools/testing/selftests/{vm => mm}/hugepage-mremap.c | 0
tools/testing/selftests/{vm => mm}/hugepage-shm.c | 0
tools/testing/selftests/{vm => mm}/hugepage-vmemmap.c | 0
tools/testing/selftests/{vm => mm}/hugetlb-madvise.c | 0
.../selftests/{vm => mm}/hugetlb_reparenting_test.sh | 0
tools/testing/selftests/{vm => mm}/khugepaged.c | 0
.../testing/selftests/{vm => mm}/ksm_functional_tests.c | 0
tools/testing/selftests/{vm => mm}/ksm_tests.c | 0
tools/testing/selftests/{vm => mm}/madv_populate.c | 0
tools/testing/selftests/{vm => mm}/map_fixed_noreplace.c | 0
tools/testing/selftests/{vm => mm}/map_hugetlb.c | 0
tools/testing/selftests/{vm => mm}/map_populate.c | 0
tools/testing/selftests/{vm => mm}/memfd_secret.c | 0
tools/testing/selftests/{vm => mm}/migration.c | 0
tools/testing/selftests/{vm => mm}/mlock-random-test.c | 0
tools/testing/selftests/{vm => mm}/mlock2-tests.c | 0
tools/testing/selftests/{vm => mm}/mlock2.h | 0
tools/testing/selftests/{vm => mm}/mrelease_test.c | 0
tools/testing/selftests/{vm => mm}/mremap_dontunmap.c | 0
tools/testing/selftests/{vm => mm}/mremap_test.c | 0
tools/testing/selftests/{vm => mm}/on-fault-limit.c | 0
tools/testing/selftests/{vm => mm}/pkey-helpers.h | 0
tools/testing/selftests/{vm => mm}/pkey-powerpc.h | 0
tools/testing/selftests/{vm => mm}/pkey-x86.h | 0
tools/testing/selftests/{vm => mm}/protection_keys.c | 0
tools/testing/selftests/{vm => mm}/run_vmtests.sh | 0
tools/testing/selftests/{vm => mm}/settings | 0
tools/testing/selftests/{vm => mm}/soft-dirty.c | 0
.../testing/selftests/{vm => mm}/split_huge_page_test.c | 0
tools/testing/selftests/{vm => mm}/test_hmm.sh | 0
tools/testing/selftests/{vm => mm}/test_vmalloc.sh | 0
tools/testing/selftests/{vm => mm}/thuge-gen.c | 0
tools/testing/selftests/{vm => mm}/transhuge-stress.c | 0
tools/testing/selftests/{vm => mm}/userfaultfd.c | 0
tools/testing/selftests/{vm => mm}/util.h | 0
tools/testing/selftests/{vm => mm}/va_128TBswitch.c | 0
tools/testing/selftests/{vm => mm}/va_128TBswitch.sh | 0
.../testing/selftests/{vm => mm}/virtual_address_range.c | 0
tools/testing/selftests/{vm => mm}/vm_util.c | 0
tools/testing/selftests/{vm => mm}/vm_util.h | 0
.../testing/selftests/{vm => mm}/write_hugetlb_memory.sh | 0
tools/testing/selftests/{vm => mm}/write_to_hugetlbfs.c | 0
70 files changed, 22 insertions(+), 21 deletions(-)
rename tools/{vm => mm}/.gitignore (100%)
rename tools/{vm => mm}/Makefile (100%)
rename tools/{vm => mm}/page-types.c (100%)
rename tools/{vm => mm}/page_owner_sort.c (100%)
rename tools/{vm => mm}/slabinfo-gnuplot.sh (100%)
rename tools/{vm => mm}/slabinfo.c (100%)
rename tools/testing/selftests/{vm => mm}/.gitignore (100%)
rename tools/testing/selftests/{vm => mm}/Makefile (100%)
rename tools/testing/selftests/{vm => mm}/charge_reserved_hugetlb.sh (100%)
rename tools/testing/selftests/{vm => mm}/check_config.sh (100%)
rename tools/testing/selftests/{vm => mm}/compaction_test.c (100%)
rename tools/testing/selftests/{vm => mm}/config (100%)
rename tools/testing/selftests/{vm => mm}/cow.c (100%)
rename tools/testing/selftests/{vm => mm}/gup_test.c (100%)
rename tools/testing/selftests/{vm => mm}/hmm-tests.c (100%)
rename tools/testing/selftests/{vm => mm}/hugepage-mmap.c (100%)
rename tools/testing/selftests/{vm => mm}/hugepage-mremap.c (100%)
rename tools/testing/selftests/{vm => mm}/hugepage-shm.c (100%)
rename tools/testing/selftests/{vm => mm}/hugepage-vmemmap.c (100%)
rename tools/testing/selftests/{vm => mm}/hugetlb-madvise.c (100%)
rename tools/testing/selftests/{vm => mm}/hugetlb_reparenting_test.sh (100%)
rename tools/testing/selftests/{vm => mm}/khugepaged.c (100%)
rename tools/testing/selftests/{vm => mm}/ksm_functional_tests.c (100%)
rename tools/testing/selftests/{vm => mm}/ksm_tests.c (100%)
rename tools/testing/selftests/{vm => mm}/madv_populate.c (100%)
rename tools/testing/selftests/{vm => mm}/map_fixed_noreplace.c (100%)
rename tools/testing/selftests/{vm => mm}/map_hugetlb.c (100%)
rename tools/testing/selftests/{vm => mm}/map_populate.c (100%)
rename tools/testing/selftests/{vm => mm}/memfd_secret.c (100%)
rename tools/testing/selftests/{vm => mm}/migration.c (100%)
rename tools/testing/selftests/{vm => mm}/mlock-random-test.c (100%)
rename tools/testing/selftests/{vm => mm}/mlock2-tests.c (100%)
rename tools/testing/selftests/{vm => mm}/mlock2.h (100%)
rename tools/testing/selftests/{vm => mm}/mrelease_test.c (100%)
rename tools/testing/selftests/{vm => mm}/mremap_dontunmap.c (100%)
rename tools/testing/selftests/{vm => mm}/mremap_test.c (100%)
rename tools/testing/selftests/{vm => mm}/on-fault-limit.c (100%)
rename tools/testing/selftests/{vm => mm}/pkey-helpers.h (100%)
rename tools/testing/selftests/{vm => mm}/pkey-powerpc.h (100%)
rename tools/testing/selftests/{vm => mm}/pkey-x86.h (100%)
rename tools/testing/selftests/{vm => mm}/protection_keys.c (100%)
rename tools/testing/selftests/{vm => mm}/run_vmtests.sh (100%)
rename tools/testing/selftests/{vm => mm}/settings (100%)
rename tools/testing/selftests/{vm => mm}/soft-dirty.c (100%)
rename tools/testing/selftests/{vm => mm}/split_huge_page_test.c (100%)
rename tools/testing/selftests/{vm => mm}/test_hmm.sh (100%)
rename tools/testing/selftests/{vm => mm}/test_vmalloc.sh (100%)
rename tools/testing/selftests/{vm => mm}/thuge-gen.c (100%)
rename tools/testing/selftests/{vm => mm}/transhuge-stress.c (100%)
rename tools/testing/selftests/{vm => mm}/userfaultfd.c (100%)
rename tools/testing/selftests/{vm => mm}/util.h (100%)
rename tools/testing/selftests/{vm => mm}/va_128TBswitch.c (100%)
rename tools/testing/selftests/{vm => mm}/va_128TBswitch.sh (100%)
rename tools/testing/selftests/{vm => mm}/virtual_address_range.c (100%)
rename tools/testing/selftests/{vm => mm}/vm_util.c (100%)
rename tools/testing/selftests/{vm => mm}/vm_util.h (100%)
rename tools/testing/selftests/{vm => mm}/write_hugetlb_memory.sh (100%)
rename tools/testing/selftests/{vm => mm}/write_to_hugetlbfs.c (100%)Signature · 1 line
2.25.1
PATCH 1/5 MAINTAINERS: add types to akpm/mm git trees entries
Each SCM tree entry of MAINTAINERS file should have both type and location, but akpm/mm git tree entries of 'MEMORY MANAGEMENT' and 'VMALLOC' sections of the file don't have the type. Add the type.
--- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
MAINTAINERS +2 -2
@@ -13474,7 +13474,7 @@ M: Andrew Morton <[email protected]> L: [email protected] S: Maintained W: http://www.linux-mm.org -T: git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm +T: git git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm T: quilt git://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new F: include/linux/gfp.h F: include/linux/gfp_types.h
@@ -13492,7 +13492,7 @@ R: Christoph Hellwig <[email protected]> L: [email protected] S: Maintained W: http://www.linux-mm.org -T: git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm +T: git git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm F: include/linux/vmalloc.h F: mm/vmalloc.c
Signature · 1 line
2.25.1
PATCH 2/5 MAINTAINERS/MEMORY MANAGEMENT: Add tools/vm/ as managed files
In reply to SeongJae Park'tools/vm/' directory should be a part of memory management subsystem, but MAINTAINERS file doesn't mark the directory so. Add one more 'F:' entry for the directory to 'MEMORY MANAGEMENT' section.
--- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)
MAINTAINERS +1 -0
@@ -13484,6 +13484,7 @@ F: include/linux/mmzone.h F: include/linux/pagewalk.h F: mm/ F: tools/testing/selftests/vm/ +F: tools/vm/ VMALLOC M: Andrew Morton <[email protected]>
Signature · 1 line
2.25.1
PATCH 3/5 tools/vm: rename tools/vm to tools/mm
In reply to SeongJae ParkRename tools/vm to tools/mm for being more consistent with the code and documentation directories, and won't be confused with virtual machines.
---
Documentation/admin-guide/mm/idle_page_tracking.rst | 2 +-
Documentation/admin-guide/mm/pagemap.rst | 4 ++--
Documentation/mm/page_owner.rst | 2 +-
Documentation/mm/slub.rst | 2 +-
Documentation/translations/zh_CN/mm/page_owner.rst | 2 +-
MAINTAINERS | 2 +-
mm/Kconfig.debug | 2 +-
mm/memory-failure.c | 2 +-
tools/{vm => mm}/.gitignore | 0
tools/{vm => mm}/Makefile | 0
tools/{vm => mm}/page-types.c | 0
tools/{vm => mm}/page_owner_sort.c | 0
tools/{vm => mm}/slabinfo-gnuplot.sh | 0
tools/{vm => mm}/slabinfo.c | 0
14 files changed, 9 insertions(+), 9 deletions(-)
rename tools/{vm => mm}/.gitignore (100%)
rename tools/{vm => mm}/Makefile (100%)
rename tools/{vm => mm}/page-types.c (100%)
rename tools/{vm => mm}/page_owner_sort.c (100%)
rename tools/{vm => mm}/slabinfo-gnuplot.sh (100%)
rename tools/{vm => mm}/slabinfo.c (100%)Documentation/admin-guide/mm/idle_page_tracking.rst +1 -1
@@ -65,7 +65,7 @@ workload one should: are not reclaimable, he or she can filter them out using ``/proc/kpageflags``. -The page-types tool in the tools/vm directory can be used to assist in this. +The page-types tool in the tools/mm directory can be used to assist in this. If the tool is run initially with the appropriate option, it will mark all the queried pages as idle. Subsequent runs of the tool can then show which pages have their idle flag cleared in the interim.
Documentation/admin-guide/mm/pagemap.rst +2 -2
@@ -46,7 +46,7 @@ There are four components to pagemap: * ``/proc/kpagecount``. This file contains a 64-bit count of the number of times each page is mapped, indexed by PFN. -The page-types tool in the tools/vm directory can be used to query the +The page-types tool in the tools/mm directory can be used to query the number of times a page is mapped. * ``/proc/kpageflags``. This file contains a 64-bit set of flags for each
@@ -173,7 +173,7 @@ LRU related page flags 14 - SWAPBACKED The page is backed by swap/RAM. -The page-types tool in the tools/vm directory can be used to query the +The page-types tool in the tools/mm directory can be used to query the above flags. Using pagemap to do something useful
Documentation/mm/page_owner.rst +1 -1
@@ -61,7 +61,7 @@ Usage 1) Build user-space helper:: - cd tools/vm + cd tools/mm make page_owner_sort 2) Enable page owner: add "page_owner=on" to boot cmdline.
Documentation/mm/slub.rst +1 -1
@@ -21,7 +21,7 @@ slabs that have data in them. See "slabinfo -h" for more options when running the command. ``slabinfo`` can be compiled with :: - gcc -o slabinfo tools/vm/slabinfo.c + gcc -o slabinfo tools/mm/slabinfo.c Some of the modes of operation of ``slabinfo`` require that slub debugging be enabled on the command line. F.e. no tracking information will be
Documentation/translations/zh_CN/mm/page_owner.rst +1 -1
@@ -62,7 +62,7 @@ page owner在默认情况下是禁用的。所以,如果你想使用它,你 1) 构建用户空间的帮助:: - cd tools/vm + cd tools/mm make page_owner_sort 2) 启用page owner: 添加 "page_owner=on" 到 boot cmdline.
MAINTAINERS +1 -1
@@ -13483,8 +13483,8 @@ F: include/linux/mm.h F: include/linux/mmzone.h F: include/linux/pagewalk.h F: mm/ +F: tools/mm/ F: tools/testing/selftests/vm/ -F: tools/vm/ VMALLOC M: Andrew Morton <[email protected]>
mm/Kconfig.debug +1 -1
@@ -90,7 +90,7 @@ config PAGE_OWNER help to find bare alloc_page(s) leaks. Even if you include this feature on your build, it is disabled in default. You should pass "page_owner=on" to boot parameter in order to enable it. Eats - a fair amount of memory if enabled. See tools/vm/page_owner_sort.c + a fair amount of memory if enabled. See tools/mm/page_owner_sort.c for user-space helper. If unsure, say N.
mm/memory-failure.c +1 -1
@@ -24,7 +24,7 @@* - You have a test that can be added to mce-test * https://git.kernel.org/cgit/utils/cpu/mce/mce-test.git/ * - The case actually shows up as a frequent (top 10) page state in -* tools/vm/page-types when running a real workload. +* tools/mm/page-types when running a real workload. * * There are several operations here with exponential complexity because * of unsuitable VM data structures. For example the operation to map back
tools/mm/.gitignore renamed from tools/vm/.gitignore +0 -0
tools/mm/Makefile renamed from tools/vm/Makefile +0 -0
tools/mm/page-types.c renamed from tools/vm/page-types.c +0 -0
tools/mm/page_owner_sort.c renamed from tools/vm/page_owner_sort.c +0 -0
tools/mm/slabinfo-gnuplot.sh renamed from tools/vm/slabinfo-gnuplot.sh +0 -0
tools/mm/slabinfo.c renamed from tools/vm/slabinfo.c +0 -0
Signature · 1 line
2.25.1
Re: [PATCH 3/5] tools/vm: rename tools/vm to tools/mm
Quoted 18 lines · SeongJae Park
Rename
tools/vmtotools/mmfor being more consistent with the code and documentation directories, and won't be confused with virtual machines.Signed-off-by SeongJae Park <[email protected]>--- Documentation/admin-guide/mm/idle_page_tracking.rst | 2 +- Documentation/admin-guide/mm/pagemap.rst | 4 ++-- Documentation/mm/page_owner.rst | 2 +- Documentation/mm/slub.rst | 2 +- Documentation/translations/zh_CN/mm/page_owner.rst | 2 +- MAINTAINERS | 2 +- mm/Kconfig.debug | 2 +- mm/memory-failure.c | 2 +- tools/{vm => mm}/.gitignore | 0 tools/{vm => mm}/Makefile | 0 tools/{vm => mm}/page-types.c | 0 tools/{vm => mm}/page_owner_sort.c | 0 tools/{vm => mm}/slabinfo-gnuplot.sh | 0
Quoted 8 lines
tools/{vm => mm}/slabinfo.c | 0
14 files changed, 9 insertions(+), 9 deletions(-)
rename tools/{vm => mm}/.gitignore (100%)
rename tools/{vm => mm}/Makefile (100%)
rename tools/{vm => mm}/page-types.c (100%)
rename tools/{vm => mm}/page_owner_sort.c (100%)
rename tools/{vm => mm}/slabinfo-gnuplot.sh (100%)
rename tools/{vm => mm}/slabinfo.c (100%)Is there a reason we left the tools/vm directory even though it's empy? Is it for backwards compatability or something?
regards,
dan carpenter
Re: [PATCH 3/5] tools/vm: rename tools/vm to tools/mm
Hello Dan,
Quoted 28 lines · On Mon, 19 Oct 2026 15:36:14 +0300 Dan Carpenter <[email protected]> wrote:
Quoted 18 lines · SeongJae Park
Rename
tools/vmtotools/mmfor being more consistent with the code and documentation directories, and won't be confused with virtual machines.Signed-off-by SeongJae Park <[email protected]>--- Documentation/admin-guide/mm/idle_page_tracking.rst | 2 +- Documentation/admin-guide/mm/pagemap.rst | 4 ++-- Documentation/mm/page_owner.rst | 2 +- Documentation/mm/slub.rst | 2 +- Documentation/translations/zh_CN/mm/page_owner.rst | 2 +- MAINTAINERS | 2 +- mm/Kconfig.debug | 2 +- mm/memory-failure.c | 2 +- tools/{vm => mm}/.gitignore | 0 tools/{vm => mm}/Makefile | 0 tools/{vm => mm}/page-types.c | 0 tools/{vm => mm}/page_owner_sort.c | 0 tools/{vm => mm}/slabinfo-gnuplot.sh | 0Quoted 8 lines
tools/{vm => mm}/slabinfo.c | 0 14 files changed, 9 insertions(+), 9 deletions(-) rename tools/{vm => mm}/.gitignore (100%) rename tools/{vm => mm}/Makefile (100%) rename tools/{vm => mm}/page-types.c (100%) rename tools/{vm => mm}/page_owner_sort.c (100%) rename tools/{vm => mm}/slabinfo-gnuplot.sh (100%) rename tools/{vm => mm}/slabinfo.c (100%)
Quoted 2 lines
Is there a reason we left the
tools/vmdirectory even though it's empy? Is it for backwards compatability or something?
No, I think this patch didn't leave tools/vm/. I cannot see that on my tree:
$ git log -1 799fb82aa132fa3a3886b7872997a5a84e820062
commit 799fb82aa132fa3a3886b7872997a5a84e820062 (HEAD)
Author: SeongJae Park <[email protected]>
Date: Tue Jan 3 18:07:52 2023 +0000 tools/vm: rename tools/vm to tools/mm
Rename tools/vm to tools/mm for being more consistent with the code and documentation directories, and won't be confused with virtual machines.
$ git show 799fb82aa132fa3a3886b7872997a5a84e820062:tools/vm
fatal: path 'tools/vm' does not exist in '799fb82aa132fa3a3886b7872997a5a84e820062'
If your local tree has some git-untracked hidden files under tools/vm/ directory, the directory might not be removed. That could made you think this patch left the directory?
Thanks,
SJ
[...]
Re: [PATCH 3/5] tools/vm: rename tools/vm to tools/mm
Quoted 52 lines · SJ Park
Hello Dan,
Quoted 28 lines · On Mon, 19 Oct 2026 15:36:14 +0300 Dan Carpenter <[email protected]> wrote:
Quoted 18 lines · SeongJae Park
Rename
tools/vmtotools/mmfor being more consistent with the code and documentation directories, and won't be confused with virtual machines.Signed-off-by SeongJae Park <[email protected]>--- Documentation/admin-guide/mm/idle_page_tracking.rst | 2 +- Documentation/admin-guide/mm/pagemap.rst | 4 ++-- Documentation/mm/page_owner.rst | 2 +- Documentation/mm/slub.rst | 2 +- Documentation/translations/zh_CN/mm/page_owner.rst | 2 +- MAINTAINERS | 2 +- mm/Kconfig.debug | 2 +- mm/memory-failure.c | 2 +- tools/{vm => mm}/.gitignore | 0 tools/{vm => mm}/Makefile | 0 tools/{vm => mm}/page-types.c | 0 tools/{vm => mm}/page_owner_sort.c | 0 tools/{vm => mm}/slabinfo-gnuplot.sh | 0Quoted 8 lines
tools/{vm => mm}/slabinfo.c | 0 14 files changed, 9 insertions(+), 9 deletions(-) rename tools/{vm => mm}/.gitignore (100%) rename tools/{vm => mm}/Makefile (100%) rename tools/{vm => mm}/page-types.c (100%) rename tools/{vm => mm}/page_owner_sort.c (100%) rename tools/{vm => mm}/slabinfo-gnuplot.sh (100%) rename tools/{vm => mm}/slabinfo.c (100%)Quoted 2 lines
Is there a reason we left the
tools/vmdirectory even though it's empy? Is it for backwards compatability or something?No, I think this patch didn't leave
tools/vm/. I cannot see that on my tree:$ git log -1 799fb82aa132fa3a3886b7872997a5a84e820062 commit 799fb82aa132fa3a3886b7872997a5a84e820062 (HEAD) Author: SeongJae Park <[email protected]> Date: Tue Jan 3 18:07:52 2023 +0000
tools/vm: renametools/vmtotools/mmRename
tools/vmtotools/mmfor being more consistent with the code and documentation directories, and won't be confused with virtual machines.Signed-off-by SeongJae Park <[email protected]>Cc Jonathan Corbet <[email protected]>Cc Shuah Khan <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Quoted 6 lines
$ git show 799fb82aa132fa3a3886b7872997a5a84e820062:tools/vm
fatal: path 'tools/vm' does not exist in '799fb82aa132fa3a3886b7872997a5a84e820062'If your local tree has some git-untracked hidden files under
tools/vm/directory, the directory might not be removed. That could made you think this patch left the directory?
Ah, yeah, you're right.
What happened was ChatGPT told me to type:
make -C tools/testing/selftests/ TARGETS="vm" run_tests
That command is outdated since it's supposed to be mm instead of vm but it creates an empty vm directory... PEBKAC on me.
regards,
dan carpenter
PATCH 4/5 selftests/vm: rename selftets/vm to selftests/mm
In reply to SeongJae ParkRename selftets/vm to selftests/mm for being more consistent with the code, documentation, and tools directories, and won't be confused with virtual machines.
---
Documentation/admin-guide/mm/hugetlbpage.rst | 6 +++---
Documentation/core-api/pin_user_pages.rst | 2 +-
MAINTAINERS | 4 ++--
mm/Kconfig | 2 +-
tools/testing/selftests/{vm => mm}/.gitignore | 0
tools/testing/selftests/{vm => mm}/Makefile | 0
.../testing/selftests/{vm => mm}/charge_reserved_hugetlb.sh | 0
tools/testing/selftests/{vm => mm}/check_config.sh | 0
tools/testing/selftests/{vm => mm}/compaction_test.c | 0
tools/testing/selftests/{vm => mm}/config | 0
tools/testing/selftests/{vm => mm}/cow.c | 0
tools/testing/selftests/{vm => mm}/gup_test.c | 0
tools/testing/selftests/{vm => mm}/hmm-tests.c | 0
tools/testing/selftests/{vm => mm}/hugepage-mmap.c | 0
tools/testing/selftests/{vm => mm}/hugepage-mremap.c | 0
tools/testing/selftests/{vm => mm}/hugepage-shm.c | 0
tools/testing/selftests/{vm => mm}/hugepage-vmemmap.c | 0
tools/testing/selftests/{vm => mm}/hugetlb-madvise.c | 0
.../selftests/{vm => mm}/hugetlb_reparenting_test.sh | 0
tools/testing/selftests/{vm => mm}/khugepaged.c | 0
tools/testing/selftests/{vm => mm}/ksm_functional_tests.c | 0
tools/testing/selftests/{vm => mm}/ksm_tests.c | 0
tools/testing/selftests/{vm => mm}/madv_populate.c | 0
tools/testing/selftests/{vm => mm}/map_fixed_noreplace.c | 0
tools/testing/selftests/{vm => mm}/map_hugetlb.c | 0
tools/testing/selftests/{vm => mm}/map_populate.c | 0
tools/testing/selftests/{vm => mm}/memfd_secret.c | 0
tools/testing/selftests/{vm => mm}/migration.c | 0
tools/testing/selftests/{vm => mm}/mlock-random-test.c | 0
tools/testing/selftests/{vm => mm}/mlock2-tests.c | 0
tools/testing/selftests/{vm => mm}/mlock2.h | 0
tools/testing/selftests/{vm => mm}/mrelease_test.c | 0
tools/testing/selftests/{vm => mm}/mremap_dontunmap.c | 0
tools/testing/selftests/{vm => mm}/mremap_test.c | 0
tools/testing/selftests/{vm => mm}/on-fault-limit.c | 0
tools/testing/selftests/{vm => mm}/pkey-helpers.h | 0
tools/testing/selftests/{vm => mm}/pkey-powerpc.h | 0
tools/testing/selftests/{vm => mm}/pkey-x86.h | 0
tools/testing/selftests/{vm => mm}/protection_keys.c | 0
tools/testing/selftests/{vm => mm}/run_vmtests.sh | 0
tools/testing/selftests/{vm => mm}/settings | 0
tools/testing/selftests/{vm => mm}/soft-dirty.c | 0
tools/testing/selftests/{vm => mm}/split_huge_page_test.c | 0
tools/testing/selftests/{vm => mm}/test_hmm.sh | 0
tools/testing/selftests/{vm => mm}/test_vmalloc.sh | 0
tools/testing/selftests/{vm => mm}/thuge-gen.c | 0
tools/testing/selftests/{vm => mm}/transhuge-stress.c | 0
tools/testing/selftests/{vm => mm}/userfaultfd.c | 0
tools/testing/selftests/{vm => mm}/util.h | 0
tools/testing/selftests/{vm => mm}/va_128TBswitch.c | 0
tools/testing/selftests/{vm => mm}/va_128TBswitch.sh | 0
tools/testing/selftests/{vm => mm}/virtual_address_range.c | 0
tools/testing/selftests/{vm => mm}/vm_util.c | 0
tools/testing/selftests/{vm => mm}/vm_util.h | 0
tools/testing/selftests/{vm => mm}/write_hugetlb_memory.sh | 0
tools/testing/selftests/{vm => mm}/write_to_hugetlbfs.c | 0
56 files changed, 7 insertions(+), 7 deletions(-)
rename tools/testing/selftests/{vm => mm}/.gitignore (100%)
rename tools/testing/selftests/{vm => mm}/Makefile (100%)
rename tools/testing/selftests/{vm => mm}/charge_reserved_hugetlb.sh (100%)
rename tools/testing/selftests/{vm => mm}/check_config.sh (100%)
rename tools/testing/selftests/{vm => mm}/compaction_test.c (100%)
rename tools/testing/selftests/{vm => mm}/config (100%)
rename tools/testing/selftests/{vm => mm}/cow.c (100%)
rename tools/testing/selftests/{vm => mm}/gup_test.c (100%)
rename tools/testing/selftests/{vm => mm}/hmm-tests.c (100%)
rename tools/testing/selftests/{vm => mm}/hugepage-mmap.c (100%)
rename tools/testing/selftests/{vm => mm}/hugepage-mremap.c (100%)
rename tools/testing/selftests/{vm => mm}/hugepage-shm.c (100%)
rename tools/testing/selftests/{vm => mm}/hugepage-vmemmap.c (100%)
rename tools/testing/selftests/{vm => mm}/hugetlb-madvise.c (100%)
rename tools/testing/selftests/{vm => mm}/hugetlb_reparenting_test.sh (100%)
rename tools/testing/selftests/{vm => mm}/khugepaged.c (100%)
rename tools/testing/selftests/{vm => mm}/ksm_functional_tests.c (100%)
rename tools/testing/selftests/{vm => mm}/ksm_tests.c (100%)
rename tools/testing/selftests/{vm => mm}/madv_populate.c (100%)
rename tools/testing/selftests/{vm => mm}/map_fixed_noreplace.c (100%)
rename tools/testing/selftests/{vm => mm}/map_hugetlb.c (100%)
rename tools/testing/selftests/{vm => mm}/map_populate.c (100%)
rename tools/testing/selftests/{vm => mm}/memfd_secret.c (100%)
rename tools/testing/selftests/{vm => mm}/migration.c (100%)
rename tools/testing/selftests/{vm => mm}/mlock-random-test.c (100%)
rename tools/testing/selftests/{vm => mm}/mlock2-tests.c (100%)
rename tools/testing/selftests/{vm => mm}/mlock2.h (100%)
rename tools/testing/selftests/{vm => mm}/mrelease_test.c (100%)
rename tools/testing/selftests/{vm => mm}/mremap_dontunmap.c (100%)
rename tools/testing/selftests/{vm => mm}/mremap_test.c (100%)
rename tools/testing/selftests/{vm => mm}/on-fault-limit.c (100%)
rename tools/testing/selftests/{vm => mm}/pkey-helpers.h (100%)
rename tools/testing/selftests/{vm => mm}/pkey-powerpc.h (100%)
rename tools/testing/selftests/{vm => mm}/pkey-x86.h (100%)
rename tools/testing/selftests/{vm => mm}/protection_keys.c (100%)
rename tools/testing/selftests/{vm => mm}/run_vmtests.sh (100%)
rename tools/testing/selftests/{vm => mm}/settings (100%)
rename tools/testing/selftests/{vm => mm}/soft-dirty.c (100%)
rename tools/testing/selftests/{vm => mm}/split_huge_page_test.c (100%)
rename tools/testing/selftests/{vm => mm}/test_hmm.sh (100%)
rename tools/testing/selftests/{vm => mm}/test_vmalloc.sh (100%)
rename tools/testing/selftests/{vm => mm}/thuge-gen.c (100%)
rename tools/testing/selftests/{vm => mm}/transhuge-stress.c (100%)
rename tools/testing/selftests/{vm => mm}/userfaultfd.c (100%)
rename tools/testing/selftests/{vm => mm}/util.h (100%)
rename tools/testing/selftests/{vm => mm}/va_128TBswitch.c (100%)
rename tools/testing/selftests/{vm => mm}/va_128TBswitch.sh (100%)
rename tools/testing/selftests/{vm => mm}/virtual_address_range.c (100%)
rename tools/testing/selftests/{vm => mm}/vm_util.c (100%)
rename tools/testing/selftests/{vm => mm}/vm_util.h (100%)
rename tools/testing/selftests/{vm => mm}/write_hugetlb_memory.sh (100%)
rename tools/testing/selftests/{vm => mm}/write_to_hugetlbfs.c (100%)Documentation/admin-guide/mm/hugetlbpage.rst +3 -3
@@ -461,13 +461,13 @@ Examples .. _map_hugetlb: ``map_hugetlb`` - see tools/testing/selftests/vm/map_hugetlb.c + see tools/testing/selftests/mm/map_hugetlb.c ``hugepage-shm`` - see tools/testing/selftests/vm/hugepage-shm.c + see tools/testing/selftests/mm/hugepage-shm.c ``hugepage-mmap`` - see tools/testing/selftests/vm/hugepage-mmap.c + see tools/testing/selftests/mm/hugepage-mmap.c The `libhugetlbfs`_ library provides a wide range of userspace tools to help with huge page usability, environment setup, and control.
Documentation/core-api/pin_user_pages.rst +1 -1
@@ -221,7 +221,7 @@ Unit testing ============ This file:: - tools/testing/selftests/vm/gup_test.c + tools/testing/selftests/mm/gup_test.c has the following new calls to exercise the new pin*() wrapper functions:
MAINTAINERS +2 -2
@@ -9466,7 +9466,7 @@ F: Documentation/mm/hmm.rst F: include/linux/hmm* F: lib/test_hmm* F: mm/hmm* -F: tools/testing/selftests/vm/*hmm* +F: tools/testing/selftests/mm/*hmm* HOST AP DRIVER M: Jouni Malinen <[email protected]>
@@ -13484,7 +13484,7 @@ F: include/linux/mmzone.h F: include/linux/pagewalk.h F: mm/ F: tools/mm/ -F: tools/testing/selftests/vm/ +F: tools/testing/selftests/mm/ VMALLOC M: Andrew Morton <[email protected]>
mm/Kconfig +1 -1
@@ -1073,7 +1073,7 @@ config GUP_TEST pin_user_pages*(), or pinned via get_user_pages*(), as specified by other command line arguments. - See tools/testing/selftests/vm/gup_test.c + See tools/testing/selftests/mm/gup_test.c comment "GUP_TEST needs to have DEBUG_FS enabled" depends on !GUP_TEST && !DEBUG_FS
tools/testing/selftests/mm/.gitignore renamed from tools/testing/selftests/vm/.gitignore +0 -0
tools/testing/selftests/mm/Makefile renamed from tools/testing/selftests/vm/Makefile +0 -0
tools/testing/selftests/mm/charge_reserved_hugetlb.sh renamed from tools/testing/selftests/vm/charge_reserved_hugetlb.sh +0 -0
tools/testing/selftests/mm/check_config.sh renamed from tools/testing/selftests/vm/check_config.sh +0 -0
tools/testing/selftests/mm/compaction_test.c renamed from tools/testing/selftests/vm/compaction_test.c +0 -0
tools/testing/selftests/mm/config renamed from tools/testing/selftests/vm/config +0 -0
tools/testing/selftests/mm/cow.c renamed from tools/testing/selftests/vm/cow.c +0 -0
tools/testing/selftests/mm/gup_test.c renamed from tools/testing/selftests/vm/gup_test.c +0 -0
tools/testing/selftests/mm/hmm-tests.c renamed from tools/testing/selftests/vm/hmm-tests.c +0 -0
tools/testing/selftests/mm/hugepage-mmap.c renamed from tools/testing/selftests/vm/hugepage-mmap.c +0 -0
tools/testing/selftests/mm/hugepage-mremap.c renamed from tools/testing/selftests/vm/hugepage-mremap.c +0 -0
tools/testing/selftests/mm/hugepage-shm.c renamed from tools/testing/selftests/vm/hugepage-shm.c +0 -0
tools/testing/selftests/mm/hugepage-vmemmap.c renamed from tools/testing/selftests/vm/hugepage-vmemmap.c +0 -0
tools/testing/selftests/mm/hugetlb-madvise.c renamed from tools/testing/selftests/vm/hugetlb-madvise.c +0 -0
tools/testing/selftests/mm/hugetlb_reparenting_test.sh renamed from tools/testing/selftests/vm/hugetlb_reparenting_test.sh +0 -0
tools/testing/selftests/mm/khugepaged.c renamed from tools/testing/selftests/vm/khugepaged.c +0 -0
tools/testing/selftests/mm/ksm_functional_tests.c renamed from tools/testing/selftests/vm/ksm_functional_tests.c +0 -0
tools/testing/selftests/mm/ksm_tests.c renamed from tools/testing/selftests/vm/ksm_tests.c +0 -0
tools/testing/selftests/mm/madv_populate.c renamed from tools/testing/selftests/vm/madv_populate.c +0 -0
tools/testing/selftests/mm/map_fixed_noreplace.c renamed from tools/testing/selftests/vm/map_fixed_noreplace.c +0 -0
tools/testing/selftests/mm/map_hugetlb.c renamed from tools/testing/selftests/vm/map_hugetlb.c +0 -0
tools/testing/selftests/mm/map_populate.c renamed from tools/testing/selftests/vm/map_populate.c +0 -0
tools/testing/selftests/mm/memfd_secret.c renamed from tools/testing/selftests/vm/memfd_secret.c +0 -0
tools/testing/selftests/mm/migration.c renamed from tools/testing/selftests/vm/migration.c +0 -0
tools/testing/selftests/mm/mlock-random-test.c renamed from tools/testing/selftests/vm/mlock-random-test.c +0 -0
tools/testing/selftests/mm/mlock2-tests.c renamed from tools/testing/selftests/vm/mlock2-tests.c +0 -0
tools/testing/selftests/mm/mlock2.h renamed from tools/testing/selftests/vm/mlock2.h +0 -0
tools/testing/selftests/mm/mrelease_test.c renamed from tools/testing/selftests/vm/mrelease_test.c +0 -0
tools/testing/selftests/mm/mremap_dontunmap.c renamed from tools/testing/selftests/vm/mremap_dontunmap.c +0 -0
tools/testing/selftests/mm/mremap_test.c renamed from tools/testing/selftests/vm/mremap_test.c +0 -0
tools/testing/selftests/mm/on-fault-limit.c renamed from tools/testing/selftests/vm/on-fault-limit.c +0 -0
tools/testing/selftests/mm/pkey-helpers.h renamed from tools/testing/selftests/vm/pkey-helpers.h +0 -0
tools/testing/selftests/mm/pkey-powerpc.h renamed from tools/testing/selftests/vm/pkey-powerpc.h +0 -0
tools/testing/selftests/mm/pkey-x86.h renamed from tools/testing/selftests/vm/pkey-x86.h +0 -0
tools/testing/selftests/mm/protection_keys.c renamed from tools/testing/selftests/vm/protection_keys.c +0 -0
tools/testing/selftests/mm/run_vmtests.sh renamed from tools/testing/selftests/vm/run_vmtests.sh +0 -0
tools/testing/selftests/mm/settings renamed from tools/testing/selftests/vm/settings +0 -0
tools/testing/selftests/mm/soft-dirty.c renamed from tools/testing/selftests/vm/soft-dirty.c +0 -0
tools/testing/selftests/mm/split_huge_page_test.c renamed from tools/testing/selftests/vm/split_huge_page_test.c +0 -0
tools/testing/selftests/mm/test_hmm.sh renamed from tools/testing/selftests/vm/test_hmm.sh +0 -0
tools/testing/selftests/mm/test_vmalloc.sh renamed from tools/testing/selftests/vm/test_vmalloc.sh +0 -0
tools/testing/selftests/mm/thuge-gen.c renamed from tools/testing/selftests/vm/thuge-gen.c +0 -0
tools/testing/selftests/mm/transhuge-stress.c renamed from tools/testing/selftests/vm/transhuge-stress.c +0 -0
tools/testing/selftests/mm/userfaultfd.c renamed from tools/testing/selftests/vm/userfaultfd.c +0 -0
tools/testing/selftests/mm/util.h renamed from tools/testing/selftests/vm/util.h +0 -0
tools/testing/selftests/mm/va_128TBswitch.c renamed from tools/testing/selftests/vm/va_128TBswitch.c +0 -0
tools/testing/selftests/mm/va_128TBswitch.sh renamed from tools/testing/selftests/vm/va_128TBswitch.sh +0 -0
tools/testing/selftests/mm/virtual_address_range.c renamed from tools/testing/selftests/vm/virtual_address_range.c +0 -0
tools/testing/selftests/mm/vm_util.c renamed from tools/testing/selftests/vm/vm_util.c +0 -0
tools/testing/selftests/mm/vm_util.h renamed from tools/testing/selftests/vm/vm_util.h +0 -0
tools/testing/selftests/mm/write_hugetlb_memory.sh renamed from tools/testing/selftests/vm/write_hugetlb_memory.sh +0 -0
tools/testing/selftests/mm/write_to_hugetlbfs.c renamed from tools/testing/selftests/vm/write_to_hugetlbfs.c +0 -0
Signature · 1 line
2.25.1
PATCH 5/5 Docs/admin-guide/mm/numaperf: increase depth of subsections
In reply to SeongJae ParkEach section of numaperf.rst has zero depth, and therefore be exposed to the index of admin-guide/mm. Especially 'See Also' section on the index makes the document weird. Hide the sections from the index by giving the document a title and increasing the depth of each section.
--- Documentation/admin-guide/mm/numaperf.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
Documentation/admin-guide/mm/numaperf.rst +4 -4
@@ -1,6 +1,9 @@ .. _numaperf: -============= +================ +NUMA Performance +================ + NUMA Locality =============
@@ -61,7 +64,6 @@ that are CPUs and hence suitable for generic task scheduling, and IO initiators such as GPUs and NICs. Unlike access class 0, only nodes containing CPUs are considered. -================ NUMA Performance ================
@@ -96,7 +98,6 @@ for the platform. Access class 1 takes the same form but only includes values for CPU to memory activity. -========== NUMA Cache ==========
@@ -170,7 +171,6 @@ The "size" is the number of bytes provided by this cache level. The "write_policy" will be 0 for write-back, and non-zero for write-through caching. -======== See Also ========
Signature · 1 line
2.25.1