Skip to content

Commit f38c09f

Browse files
committed
Update doc for reserved memory flag
This change is to update the documentation for reserved-memory flag. Now, for specifying memory reservations across multiple NUMA nodes, semicolon needs to be used as separator. Signed-off-by: Ravindra Thakur <[email protected]>
1 parent 595cc5a commit f38c09f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

content/en/docs/tasks/administer-cluster/memory-manager.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ The sum of their values will account for the total amount of reserved memory.
138138
A new `--reserved-memory` flag was added to Memory Manager to allow for this total reserved memory
139139
to be split (by a node administrator) and accordingly reserved across many NUMA nodes.
140140

141-
The flag specifies a comma-separated list of memory reservations per NUMA node.
141+
The flag specifies a comma-separated list of memory reservations of different memory types per NUMA node.
142+
Memory reservations across multiple NUMA nodes can be specified using semicolon as separator.
142143
This parameter is only useful in the context of the Memory Manager feature.
143144
The Memory Manager will not use this reserved memory for the allocation of container workloads.
144145

@@ -180,6 +181,10 @@ or
180181

181182
`--reserved-memory 0:memory=1Gi --reserved-memory 1:memory=2Gi`
182183

184+
or
185+
186+
`--reserved-memory '0:memory=1Gi;1:memory=2Gi'`
187+
183188
When you specify values for `--reserved-memory` flag, you must comply with the setting that
184189
you prior provided via Node Allocatable Feature flags.
185190
That is, the following rule must be obeyed for each memory type:
@@ -215,7 +220,7 @@ Here is an example of a correct configuration:
215220
--kube-reserved=cpu=4,memory=4Gi
216221
--system-reserved=cpu=1,memory=1Gi
217222
--memory-manager-policy=Static
218-
--reserved-memory 0:memory=3Gi --reserved-memory 1:memory=2148Mi
223+
--reserved-memory '0:memory=3Gi;1:memory=2148Mi'
219224
```
220225

221226
Let us validate the configuration above:

0 commit comments

Comments
 (0)