Skip to content

Commit b8d7c38

Browse files
authored
Merge pull request #68089 from ramachandranravi/main
OCPBUGS-23361 [DOC] Updated documentation to configure and verify different cgroup versions
2 parents 1b2e901 + b3be3c2 commit b8d7c38

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

modules/nodes-clusters-cgroups-2.adoc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,13 @@ metadata:
159159
name: 05-worker-kernelarg-selinuxpermissive
160160
spec:
161161
kernelArguments:
162-
systemd.unified_cgroup_hierarchy=0 <1>
163-
systemd.legacy_systemd_cgroup_controller=1 <2>
162+
systemd_unified_cgroup_hierarchy=1 <1>
163+
cgroup_no_v1="all" <2>
164+
psi=1 <3>
164165
----
165166
<1> Enables cgroup v2 in systemd.
166167
<2> Disables cgroup v1.
168+
<3> Enables the Linux Pressure Stall Information (PSI) feature.
167169
+
168170
endif::nodes[]
169171
.Example output for cgroup v1
@@ -177,13 +179,11 @@ metadata:
177179
name: 05-worker-kernelarg-selinuxpermissive
178180
spec:
179181
kernelArguments:
180-
- systemd_unified_cgroup_hierarchy=1 <1>
181-
- cgroup_no_v1="all" <2>
182-
- psi=1 <3>
182+
systemd.unified_cgroup_hierarchy=0 <1>
183+
systemd.legacy_systemd_cgroup_controller=1 <2>
183184
----
184-
<1> Enables cgroup v1 in systemd.
185-
<2> Disables cgroup v2.
186-
<3> Enables the Linux Pressure Stall Information (PSI) feature.
185+
<1> Disables cgroup v2.
186+
<2> Enables cgroup v1 in systemd.
187187

188188
. Check the nodes to see that scheduling on the nodes is disabled. This indicates that the change is being applied:
189189
+
@@ -243,13 +243,13 @@ $ stat -c %T -f /sys/fs/cgroup
243243
.Example output for cgroup v2
244244
[source,terminal]
245245
----
246-
tmp2fs
246+
cgroup2fs
247247
----
248248
+
249249
.Example output for cgroup v1
250250
[source,terminal]
251251
----
252-
cgroup1fs
252+
tmpfs
253253
----
254254
endif::nodes[]
255255

0 commit comments

Comments
 (0)