diff options
author | Gerald Schaefer <[email protected]> | 2020-07-29 22:22:34 +0200 |
---|---|---|
committer | Heiko Carstens <[email protected]> | 2020-08-11 18:16:13 +0200 |
commit | ba925fa35057a062ac98c3e8138b013ce4ce351c (patch) | |
tree | 90e90da496783eecb3ae5ae33d65773d174bd5dd /scripts/gdb/linux/modules.py | |
parent | f0cbd3b83ed47803df941865f720934c69abb803 (diff) |
s390/gmap: improve THP splitting
During s390_enable_sie(), we need to take care of splitting all qemu user
process THP mappings. This is currently done with follow_page(FOLL_SPLIT),
by simply iterating over all vma ranges, with PAGE_SIZE increment.
This logic is sub-optimal and can result in a lot of unnecessary overhead,
especially when using qemu and ASAN with large shadow map. Ilya reported
significant system slow-down with one CPU busy for a long time and overall
unresponsiveness.
Fix this by using walk_page_vma() and directly calling split_huge_pmd()
only for present pmds, which greatly reduces overhead.
Cc: <[email protected]> # v5.4+
Reported-by: Ilya Leoshkevich <[email protected]>
Tested-by: Ilya Leoshkevich <[email protected]>
Acked-by: Christian Borntraeger <[email protected]>
Signed-off-by: Gerald Schaefer <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions