]> git.karo-electronics.de Git - karo-tx-linux.git/commit
thp: improve order in lru list for split huge page
authorShaohua Li <shaohua.li@intel.com>
Thu, 8 Dec 2011 04:42:49 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 13 Dec 2011 06:43:34 +0000 (17:43 +1100)
commit3c2f780109d3e1f9875fd3a6719b72470a339b99
tree67b5a09076acadbde60684f1d758cde769a1e16f
parentb448a781c49bd5557ee7a4a15cccaafcd67a833b
thp: improve order in lru list for split huge page

Put the tail subpages of an isolated hugepage under splitting in the
lru reclaim head as they supposedly should be isolated too next.

Queues the subpages in physical order in the lru for non isolated
hugepages under splitting. That might provide some theoretical cache
benefit to the buddy allocator later.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Cc: David Rientjes <rientjes@google.com>
Cc: Johannes Weiner <jweiner@redhat.com>
Cc: Minchan Kim <minchan.kim@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c
mm/swap.c