summaryrefslogtreecommitdiffstats
path: root/mm/mmap.c
diff options
context:
space:
mode:
authorAlex Chiang2009-12-15 02:57:54 +0100
committerLinus Torvalds2009-12-15 17:53:11 +0100
commitbb86a7338b7a864c03e1736a8d370b10254b0300 (patch)
treed671c0725c2332df2a2180b64a7b5957aef7b59b /mm/mmap.c
parentpage-types: whitespace alignment (diff)
downloadkernel-qcow2-linux-bb86a7338b7a864c03e1736a8d370b10254b0300.tar.gz
kernel-qcow2-linux-bb86a7338b7a864c03e1736a8d370b10254b0300.tar.xz
kernel-qcow2-linux-bb86a7338b7a864c03e1736a8d370b10254b0300.zip
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>
Diffstat (limited to 'mm/mmap.c')
0 files changed, 0 insertions, 0 deletions