You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable setting a NUMA memory policy for the container. New
linux.memoryPolicy object contains inputs to the set_mempolicy(2)
syscall.
Signed-off-by: Antti Kervinen <[email protected]>
**`memoryPolicy`** (object, OPTIONAL) sets the NUMA memory policy for the container.
797
+
For more information see the [set_mempolicy(2)][set_mempolicy.2] man page.
798
+
799
+
***`mode`***(string, REQUIRED)* -
800
+
801
+
A valid list of constants is shown below.
802
+
803
+
*`MPOL_DEFAULT`
804
+
*`MPOL_BIND`
805
+
*`MPOL_INTERLEAVE`
806
+
*`MPOL_WEIGHTED_INTERLEAVE`
807
+
*`MPOL_PREFERRED`
808
+
*`MPOL_PREFERRED_MANY`
809
+
*`MPOL_LOCAL`
810
+
811
+
***`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.
812
+
813
+
***`flags`***(array of strings, OPTIONAL)* - list of flags to use with set_mempolicy(2).
814
+
815
+
A valid list of constants is shown below.
816
+
817
+
*`MPOL_F_NUMA_BALANCING`
818
+
*`MPOL_F_RELATIVE_NODES`
819
+
*`MPOL_F_STATIC_NODES`
820
+
821
+
### Example
822
+
823
+
```json
824
+
"linux": {
825
+
"memoryPolicy": {
826
+
"mode": "MPOL_INTERLEAVE",
827
+
"nodes": "2-3"
828
+
"flags": ["MPOL_F_STATIC_NODES"],
829
+
}
830
+
}
831
+
```
832
+
794
833
## <aname="configLinuxSysctl" />Sysctl
795
834
796
835
**`sysctl`** (object, OPTIONAL) allows kernel parameters to be modified at runtime for the container.
@@ -1073,6 +1112,7 @@ subset of the available options.
**`memoryPolicy`** (object, OPTIONAL) represents the runtime's implementation status of memoryPolicy.
201
+
202
+
***`modes`** (array of strings, OPTIONAL). Recognized memory policies. Includes policies that may not be supported by the host operating system.
203
+
The runtime MUST recognize the elements in this array as the [`mode` of `linux.memoryPolicy` objects in `config.json`](config-linux.md#memory-policy).
204
+
205
+
***`flags`** (array of strings, OPTIONAL). Recognized flags for memory policies. Includes flags that may not be supported by the host operating system.
206
+
The runtime MUST recognize the elements in this in the [`flags` property of the `linux.memoryPolicy` object in `config.json`](config-linux.md#memory-policy)
207
+
208
+
### Example
209
+
210
+
```json
211
+
"memoryPolicy": {
212
+
"modes": [
213
+
"MPOL_DEFAULT",
214
+
"MPOL_BIND",
215
+
"MPOL_INTERLEAVE",
216
+
"MPOL_WEIGHTED_INTERLEAVE",
217
+
"MPOL_PREFERRED",
218
+
"MPOL_PREFERRED_MANY",
219
+
"MPOL_LOCAL"
220
+
],
221
+
"flags": [
222
+
"MPOL_F_NUMA_BALANCING",
223
+
"MPOL_F_RELATIVE_NODES",
224
+
"MPOL_F_STATIC_NODES"
225
+
]
226
+
}
227
+
```
228
+
198
229
## <aname="linuxFeaturesIntelRdt" />Intel RDT
199
230
200
231
**`intelRdt`** (object, OPTIONAL) represents the runtime's implementation status of Intel RDT.
0 commit comments