diff options
author | Baolin Wang <baolin.wang@linux.alibaba.com> | 2023-05-25 15:54:01 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-06-10 02:25:43 +0300 |
commit | a8d13355c660255266ece529e81e6cb26754941a (patch) | |
tree | dfe2bd54483341d923702fd88748062fe565a5ce /mm/shmem.c | |
parent | 447ba88658faa8dbfd29d557daa38b7d88f460ec (diff) | |
download | linux-a8d13355c660255266ece529e81e6cb26754941a.tar.xz |
mm: compaction: skip fast freepages isolation if enough freepages are isolated
I've observed that fast isolation often isolates more pages than
cc->migratepages, and the excess freepages will be released back to the
buddy system. So skip fast freepages isolation if enough freepages are
isolated to save some CPU cycles.
Link: https://lkml.kernel.org/r/f39c2c07f2dba2732fd9c0843572e5bef96f7f67.1685018752.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Mel Gorman <mgorman@techsingularity.net>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions