Skip to content

Commit 5f5a8a1

Browse files
committed
[zh] fix feature gate for hugepage
1 parent be32452 commit 5f5a8a1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

content/zh/docs/tasks/manage-hugepages/scheduling-hugepages.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,20 +130,21 @@ spec:
130130
<!--
131131
- Huge page requests must equal the limits. This is the default if limits are
132132
specified, but requests are not.
133-
- Huge pages are isolated at a container scope, so each container has own limit on their cgroup sandbox as requested in a container spec.
133+
- Huge pages are isolated at a container scope, so each container has own
134+
limit on their cgroup sandbox as requested in a container spec.
134135
- EmptyDir volumes backed by huge pages may not consume more huge page memory
135136
than the pod request.
136137
- Applications that consume huge pages via `shmget()` with `SHM_HUGETLB` must
137138
run with a supplemental group that matches `proc/sys/vm/hugetlb_shm_group`.
138139
- Huge page usage in a namespace is controllable via ResourceQuota similar
139-
to other compute resources like `cpu` or `memory` using the `hugepages-<size>`
140-
token.
140+
to other compute resources like `cpu` or `memory` using the `hugepages-<size>`
141+
token.
141142
- Support of multiple sizes huge pages is feature gated. It can be
142143
enabled with the `HugePageStorageMediumSize` [feature
143144
gate](/docs/reference/command-line-tools-reference/feature-gates/) on the {{<
144145
glossary_tooltip text="kubelet" term_id="kubelet" >}} and {{<
145146
glossary_tooltip text="kube-apiserver"
146-
term_id="kube-apiserver" >}} (`--feature-gates=HugePageStorageMediumSize=true`).
147+
term_id="kube-apiserver" >}} (`--feature-gates=HugePageStorageMediumSize=false`).
147148
--->
148149

149150
- 巨页的资源请求值必须等于其限制值。该条件在指定了资源限制,而没有指定请求的情况下默认成立。
@@ -156,7 +157,7 @@ term_id="kube-apiserver" >}} (`--feature-gates=HugePageStorageMediumSize=true`).
156157
- 多种尺寸的巨页的支持需要特性门控配置。它可以通过 `HugePageStorageMediumSize` [特性门控](/zh/docs/reference/command-line-tools-reference/feature-gates/)在 {{<
157158
glossary_tooltip text="kubelet" term_id="kubelet" >}} 和 {{<
158159
glossary_tooltip text="kube-apiserver"
159-
term_id="kube-apiserver" >}} 中开启(`--feature-gates=HugePageStorageMediumSize=true`)。
160+
term_id="kube-apiserver" >}} 中开启(`--feature-gates=HugePageStorageMediumSize=false`)。
160161

161162

162163

0 commit comments

Comments
 (0)