summaryrefslogtreecommitdiff
path: root/reference/GRAPHICS/linux.gif
diff options
context:
space:
mode:
Diffstat (limited to 'reference/GRAPHICS/linux.gif')
-rw-r--r--reference/GRAPHICS/linux.gifbin0 -> 753 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/reference/GRAPHICS/linux.gif b/reference/GRAPHICS/linux.gif
new file mode 100644
index 0000000..9692555
--- /dev/null
+++ b/reference/GRAPHICS/linux.gif
Binary files differ
9f451dc71dcd002246be48358a473504ad0'>278df9f451dc71dcd002246be48358a473504ad0 (diff)
pagewalk: only split huge pages when necessary
Right now, if a mm_walk has either ->pte_entry or ->pmd_entry set, it will unconditionally split any transparent huge pages it runs in to. In practice, that means that anyone doing a cat /proc/$pid/smaps will unconditionally break down every huge page in the process and depend on khugepaged to re-collapse it later. This is fairly suboptimal. This patch changes that behavior. It teaches each ->pmd_entry handler (there are five) that they must break down the THPs themselves. Also, the _generic_ code will never break down a THP unless a ->pte_entry handler is actually set. This means that the ->pmd_entry handlers can now choose to deal with THPs without breaking them down. [akpm@linux-foundation.org: coding-style fixes] Signed-off-by: Dave Hansen <dave@linux.vnet.ibm.com> Acked-by: Mel Gorman <mel@csn.ul.ie> Acked-by: David Rientjes <rientjes@google.com> Reviewed-by: Eric B Munson <emunson@mgebm.net> Tested-by: Eric B Munson <emunson@mgebm.net> Cc: Michael J Wolf <mjwolf@us.ibm.com> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Matt Mackall <mpm@selenic.com> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/pagewalk.c')