Explain Cgroups like I'm five

Hey, wake up its Monday, we need to explain to a 5 year old what are Cgroups and why they are important.

Did you find this post useful? Show some love!

Literally thinking of a five year old, the first thing that comes to mind is candy. So let's see if I can do this using candy as an analogy for resources

Imagine that your father keeps 100 (Thinking about a good candy. Um. Rainbow Nerds. I like those) packets of Rainbow Nerds with him every month. You want to eat all of those as soon as possible, but your dad doesn't let you eat all of them in one go. He only dishes out 2 packets per day for you.

In this case, your dad is restricting the amount of Rainbow Nerds (RAM, CPU, or whatever) you can have in a given amount of time.

In this analogy, you're a resource (Rainbow Nerds) hungry process and your dad is the cgroup daemon, limiting the amount of resources you can have.

Reason why this is important? Well, you don't want to overload yourself with Rainbow nerds and then vomit for 3 days straight. I've been there.

Classic DEV Post from May 10

Elixir vs Ruby - where to use?

The comparison of Elixir and Ruby features to consider for using for different.

Follow @iriskatastic to see more of their posts in your feed.
Theofanis Despoudis
Senior Software Engineer @teckro, Experienced mentor @codeinstitute,@hack.hands, Technical Writer @fixate.io, git-book author
More from @theodesp
Explain Proof of Stake (PoS) like I'm five
#explainlikeimfive #discuss #blockchain
Explain Service Mesh like I'm five
#explainlikeimfive #devops
Trending on dev.to
What kind of breaks do you take throughout the work day?
Sweating the very small design details: external links
#css #webdev #design #discuss
How do you keep track of all the great resources you find?
#discuss #learning #resources
Explain Higher Order Component(HOC) in React.js like I'm five
#explainlikeimfive #beginners
Explain Higher Order Component(HOC) in React.js like I'm five
#explainlikeimfive #beginners
I asked my first StackOverflow question
#discuss #beginners #javascript
What was your first computer?
Why do employers check job candidates' GitHub profiles?