On Thu, Apr 01, 2021 at 11:32:25AM -0700, Dave Hansen wrote: > > From: Dave Hansen <[email protected]> > > This is mostly derived from a patch from Yang Shi: > > > https://lore.kernel.org/linux-mm/[email protected]/ > > Add code to the reclaim path (shrink_page_list()) to "demote" data > to another NUMA node instead of discarding the data. This always > avoids the cost of I/O needed to read the page back in and sometimes > avoids the writeout cost when the pagee is dirty. > > A second pass through shrink_page_list() will be made if any demotions > fail. This essentally falls back to normal reclaim behavior in the > case that demotions fail. Previous versions of this patch may have > simply failed to reclaim pages which were eligible for demotion but > were unable to be demoted in practice. > > Note: This just adds the start of infratructure for migration. It is > actually disabled next to the FIXME in migrate_demote_page_ok(). > > Signed-off-by: Dave Hansen <[email protected]> > Cc: Wei Xu <[email protected]> > Cc: Yang Shi <[email protected]> > Cc: David Rientjes <[email protected]> > Cc: Huang Ying <[email protected]> > Cc: Dan Williams <[email protected]> > Cc: osalvador <[email protected]>
Reviewed-by: Oscar Salvador <[email protected]> -- Oscar Salvador SUSE L3

