File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -1507,6 +1507,12 @@ typedef enum {
1507
1507
HWLOC_MEMBIND_FIRSTTOUCH = 1 ,
1508
1508
1509
1509
/** \brief Allocate memory on the specified nodes.
1510
+ *
1511
+ * The actual behavior may slightly vary between operating systems,
1512
+ * especially when (some of) the requested nodes are full.
1513
+ * On Linux, by default, the MPOL_PREFERRED_MANY (or MPOL_PREFERRED) policy
1514
+ * is used. However, if the hwloc strict flag is also given, the Linux
1515
+ * MPOL_BIND policy is rather used.
1510
1516
* \hideinitializer */
1511
1517
HWLOC_MEMBIND_BIND = 2 ,
1512
1518
Original file line number Diff line number Diff line change @@ -100,13 +100,22 @@ the default policy is bind.
100
100
.TP
101
101
\fB \-\- mempolicy \fR <policy>
102
102
Change the memory binding policy.
103
- The available policies are default, firsttouch, bind, interleave
104
- and nexttouch.
103
+
105
104
This option is only meaningful when an actual binding is also given
106
105
with \fB \-\- membind \fR .
107
106
If \fB \-\- membind \fR is given without \fB \-\- mempolicy \fR ,
108
107
the default policy is bind.
109
108
109
+ The available policies are \fB default \fR , \fB firsttouch \fR ,
110
+ \fB bind \fR , \fB interleave \fR and \fB nexttouch \fR .
111
+ See hwloc.h for details about these policies.
112
+
113
+ Note that hwloc's memory binding policies may be slightly different
114
+ from operating system policies.
115
+ For instance, the hwloc \fB bind \fR policy uses Linux \fI MPOL_PREFERRED_MANY \fR
116
+ (or \fI MPOL_PREFERRED \fR ) by default, but it switches to Linux \fI MPOL_BIND \fR
117
+ if the hwloc strict option or flag is also given.
118
+
110
119
.TP
111
120
\fB \-\- get \fR
112
121
Report the current bindings.
You can’t perform that action at this time.
0 commit comments