mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	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. Link: https://lkml.kernel.org/r/20230103180754.129637-4-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Cc: Jonathan Corbet <corbet@lwn.net> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
		
							parent
							
								
									060deca404
								
							
						
					
					
						commit
						799fb82aa1
					
				
					 14 changed files with 9 additions and 9 deletions
				
			
		| 
						 | 
					@ -65,7 +65,7 @@ workload one should:
 | 
				
			||||||
    are not reclaimable, he or she can filter them out using
 | 
					    are not reclaimable, he or she can filter them out using
 | 
				
			||||||
    ``/proc/kpageflags``.
 | 
					    ``/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
 | 
					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
 | 
					queried pages as idle.  Subsequent runs of the tool can then show which pages have
 | 
				
			||||||
their idle flag cleared in the interim.
 | 
					their idle flag cleared in the interim.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -46,7 +46,7 @@ There are four components to pagemap:
 | 
				
			||||||
 * ``/proc/kpagecount``.  This file contains a 64-bit count of the number of
 | 
					 * ``/proc/kpagecount``.  This file contains a 64-bit count of the number of
 | 
				
			||||||
   times each page is mapped, indexed by PFN.
 | 
					   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.
 | 
					number of times a page is mapped.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 * ``/proc/kpageflags``.  This file contains a 64-bit set of flags for each
 | 
					 * ``/proc/kpageflags``.  This file contains a 64-bit set of flags for each
 | 
				
			||||||
| 
						 | 
					@ -173,7 +173,7 @@ LRU related page flags
 | 
				
			||||||
14 - SWAPBACKED
 | 
					14 - SWAPBACKED
 | 
				
			||||||
   The page is backed by swap/RAM.
 | 
					   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.
 | 
					above flags.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Using pagemap to do something useful
 | 
					Using pagemap to do something useful
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -61,7 +61,7 @@ Usage
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1) Build user-space helper::
 | 
					1) Build user-space helper::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cd tools/vm
 | 
						cd tools/mm
 | 
				
			||||||
	make page_owner_sort
 | 
						make page_owner_sort
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2) Enable page owner: add "page_owner=on" to boot cmdline.
 | 
					2) Enable page owner: add "page_owner=on" to boot cmdline.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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
 | 
					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
 | 
					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
 | 
					be enabled on the command line. F.e. no tracking information will be
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -62,7 +62,7 @@ page owner在默认情况下是禁用的。所以,如果你想使用它,你
 | 
				
			||||||
 | 
					
 | 
				
			||||||
1) 构建用户空间的帮助::
 | 
					1) 构建用户空间的帮助::
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	cd tools/vm
 | 
						cd tools/mm
 | 
				
			||||||
	make page_owner_sort
 | 
						make page_owner_sort
 | 
				
			||||||
 | 
					
 | 
				
			||||||
2) 启用page owner: 添加 "page_owner=on" 到 boot cmdline.
 | 
					2) 启用page owner: 添加 "page_owner=on" 到 boot cmdline.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13483,8 +13483,8 @@ F:	include/linux/mm.h
 | 
				
			||||||
F:	include/linux/mmzone.h
 | 
					F:	include/linux/mmzone.h
 | 
				
			||||||
F:	include/linux/pagewalk.h
 | 
					F:	include/linux/pagewalk.h
 | 
				
			||||||
F:	mm/
 | 
					F:	mm/
 | 
				
			||||||
 | 
					F:	tools/mm/
 | 
				
			||||||
F:	tools/testing/selftests/vm/
 | 
					F:	tools/testing/selftests/vm/
 | 
				
			||||||
F:	tools/vm/
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
VMALLOC
 | 
					VMALLOC
 | 
				
			||||||
M:	Andrew Morton <akpm@linux-foundation.org>
 | 
					M:	Andrew Morton <akpm@linux-foundation.org>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -90,7 +90,7 @@ config PAGE_OWNER
 | 
				
			||||||
	  help to find bare alloc_page(s) leaks. Even if you include this
 | 
						  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
 | 
						  feature on your build, it is disabled in default. You should pass
 | 
				
			||||||
	  "page_owner=on" to boot parameter in order to enable it. Eats
 | 
						  "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.
 | 
						  for user-space helper.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	  If unsure, say N.
 | 
						  If unsure, say N.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -24,7 +24,7 @@
 | 
				
			||||||
 * - You have a test that can be added to mce-test
 | 
					 * - You have a test that can be added to mce-test
 | 
				
			||||||
 *   https://git.kernel.org/cgit/utils/cpu/mce/mce-test.git/
 | 
					 *   https://git.kernel.org/cgit/utils/cpu/mce/mce-test.git/
 | 
				
			||||||
 * - The case actually shows up as a frequent (top 10) page state in
 | 
					 * - 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
 | 
					 * There are several operations here with exponential complexity because
 | 
				
			||||||
 * of unsuitable VM data structures. For example the operation to map back 
 | 
					 * of unsuitable VM data structures. For example the operation to map back 
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										0
									
								
								tools/vm/.gitignore → tools/mm/.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										0
									
								
								tools/vm/.gitignore → tools/mm/.gitignore
									
									
									
									
										vendored
									
									
								
							
		Loading…
	
		Reference in a new issue