On Thu, 2008-11-06 at 17:43 +0000, Eric B Munson wrote:
> +     env = getenv("HUGETLB_MINIMAL_COPY");
> +     if (__hugetlb_opts.min_copy && env && (strcasecmp(env, "no") == 0)) {
> +             DEBUG("HUGETLB_MINIMAL_COPY=%s, disabling filesz copy "
> +                     "optimization\n", env);
> +             __hugetlb_opts.min_copy = 0;
> +     }

          else
                  __hugetlb_opts.min_copy = 1;
?
  Otherwise, wont min_copy always be zero?

> +
> +     env = getenv("HUGETLB_SHARE");
> +     if (env)
> +             __hugetlb_opts.sharing = atoi(env);
>  }
> 
>  /*
> diff --git a/libhugetlbfs_internal.h b/libhugetlbfs_internal.h
> index c6774da..2ad0163 100644
> --- a/libhugetlbfs_internal.h
> +++ b/libhugetlbfs_internal.h
> @@ -56,6 +56,12 @@
>  #endif
> 
>  struct libhugeopts_t {
> +     int             min_copy;
> +     int             sharing;
> +     unsigned long   force_elfmap;
> +     char            *ld_preload;
> +     char            *elfmap;
> +     char            *share_path;
>  };
> 
>  /*
-- 
Adam Litke - (agl at us.ibm.com)
IBM Linux Technology Center


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to