Skip to content

Commit e0bc924

Browse files
authored
Merge pull request #70180 from mburke5678/node-cgroup-characteristic-note
GH65982 - Add note: cgroupsv2 has different characteristics than cgroupsv1
2 parents abaf17b + 99c88b9 commit e0bc924

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

installing/install_config/enabling-cgroup-v1.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ toc::[]
99

1010
As of {product-title} 4.14, {product-title} uses link:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html[Linux control group version 2] (cgroup v2) in your cluster. If you are using cgroup v1 on {product-title} 4.13 or earlier, migrating to {product-title} 4.14 will not automatically update your cgroup configuration to version 2. A fresh installation of {product-title} 4.14 will use cgroup v2 by default. However, you can enable link:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/index.html[Linux control group version 1] (cgroup v1) upon installation. Enabling cgroup v1 in {product-title} disables all cgroup v2 controllers and hierarchies in your cluster.
1111

12-
cgroup v2 is the current version of the Linux cgroup API. cgroup v2 offers several improvements over cgroup v1, including a unified hierarchy, safer sub-tree delegation, new features such as link:https://www.kernel.org/doc/html/latest/accounting/psi.html[Pressure Stall Information], and enhanced resource management and isolation.
12+
include::snippets/cgroupv2-vs-cgroupv1.adoc[]
1313

1414
ifndef::openshift-origin[]
1515
You can switch between cgroup v1 and cgroup v2, as needed, by editing the `node.config` object. For more information, see "Configuring the Linux cgroup on your nodes" in the "Additional resources" of this section.

modules/nodes-clusters-cgroups-2.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ endif::post[]
2626
endif::openshift-origin[]
2727

2828
ifdef::post[]
29-
cgroup v2 is the current version of the Linux cgroup API. cgroup v2 offers several improvements over cgroup v1, including a unified hierarchy, safer sub-tree delegation, new features such as link:https://www.kernel.org/doc/html/latest/accounting/psi.html[Pressure Stall Information], and enhanced resource management and isolation.
29+
include::snippets/cgroupv2-vs-cgroupv1.adoc[]
3030

3131
You can change between cgroup v1 and cgroup v2, as needed. Enabling cgroup v1 in {product-title} disables all cgroup v2 controllers and hierarchies in your cluster.
3232
endif::post[]

nodes/clusters/nodes-cluster-cgroups-2.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ifdef::openshift-origin[]
1313
{product-title} uses link:https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html[Linux control group version 2] (cgroup v2) in your cluster.
1414
endif::openshift-origin[]
1515

16-
cgroup v2 is the current version of the Linux cgroup API. cgroup v2 offers several improvements over cgroup v1, including a unified hierarchy, safer sub-tree delegation, new features such as link:https://www.kernel.org/doc/html/latest/accounting/psi.html[Pressure Stall Information], and enhanced resource management and isolation.
16+
include::snippets/cgroupv2-vs-cgroupv1.adoc[]
1717

1818
You can change between cgroup v1 and cgroup v2, as needed. Enabling cgroup v1 in {product-title} disables all cgroup v2 controllers and hierarchies in your cluster.
1919

snippets/cgroupv2-vs-cgroupv1.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Text snippet included in the following modules:
2+
//
3+
// * installing/install-config/enabling-cgroup-v1.adoc
4+
// * modules/nodes-clusters-cgroups-2.adoc
5+
// * nodes/clusters/nodes-cluster-cgroups-2.adoc
6+
7+
:_mod-docs-content-type: SNIPPET
8+
9+
cgroup v2 is the current version of the Linux cgroup API. cgroup v2 offers several improvements over cgroup v1, including a unified hierarchy, safer sub-tree delegation, new features such as link:https://www.kernel.org/doc/html/latest/accounting/psi.html[Pressure Stall Information], and enhanced resource management and isolation. However, cgroup v2 has different CPU, memory, and I/O management characteristics than cgroup v1. Therefore, some workloads might experience slight differences in memory or CPU usage on clusters that run cgroup v2.
10+

0 commit comments

Comments
 (0)