linux/include
Shaohua Li 5bc7b8aca9 mm: thp: add split tail pages to shrink page list in page reclaim
In page reclaim, huge page is split.  split_huge_page() adds tail pages
to LRU list.  Since we are reclaiming a huge page, it's better we
reclaim all subpages of the huge page instead of just the head page.
This patch adds split tail pages to shrink page list so the tail pages
can be reclaimed soon.

Before this patch, run a swap workload:
  thp_fault_alloc 3492
  thp_fault_fallback 608
  thp_collapse_alloc 6
  thp_collapse_alloc_failed 0
  thp_split 916

With this patch:
  thp_fault_alloc 4085
  thp_fault_fallback 16
  thp_collapse_alloc 90
  thp_collapse_alloc_failed 0
  thp_split 1272

fallback allocation is reduced a lot.

[akpm@linux-foundation.org: fix CONFIG_SWAP=n build]
Signed-off-by: Shaohua Li <shli@fusionio.com>
Acked-by: Rik van Riel <riel@redhat.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Reviewed-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-04-29 15:54:38 -07:00
..
acpi
asm-generic mm: allow arch code to control the user page table ceiling 2013-04-29 15:54:34 -07:00
clocksource
crypto
drm
keys
linux mm: thp: add split tail pages to shrink page list in page reclaim 2013-04-29 15:54:38 -07:00
math-emu
media
memory
misc
net net: fix incorrect credentials passing 2013-04-20 16:56:42 -04:00
pcmcia
ras
rdma
rxrpc
scsi
sound
target
trace mm: trace filemap add and del 2013-04-29 15:54:28 -07:00
uapi mm: make snapshotting pages for stable writes a per-bio operation 2013-04-29 15:54:33 -07:00
video fbdev: Merge fbdev topic branches 2013-04-15 12:00:38 +03:00
xen xen: drop tracking of IRQ vector 2013-04-16 15:05:45 -04:00
Kbuild