]> git.baikalelectronics.ru Git - kernel.git/commit
thp: improve order in lru list for split huge page
authorShaohua Li <shaohua.li@intel.com>
Fri, 13 Jan 2012 01:19:18 +0000 (17:19 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Jan 2012 04:13:08 +0000 (20:13 -0800)
commit1e603779c4dae2a76f0ba92f83a8d63aff362e84
treee1a5222c4c7b439cb6a27ace0e36e0280f8b7870
parenteb369a8dcf98acc978d2eda6def551589bde4f6f
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/huge_memory.c
mm/swap.c