Transparent huge pages (THP) give another option for access to huge pages for
anonymous mappings. This patch adds the ability to specify that the process
heap should be aligned and (if requested madvised) to be merged into huge pages
by khugepaged. For more information on THP see
linux-2.6/Docume
Transparent huge pages (THP) have two tunables in sysfs used to control the
behavior of khugepaged. This patch adds the support for controlling these
tunables via hugeadm options.
Signed-off-by: Eric B Munson
---
hugeadm.c | 162 +
ma
This patch adds controls for the new THP related functionality in the library.
Signed-off-by: Eric B Munson
---
hugectl.c | 36
man/hugectl.8 | 11 +++
2 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/hugectl.c b/hugectl.c
index
This set is as of yet untested beyond building the library so it is by no means
finished. My TODO after testing is to add another patch which adds tests to the
test suite to try and verify that transparent huge pages are being used when
available and appropriate.
The inclusion of Transparen
On Thu, May 26, 2011 at 01:13:58PM -0400, Eric B Munson wrote:
> +#define YES"yes"
> +#define NO "no"
Upstream 2.6.39 was changed to 0/1, that differs from 2.6.38 :(. It's
probably better to support only 0/1 and let it fail on 2.6.38.
> +#define TRANS_ENABLE "/sys/kernel
On Wed, 25 May 2011, Eric B Munson wrote:
> String comparison in hugetlb_setup_env is done in an inconsisten way. This
> is a problem because some of the environment variables are checked ignoring
> case where others are case sensitive. This patch converts all of the
> comparisons looking for bo