Please sign in to comment.
mm: compaction: introduce sync-light migration for use by compaction
commit a6bc32b upstream. Stable note: Not tracked in Buzilla. This was part of a series that reduced interactivity stalls experienced when THP was enabled. These stalls were particularly noticable when copying data to a USB stick but the experiences for users varied a lot. This patch adds a lightweight sync migrate operation MIGRATE_SYNC_LIGHT mode that avoids writing back pages to backing storage. Async compaction maps to MIGRATE_ASYNC while sync compaction maps to MIGRATE_SYNC_LIGHT. For other migrate_pages users such as memory hotplug, MIGRATE_SYNC is used. This avoids sync compaction stalling for an excessive length of time, particularly when copying files to a USB stick where there might be a large number of dirty pages backed by a filesystem that does not support ->writepages. [email@example.com: This patch is heavily based on Andrea's work] [firstname.lastname@example.org: fix fs/nfs/write.c build] [email@example.com: fix fs/btrfs/disk-io.c build] Signed-off-by: Mel Gorman <firstname.lastname@example.org> Reviewed-by: Rik van Riel <email@example.com> Cc: Andrea Arcangeli <firstname.lastname@example.org> Cc: Minchan Kim <email@example.com> Cc: Dave Jones <firstname.lastname@example.org> Cc: Jan Kara <email@example.com> Cc: Andy Isaacson <firstname.lastname@example.org> Cc: Nai Xia <email@example.com> Cc: Johannes Weiner <firstname.lastname@example.org> Signed-off-by: Andrew Morton <email@example.com> Signed-off-by: Linus Torvalds <firstname.lastname@example.org> Signed-off-by: Ben Hutchings <email@example.com>
- Loading branch information...
Showing with 76 additions and 52 deletions.
Oops, something went wrong.