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
This PR fixes the memory manager page by:
- removing links to non-existent sections;
- fixing links with bad anchors;
- fixing incorrect language tag for code snippets
Copy file name to clipboardExpand all lines: content/en/docs/tasks/administer-cluster/memory-manager.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,13 +63,11 @@ Important topic in the context of Memory Manager operation is the management of
63
63
64
64
## Memory Manager configuration
65
65
66
-
Other Managers should be first pre-configured (section [Pre-configuration](#pre-configuration)). Next, the Memory Manger feature should be enabled (section [Enable the Memory Manager feature](#enable-the-memory-manager-feature)) and be run with `Static` policy (section [Static policy](#static-policy)). Optionally, some amount of memory can be reserved for system or kubelet processes to increase node stability (section [Reserved memory flag](#reserved-memory-flag)).
66
+
Other Managers should be first pre-configured. Next, the Memory Manger feature should be enabled and be run with `Static` policy (section [Static policy](#policy-static)). Optionally, some amount of memory can be reserved for system or kubelet processes to increase node stability (section [Reserved memory flag](#reserved-memory-flag)).
67
67
68
68
### Policies
69
69
70
-
Memory Manager supports two policies. You can select a policy via a `kubelet` flag `--memory-manager-policy`.
71
-
72
-
Two policies can be selected:
70
+
Memory Manager supports two policies. You can select a policy via a `kubelet` flag `--memory-manager-policy`:
73
71
74
72
*`None` (default)
75
73
*`Static`
@@ -93,7 +91,6 @@ The [Node Allocatable](/docs/tasks/administer-cluster/reserve-compute-resources/
93
91
94
92
The Kubernetes scheduler incorporates "allocatable" to optimise pod scheduling process. The foregoing flags include `--kube-reserved`, `--system-reserved` and `--eviction-threshold`. The sum of their values will account for the total amount of reserved memory.
95
93
96
-
97
94
A new `--reserved-memory` flag was added to Memory Manager to allow for this total reserved memory to be split (by a node administrator) and accordingly reserved across many NUMA nodes.
98
95
99
96
The flag specifies a comma-separated list of memory reservations per NUMA node.
@@ -150,7 +147,7 @@ The default hard eviction threshold is 100MiB, and **not** zero. Remember to inc
150
147
151
148
Here is an example of a correct configuration:
152
149
153
-
```shell
150
+
```none
154
151
--feature-gates=MemoryManager=true
155
152
--kube-reserved=cpu=4,memory=4Gi
156
153
--system-reserved=cpu=1,memory=1Gi
@@ -225,14 +222,19 @@ This error typically occurs in the following situations:
225
222
* the pod's request is rejected due to particular Topology Manager policy constraints
226
223
227
224
The error appears in the status of a pod:
225
+
228
226
```shell
229
-
# kubectl get pods
227
+
kubectl get pods
228
+
```
229
+
230
+
```none
230
231
NAME READY STATUS RESTARTS AGE
231
232
guaranteed 0/1 TopologyAffinityError 0 113s
232
233
```
233
234
234
235
Use `kubectl describe pod <id>` or `kubectl get events` to obtain detailed error message:
235
-
```shell
236
+
237
+
```none
236
238
Warning TopologyAffinityError 10m kubelet, dell8 Resources cannot be allocated with Topology locality
237
239
```
238
240
@@ -253,6 +255,7 @@ Also, search the logs for occurrences associated with the Memory Manager, e.g. t
253
255
### Examine the memory manager state on a node
254
256
255
257
Let us first deploy a sample `Guaranteed` pod whose specification is as follows:
258
+
256
259
```yaml
257
260
apiVersion: v1
258
261
kind: Pod
@@ -274,6 +277,7 @@ spec:
274
277
```
275
278
276
279
Next, let us log into the node where it was deployed and examine the state file in `/var/lib/kubelet/memory_manager_state`:
0 commit comments