Skip to content
  • Mel Gorman's avatar
    mm: numa: Migrate pages handled during a pmd_numa hinting fault · 9532fec1
    Mel Gorman authored
    
    
    To say that the PMD handling code was incorrectly transferred from autonuma
    is an understatement. The intention was to handle a PMDs worth of pages
    in the same fault and effectively batch the taking of the PTL and page
    migration. The copied version instead has the impact of clearing a number
    of pte_numa PTE entries and whether any page migration takes place depends
    on racing. This just happens to work in some cases.
    
    This patch handles pte_numa faults in batch when a pmd_numa fault is
    handled. The pages are migrated if they are currently misplaced.
    Essentially this is making an assumption that NUMA locality is
    on a PMD boundary but that could be addressed by only setting
    pmd_numa if all the pages within that PMD are on the same node
    if necessary.
    
    Signed-off-by: default avatarMel Gorman <mgorman@suse.de>
    9532fec1