diff options
| author | Chintan Pandya <[email protected]> | 2018-06-07 17:06:46 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2018-06-07 17:34:35 -0700 |
| commit | 82a2e924ff2c6accbc840dfa46c42b24da457a31 (patch) | |
| tree | ac1421a481d921b4f3c0f748f450502e951da2b6 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 08994b24673b6ae33ee40fc3b5e265c6762848e4 (diff) | |
mm: vmalloc: clean up vunmap to avoid pgtable ops twice
vunmap does page table clear operations twice in the case when
DEBUG_PAGEALLOC_ENABLE_DEFAULT is enabled.
So, clean up the code as that is unintended.
As a perf gain, we save few us. Below ftrace data was obtained while
doing 1 MB of vmalloc/vfree on ARM64 based SoC *without* this patch
applied. After this patch, we can save ~3 us (on 1 extra
vunmap_page_range).
CPU DURATION FUNCTION CALLS
| | | | | | |
6) | __vunmap() {
6) | vmap_debug_free_range() {
6) 3.281 us | vunmap_page_range();
6) + 45.468 us | }
6) 2.760 us | vunmap_page_range();
6) ! 505.105 us | }
[[email protected]: v3]
Link: http://lkml.kernel.org/r/[email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Chintan Pandya <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: Laura Abbott <[email protected]>
Cc: Catalin Marinas <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Florian Fainelli <[email protected]>
Cc: Yisheng Xie <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Wei Yang <[email protected]>
Cc: Byungchul Park <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions