diff options
| author | Alex Chiang <[email protected]> | 2009-12-14 17:57:54 -0800 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-12-15 08:53:11 -0800 |
| commit | bb86a7338b7a864c03e1736a8d370b10254b0300 (patch) | |
| tree | d671c0725c2332df2a2180b64a7b5957aef7b59b /tools/perf/scripts/python | |
| parent | 9fdcd886ab407dbe3f854579417e6b036222a468 (diff) | |
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 <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: Haicheng Li <[email protected]>
Acked-by: Wu Fengguang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions