---

 HOWTO |   20 ++++++++++++++++++++
 1 files changed, 20 insertions(+), 0 deletions(-)


diff --git a/HOWTO b/HOWTO
index b2040ed..e7eea3a 100644
--- a/HOWTO
+++ b/HOWTO
@@ -395,6 +395,26 @@ segments to be placed in hugepages:
        HUGETLB_ELFMAP=RW       All segments (text/data/BSS)
        HUGETLB_ELFMAP=no       No segments
 
+       Default remapping behavior:
+       ---------------------------
+
+If --hugetlbfs-link was used to link an application, the chosen remapping mode
+is codified into the binary and becomes the default behavior.  Setting
+HUGETLB_ELFMAP=no will disable all remapping and is the only way to modify the
+default behavior.
+
+For applications linked with --hugetlbfs-align, the default behavior is to not
+remap any segments into huge pages.  To set or display the default remapping
+mode for a binary, the included hugeedit command can be used:
+
+hugeedit [options] target-executable
+   options:
+   --text,--data       Remap the specified segment into huge pages by default
+   --disable           Do not remap any segments by default
+
+The hugeedit command will set the default mode, but HUGETLB_ELFMAP can be used
+to override it (see above) when running the program.
+
        Environment variables:
        ----------------------
 


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to