Currently, morecore is enabled, if HUGETLB_MORECORE is set at all in the environment, even if its value is "no". That is counterintuitive, as none of the other environment variables work that way. Make HUGETLB_MORECORE act like HUGETLB_ELFMAP.
Signed-off-by: Nishanth Aravamudan <[EMAIL PROTECTED]> diff --git a/morecore.c b/morecore.c index 9f13316..36590f8 100644 --- a/morecore.c +++ b/morecore.c @@ -26,6 +26,7 @@ #include <sys/mman.h> #include <errno.h> #include <dlfcn.h> +#include <string.h> #include "hugetlbfs.h" @@ -119,6 +120,11 @@ static void __attribute__((constructor)) env = getenv("HUGETLB_MORECORE"); if (! env) return; + if (strcasecmp(env, "no") == 0) { + DEBUG("HUGETLB_MORECORE=%s, not setting up morecore\n", + env); + return; + } blocksize = gethugepagesize(); if (! blocksize) { -- Nishanth Aravamudan <[EMAIL PROTECTED]> IBM Linux Technology Center ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Libhugetlbfs-devel mailing list Libhugetlbfs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel