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 Transparent Huge Page (THP) support in the mainline kernel has made using huge pages on supported hardware easier for anonymous memory. However, because THP is currently limited to anonymous mappings only, it would be useful if libhugetlbfs could help a user use THP for the heap while they use hugetlbfs huge pages for other mappings (shm, or program segments). This patch set adds support into the morecore hook, which is already present in the library, for THP. This simply involes altering the way the HUGETLB_MORECORE environment variable is used as the morecore hook already handles address alignment. A second environment variable was added to allow a use to signal the library that new heap allocations should use madvise(MADV_HUGEPAGE). The last two patches in the set add support to hugeadm for configuring the THP tunables and support for the new environment variables to hugectl respectively. Eric B Munson (3): Add support for THP in morecore Add support to hugeadm for configuring transparent huge pages Add controls to hugectl for new THP related env variables HOWTO | 11 +++- hugeadm.c | 162 +++++++++++++++++++++++++++++++++++++++++++++++ hugectl.c | 36 +++++++++++ hugeutils.c | 8 +++ libhugetlbfs_internal.h | 2 + man/hugeadm.8 | 65 +++++++++++++++++++ man/hugectl.8 | 11 +++ morecore.c | 22 +++++- 8 files changed, 312 insertions(+), 5 deletions(-) -- 1.7.4.1 ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel