@@ -5,10 +5,11 @@ date: 2022-08-31
5
5
slug : cgroupv2-ga-1-25
6
6
---
7
7
8
- ** Authors:** : David Porter (Google), Mrunal Patel (RedHat )
8
+ ** Authors:** : David Porter (Google), Mrunal Patel (Red Hat )
9
9
10
10
Kubernetes 1.25 brings cgroup v2 to GA (general availability), letting the
11
- kubelet use the latest resource management capabilities.
11
+ [ kubelet] ( /docs/concepts/overview/components/#kubelet ) use the latest container resource
12
+ management capabilities.
12
13
13
14
## What are cgroups?
14
15
@@ -33,30 +34,31 @@ unified control system with enhanced resource management capabilities.
33
34
34
35
cgroup v2 has been development in the Linux Kernel since 2016 and in recent
35
36
years has matured across the container ecosystem. With Kubernetes 1.25, cgroup
36
- v2 support is graduating to GA .
37
+ v2 support has graduated to general availability .
37
38
38
- Many new Linux distributions have switched over to cgroup v2 by default so it's
39
- important that Kubernetes continues to work well on these new updated distros.
39
+ Many recent releases of Linux distributions have switched over to cgroup v2 by
40
+ default so it's important that Kubernetes continues to work well on these new
41
+ updated distros.
40
42
41
43
cgroup v2 offers several improvements over cgroup v1, such as the following:
42
44
43
45
* Single unified hierarchy design in API
44
46
* Safer sub-tree delegation to containers
45
- * Newer features like Pressure Stall Information
47
+ * Newer features like [ Pressure Stall Information] ( https://www.kernel.org/doc/html/latest/accounting/psi.html )
46
48
* Enhanced resource allocation management and isolation across multiple resources
47
49
* Unified accounting for different types of memory allocations (network and kernel memory, etc)
48
50
* Accounting for non-immediate resource changes such as page cache write backs
49
51
50
52
Some Kubernetes features exclusively use cgroup v2 for enhanced resource
51
53
management and isolation. For example,
52
- the [ MemoryQoS feature] ( https://kubernetes.io /blog/2021/11/26/qos-memory-resources/) improves
53
- memory QoS and relies on cgroup v2 functionality to enable it. New resource
54
- management features in the kubelet will also take advantage of the new cgroup
55
- v2 features moving forward.
54
+ the [ MemoryQoS feature] ( /blog/2021/11/26/qos-memory-resources/ ) improves
55
+ memory utilization and relies on cgroup v2 functionality to enable it. New
56
+ resource management features in the kubelet will also take advantage of the new
57
+ cgroup v2 features moving forward.
56
58
57
59
## How do you use cgroup v2?
58
60
59
- Many Linux distributions are switching to cgroup v2 by default, you might start
61
+ Many Linux distributions are switching to cgroup v2 by default; you might start
60
62
using it the next time you update the Linux version of your control plane and
61
63
nodes!
62
64
@@ -76,7 +78,7 @@ refer to [Check your cgroup version](/docs/concepts/architecture/cgroups/#check-
76
78
consult your distribution's documentation.
77
79
78
80
If you're using a managed Kubernetes offering, consult your provider to
79
- determine how they're adopting cgroup v2.
81
+ determine how they're adopting cgroup v2, and whether you need to take action .
80
82
81
83
To use cgroup v2 with Kubernetes, you must meet the following requirements:
82
84
@@ -119,7 +121,7 @@ Scenarios in which you might need to update to cgroup v2 include the following:
119
121
120
122
## Learn more
121
123
122
- * Read the [ Kubernetes cgroup v2 documentation] ( /docs/concepts/architecture/cgroups )
124
+ * Read the [ Kubernetes cgroup v2 documentation] ( /docs/concepts/architecture/cgroups/ )
123
125
* Read the enhancement proposal, [ KEP 2254] ( https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/2254-cgroup-v2/README.md )
124
126
* Learn more about
125
127
[ cgroups] ( https://man7.org/linux/man-pages/man7/cgroups.7.html ) on Linux Manual Pages
0 commit comments