]> git.baikalelectronics.ru Git - kernel.git/commit
thp: transparent hugepage config choice
authorAndrea Arcangeli <aarcange@redhat.com>
Thu, 13 Jan 2011 23:47:07 +0000 (15:47 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Jan 2011 01:32:45 +0000 (17:32 -0800)
commit1c04dc189b34bcdfdaf5c4bf21114578e03a007e
tree44a1c65870ba4463316f943f52d898bb3763ab81
parent6b494f09d2e7a377275a290e2c1a8c130a538f0c
thp: transparent hugepage config choice

Allow to choose between the always|madvise default for page faults and
khugepaged at config time.  madvise guarantees zero risk of higher memory
footprint for applications (applications using madvise(MADV_HUGEPAGE)
won't risk to use any more memory by backing their virtual regions with
hugepages).

Initially set the default to N and don't depend on EMBEDDED.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/Kconfig
mm/huge_memory.c