diff options
author | Kirill A. Shutemov <[email protected]> | 2016-02-02 16:57:15 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2016-02-03 08:28:43 -0800 |
commit | e3ae19535c665771e2c03cdd63df9bc4d6b37941 (patch) | |
tree | d25d4a9c455874aac68e34e37d46fcb8d50b05ae /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | cb8d68ec16a511f8be7e1028fd8f869ef7c6a1a8 (diff) |
thp: limit number of object to scan on deferred_split_scan()
If we have a lot of pages in queue to be split, deferred_split_scan()
can spend unreasonable amount of time under spinlock with disabled
interrupts.
Let's cap number of pages to split on scan by sc->nr_to_scan.
Signed-off-by: Kirill A. Shutemov <[email protected]>
Reported-by: Andrea Arcangeli <[email protected]>
Reviewed-by: Andrea Arcangeli <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Cc: "Aneesh Kumar K.V" <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Jerome Marchand <[email protected]>
Cc: Sasha Levin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions