From: Mel Gorman Date: Thu, 15 Nov 2012 01:24:32 +0000 (+0000) Subject: mm: numa: Migrate pages handled during a pmd_numa hinting fault X-Git-Tag: v3.8-rc1~92^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9532fec118d485ea37ab6e3ea372d68cd8b4cd0d;p=pandora-kernel.git mm: numa: Migrate pages handled during a pmd_numa hinting fault 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: Mel Gorman --- Reading git-diff-tree failed