diff --git a/man2/mbind.2 b/man2/mbind.2 index 42b92a933..6360daaa3 100644 --- a/man2/mbind.2 +++ b/man2/mbind.2 @@ -185,6 +185,10 @@ mode flag is specified], and contains memory. The +.I mode +argument must include one of the following values: +The +.TP .B MPOL_DEFAULT mode requests that any nondefault policy be removed, restoring default behavior. @@ -205,10 +209,9 @@ the and .I maxnode arguments must be specify the empty set of nodes. - -The +.TP .B MPOL_BIND -mode specifies a strict policy that restricts memory allocation to +This mode specifies a strict policy that restricts memory allocation to the nodes specified in .IR nodemask . If @@ -222,10 +225,9 @@ node ID specified in and so forth, until none of the specified nodes contain free memory. Pages will not be allocated from any node not specified in the .IR nodemask . - -The +.TP .B MPOL_INTERLEAVE -mode specifies that page allocations be interleaved across the +This mode specifies that page allocations be interleaved across the set of nodes specified in .IR nodemask . This optimizes for bandwidth instead of latency @@ -235,9 +237,9 @@ To be effective the memory area should be fairly large, at least 1MB or bigger with a fairly uniform access pattern. Accesses to a single page of the area will still be limited to the memory bandwidth of a single node. - +.TP .B MPOL_PREFERRED -sets the preferred node for allocation. +This mode sets the preferred node for allocation. The kernel will try to allocate pages from this node first and fall back to other nodes if the preferred nodes is low on free memory. @@ -251,11 +253,11 @@ and .I maxnode arguments specify the empty set, then the memory is allocated on the node of the CPU that triggered the allocation. - +.TP .BR MPOL_LOCAL " (since Linux 3.8)" .\" commit 479e2802d09f1e18a97262c4c6f8f17ae5884bd8 .\" commit f2a07f40dbc603c15f8b06e6ec7f768af67b424f -specifies "local allocation"; the memory is allocated on +This mode specifies "local allocation"; the memory is allocated on the node of the CPU that triggered the allocation (the "local node"). The .I nodemask @@ -275,7 +277,7 @@ By contrast, reverts to the policy of the process (which may be set via .BR set_mempolicy (2)); that policy may be something other than "local allocation". - +.PP If .B MPOL_MF_STRICT is passed in