]> 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, 2 Dec 2011 03:13:08 +0000 (14:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 7 Dec 2011 05:33:11 +0000 (16:33 +1100)
commit1abd17b5de362628bec8d0dbffcdca4795b67acf
tree6c793a8ce3be30c9b6cda9cdc7737a7c67927c9e
parenta1c96927bdf1ea00b60ccaa0e050c2c8a5f2ed80
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