]> 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>
Fri, 16 Dec 2011 04:50:40 +0000 (15:50 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Dec 2011 06:02:03 +0000 (17:02 +1100)
commit7c46239663f659d60e5c6a6a02b15cbc32d53901
treea8d862bfababa7ed301d3dff05c8c214013218d7
parentce8729f7b2197163c89fbdb2d250bcb34e1e3407
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