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.
  • РазвлеченияРазвлечения

Комментарии • 24

  • @FrederikoCosta
    @FrederikoCosta 2 года назад +16

    This talk, by itself, is worth 10x more than any Aws reinvent talk.

    • @victoryosikwemhe2280
      @victoryosikwemhe2280 2 года назад

      100%

    • @crikxouba
      @crikxouba 3 месяца назад

      And for the price of one reinvent ticket talk, you can pay for one of his courses, which would be so much more useful.

  • @chainer22
    @chainer22 Год назад +8

    Probably one of the clearest explanation of cgroup out there. Thank you!

    • @TheKarantan
      @TheKarantan Год назад +1

      My thoughts exactly. Also, I loved the demos.

  • @tommasoborgato
    @tommasoborgato 8 месяцев назад +1

    Great cgroups V2 explanation! Couldn't find anything better

  • @kgsrivastava
    @kgsrivastava 2 года назад +5

    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.

  • @jzburns1990
    @jzburns1990 Год назад +1

    Fantastic talk, fantastic resources from Michaels homepage

  • @dassyareg7587
    @dassyareg7587 2 года назад +1

    This is just awesome. Great job, Michael.

  • @Devzx
    @Devzx Год назад

    Amazing talk, really helped solidify how cgroups work! Thank you!

  • @victoryosikwemhe2280
    @victoryosikwemhe2280 2 года назад +1

    Thank you so much for this. It is really helpful to understand how this works

  • @MichaelKerrisk
    @MichaelKerrisk 2 года назад +11

    See also the follow-on presentation at ruclips.net/video/Clr_MQwaJtA/видео.html

    • @jonnytheponny5753
      @jonnytheponny5753 2 года назад +1

      Thanks so much for the absolutely great and informative Talk, this talk (Part 1) is amazing and so helpful. Thanks again!

    • @Shri
      @Shri Год назад +1

      Thank you Sir!

  • @hardas81
    @hardas81 2 года назад +2

    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 :)

  • @Shri
    @Shri Год назад +1

    Brilliant talk!

  • @uberwebd9824
    @uberwebd9824 2 года назад +1

    I love the way you teach - thank you!

  • @hardikrajpal2410
    @hardikrajpal2410 Год назад

    Any idea where we can get the cpu_burner program used at 42:48?

  • @uberwebd9824
    @uberwebd9824 2 года назад

    at 19:36 shouldn't it have blcoked after 3 sleeps ? (for loop + shell + 3 sleeps = 5 procs)

    • @christianburke4220
      @christianburke4220 2 года назад +1

      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?

    • @MichaelKerrisk
      @MichaelKerrisk 2 года назад +2

      @@christianburke4220 Yes, your explanation is correct. 'for' is a shell built-in, and so does not result in a separate process.

  • @pixelPlex
    @pixelPlex 2 года назад

    Does the sub cgroup thing ( ruclips.net/video/kcnFQgg9ToY/видео.html ) work with the posix_spawn function?

  • @karatebreakfast6908
    @karatebreakfast6908 Год назад

    47:56 ".....But why male models?"

  • @daniel_andrade
    @daniel_andrade Год назад

    In bash we can do `$ echo $$ | sudo tee /sys/fs/cgroup/grp1/cgroup.procs` then anything run on that shell will execute in grp1.