Skip to content

Commit 84b6c2c

Browse files
committed
docs: fix and elaborate the nodes field in Linux memory policy
Nodes is required only in some memory policy modes, while some other modes require that there must be no nodes. Signed-off-by: Antti Kervinen <[email protected]>
1 parent 8675d56 commit 84b6c2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config-linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ For more information see the [set_mempolicy(2)][set_mempolicy.2] man page.
831831
* `MPOL_PREFERRED_MANY`
832832
* `MPOL_LOCAL`
833833

834-
* **`nodes`** *(string, REQUIRED)* - list of memory nodes from which nodemask is constructed to set_mempolicy(2). This is a comma-separated list, with dashes to represent ranges. For example, `0-3,7` represents memory nodes 0,1,2,3, and 7.
834+
* **`nodes`** *(string, OPTIONAL)* - list of memory nodes from which nodemask is constructed to set_mempolicy(2). This is a comma-separated list, with dashes to represent ranges. For example, `0-3,7` represents memory nodes 0,1,2,3, and 7. Some modes require that there are no nodes, e.g. `MPOL_DEFAULT` and `MPOL_LOCAL`. Others that there is at least one node, e.g. `MPOL_BIND` and `MPOL_INTERLEAVE`. See set_mempolicy(2) for details.
835835

836836
* **`flags`** *(array of strings, OPTIONAL)* - list of flags to use with set_mempolicy(2).
837837

0 commit comments

Comments
 (0)