Summary
In this chapter, we've learned a lot about cgroup Version 2. We started with a discussion about the deficiencies in cgroups Version 1, and how cgroup Version 2 is better. Then, we looked at how to allow non-privileged users to set resource limits on their containers, and how to use the cpuset
resource controller. Finally, we took a brief look at how to convert a RHEL 8-type machine to use cgroup Version 2.
Once again, I'm reading your mind, and you're wondering why cgroup Version 2 hasn't yet been universally adopted if it's so good. Well, it's just that certain critical programs and services, especially containerization services, are still hardcoded to use Version 1. Fortunately, the situation is improving, and it's a safe bet that Version 2 will become the standard within our lifetimes.
All right, this concludes Part 2 of this tome. Let's start Part 3 with a discussion of journald
. I'll see you there.