Re: [RFC PATCH 25/26] mm: page_alloc: disallow fallbacks when 2M defrag is enabled
From: Mel Gorman
Date: Fri Apr 21 2023 - 10:57:05 EST
On Tue, Apr 18, 2023 at 03:13:12PM -0400, Johannes Weiner wrote:
> Fallbacks are already unlikely due to watermarks being enforced
> against MIGRATE_FREE blocks. Eliminate them altogether. This allows
> compaction to look exclusively at movable blocks, reducing the number
> of pageblocks it needs to scan on an ongoing basis.
>
> Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx>
Conceptually this could be fun if a GFP_NOFS allocation cannot migrate
enough memory to free one pageblock and there are no pageblocks
available of the correct migratetype. Fallbacks might be unlikely but
never being able to fallback is a livelock risk, no?
--
Mel Gorman
SUSE Labs