kernel-hacking-2024-linux-s.../Documentation/vm
Alex Chiang bb86a7338b page-types: exit early when invoked with -d|--describe
On a system with large amount of memory (256GB), invoking page-types can
take quite a long time, which is unreasonable considering the user only
wants a description of the flags:

	# time ./page-types -d 0x10
	0x0000000000000010	____D_____________________________	dirty

	real	0m34.285s
	user	0m1.966s
	sys	0m32.313s

This is because we still walk the entire address range.

Exiting early seems like a reasonble solution:

# time ./page-types -d 0x10
	0x0000000000000010	____D_____________________________	dirty

	real	0m0.007s
	user	0m0.001s
	sys	0m0.005s

Signed-off-by: Alex Chiang <achiang@hp.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: Haicheng Li <haicheng.li@intel.com>
Acked-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-12-15 08:53:11 -08:00
..
.gitignore Documentation/vm/.gitignore: add page-types 2009-09-24 07:20:57 -07:00
00-INDEX hugetlb: add MAP_HUGETLB example 2009-09-22 07:17:42 -07:00
active_mm.txt
balance
hugetlbpage.txt hugetlb: add MAP_HUGETLB example 2009-09-22 07:17:42 -07:00
hwpoison.txt HWPOISON: Add brief hwpoison description to Documentation 2009-10-04 03:23:26 +02:00
ksm.txt ksm: more on default values 2009-10-08 07:36:38 -07:00
locking truncate: new helpers 2009-09-24 08:41:47 -04:00
Makefile
map_hugetlb.c hugetlb: add MAP_HUGETLB example 2009-09-22 07:17:42 -07:00
numa
numa_memory_policy.txt
overcommit-accounting
page-types.c page-types: exit early when invoked with -d|--describe 2009-12-15 08:53:11 -08:00
page_migration
pagemap.txt pagemap: document KPF_KSM and show it in page-types 2009-10-08 07:36:39 -07:00
slabinfo.c Documentation/: fix warnings from -Wmissing-prototypes in HOSTCFLAGS 2009-09-23 07:39:28 -07:00
slub.txt doc: Fix a typo in slub.txt. 2009-12-04 15:39:59 +01:00
unevictable-lru.txt