An introduction to control groups (cgroups) version 2 - Michael Kerrisk - NDC TechTown 2021
HTML-код
- Опубликовано: 2 ноя 2021
- Control groups (cgroups) allow us to limit and measure the resources used by groups of process. They are one of the fundamental building blocks of container frameworks, as well as a number of other interesting tools such as Flatpak and Firejail. We have (finally) reached the point where cgroups version 2 is supplanting cgroups version 1, as most major Linux distributions make the switch.
In this presentation, we will look at how cgroups work, from the perspective of the future. That is to say, I will ignore cgroups v1, and explore how cgroups work starting fresh from a version 2 perspective. Topics we’ll cover include creating and destroying cgroups, moving processes into cgroups, setting resource limits on cgroups, enabling and disabling controllers, and managing different resources to different levels of granularity. No previous knowledge of cgroups will be assumed. - Развлечения
This talk, by itself, is worth 10x more than any Aws reinvent talk.
100%
And for the price of one reinvent ticket talk, you can pay for one of his courses, which would be so much more useful.
Probably one of the clearest explanation of cgroup out there. Thank you!
My thoughts exactly. Also, I loved the demos.
Great cgroups V2 explanation! Couldn't find anything better
Excellent video sir. It's the best I have seen on cgroups. The way you explain is awesome. The pace at which you speak is not rushed like other videos and hence easy to understand.
Fantastic talk, fantastic resources from Michaels homepage
This is just awesome. Great job, Michael.
Amazing talk, really helped solidify how cgroups work! Thank you!
Thank you so much for this. It is really helpful to understand how this works
See also the follow-on presentation at ruclips.net/video/Clr_MQwaJtA/видео.html
Thanks so much for the absolutely great and informative Talk, this talk (Part 1) is amazing and so helpful. Thanks again!
Thank you Sir!
Excellent presentation! Thank you so much! Not only did you explain everything perfectly, you managed to spark my curiosity to learn more. See you on the next video :)
Brilliant talk!
I love the way you teach - thank you!
Any idea where we can get the cpu_burner program used at 42:48?
at 19:36 shouldn't it have blcoked after 3 sleeps ? (for loop + shell + 3 sleeps = 5 procs)
If echo is built in, I imagine a construct like for is built in as well.
I wonder if that's the reason for the apparently disparate styles on for loops in different shells? They are not standard utilities?
@@christianburke4220 Yes, your explanation is correct. 'for' is a shell built-in, and so does not result in a separate process.
Does the sub cgroup thing ( ruclips.net/video/kcnFQgg9ToY/видео.html ) work with the posix_spawn function?
47:56 ".....But why male models?"
In bash we can do `$ echo $$ | sudo tee /sys/fs/cgroup/grp1/cgroup.procs` then anything run on that shell will execute in grp1.