On Wed, 02 Feb 2011, Andrew Hastings wrote:

> By default, libhugetlbfs will act on any program that it is loaded
> with, either via LD_PRELOAD or by explicitly linking with -lhugetlbfs.
> 
> There are situations in which it is desirable to restrict libhugetlbfs'
> actions to specific programs.  For example, some ISV applications are
> wrapped in a series of scripts that invoke bash, python, and/or perl.
> It is more convenient to set the environment variables related to
> libhugetlbfs outside of the wrapper scripts, yet this has the unintended
> and undesirable consequence of causing the script interpreters to use
> and consume hugepages.  Often there is no obvious benefit to causing the
> script interpreters to use hugepages, and there is a clear disadvantage:
> fewer hugepages are available to the actual application.
> 
> To address this scenario, add a HUGETLB_RESTRICT_EXE environment variable.
> If this variable is set, libhugetlbfs will restrict its actions to only
> those programs named in HUGETLB_RESTRICT_EXE.  (If not set, libhugetlbfs
> will attempt to apply the requested actions to all programs.)
> 
> For example,
> 
>     HUGETLB_RESTRICT_EXE="hpcc:long_hpcc"
> 
> will restrict libhugetlbfs' actions to programs named /home/fred/hpcc
> and /bench/long_hpcc but will not affect /usr/bin/hpcc_no.
> 
> Based on a patch originally authored by Dean Luick <lu...@cray.com>.
> 
> Signed-off-by: Andrew Hastings <a...@cray.com> on behalf of Cray Inc.

I have no problem with the way this patch handles your concern.  Are
you comfortable with me merging it as is?

Eric

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to