diff options
| author | Kirill A. Shutemov <[email protected]> | 2016-02-03 00:57:12 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2016-02-03 16:28:43 +0000 |
| commit | cb8d68ec16a511f8be7e1028fd8f869ef7c6a1a8 (patch) | |
| tree | bca734285ef34b21cbdc7d3c3873981c41c76d4e /lib/test-string_helpers.c | |
| parent | thp: make split_queue per-node (diff) | |
| download | kernel-cb8d68ec16a511f8be7e1028fd8f869ef7c6a1a8.tar.gz kernel-cb8d68ec16a511f8be7e1028fd8f869ef7c6a1a8.zip | |
thp: change deferred_split_count() to return number of THP in queue
I've got meaning of shrinker::count_objects() wrong: it should return
number of potentially freeable objects, which is not necessary correlate
with freeable memory.
Returning 256 per THP in queue is not reasonable:
shrinker::scan_objects() never called with nr_to_scan > 128 in my setup.
Let's return 1 per THP and correct scan_object accordingly.
Signed-off-by: Kirill A. Shutemov <[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 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions
