[Libhugetlbfs-devel] [PATCH 1/3] Add support for THP in morecore

2011-05-26 Thread Eric B Munson
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

[Libhugetlbfs-devel] [PATCH 2/3] Add support to hugeadm for configuring transparent huge pages

2011-05-26 Thread Eric B Munson
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

[Libhugetlbfs-devel] [PATCH 3/3] Add controls to hugectl for new THP related env variables

2011-05-26 Thread Eric B Munson
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

[Libhugetlbfs-devel] [RFC] [PATCH 0/3] Start working with THP

2011-05-26 Thread Eric B Munson
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

Re: [Libhugetlbfs-devel] [PATCH 2/3] Add support to hugeadm for configuring transparent huge pages

2011-05-26 Thread Andrea Arcangeli
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

Re: [Libhugetlbfs-devel] [PATCH V2] Make calls to strcmp in hugetlb_env_setup consistent

2011-05-26 Thread Eric B Munson
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