RFC compaction scanners rework
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest8 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | mm, compaction: don't mark pageblocks unsuitable when not fully scannedmm/ | +4 | 0 replies | |
| 2/8 | mm, compaction: skip_on_failure only for MIGRATE_MOVABLE allocationsmm/ | +2 | 0 replies | |
| 3/8 | mm, compaction: pass valid_page to isolate_migratepages_blockmm/ | +7 | 0 replies | |
| 4/8 | mm, compaction: skip on isolation failure also in sync compactionmm/ | +8 | 0 replies | |
| 5/8 | mm, compaction: factor out checking if page can be isolated for migrationmm/ | +88 | 0 replies | |
| 6/8 | mm, compaction: prescan before isolating in skip_on_failure modeinclude/ mm/ mm/ +1 more | +108 | 0 replies | |
| 7/8 | mm, compaction: prescan all MIGRATE_MOVABLE pageblocksmm/ | +26 | 0 replies | |
| 8/8 | mm, compaction: replace free scanner with direct freelist allocationinclude/ mm/ mm/ +2 more | +84 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [UNTESTED RFC PATCH 0/8] compaction scanners rework
Hi,
I have been working on this in the past weeks, but probably won't have time to finish and test properly this year. So here's an UNTESTED RFC for those brave enough to test, and also for review comments. I've been focusing on 1-7, and patch 8 is unchanged since the last posting, so Mel's suggestions (wrt fallbacks and scanning pageblock where we get the free page from) from are not included yet.
For context, please see the recent threads [1] [2]. The main goal is to eliminate the reported huge free scanner activity by replacing the scanner with allocation from free lists. This has some dangers of excessive migrations as described in Patch 8 commit log, so the earlier patches try to eliminate most of them by making the migration scanner decide to actually migrate pages only if it looks like it can succeed. This should be benefical even in the current scheme.
[1] https://lkml.kernel.org/r/[email protected]
[2] https://lkml.kernel.org/r/[email protected]
Vlastimil Babka (8):
mm, compaction: don't mark pageblocks unsuitable when not fully
scanned
mm, compaction: skip_on_failure only for MIGRATE_MOVABLE allocations mm, compaction: pass valid_page to isolate_migratepages_block mm, compaction: skip on isolation failure also in sync compaction mm, compaction: factor out checking if page can be isolated for
migration
mm, compaction: prescan before isolating in skip_on_failure mode mm, compaction: prescan all MIGRATE_MOVABLE pageblocks mm, compaction: replace free scanner with direct freelist allocation
include/linux/vm_event_item.h | 2 + mm/compaction.c | 311 ++++++++++++++++++++++++++++++++---------- mm/internal.h | 3 + mm/page_alloc.c | 71 ++++++++++ mm/vmstat.c | 3 + 5 files changed, 316 insertions(+), 74 deletions(-)
Signature · 7 lines
2.15.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>