From the course: Exploring Linux Internals: Advanced Insights and Practical Applications

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Managing resource allocation, part 1

Managing resource allocation, part 1

- So one of the features that is pretty cool in systemd is the option to integrate it with Cgroups. So what are Cgroups? Well, Cgroups are offered by the Linux kernel, and they allow you to limit the availability of resources. And Cgroups perfectly integrate in systemd services, and it means that you can easily define Cgroup functionality on your systemd service with the result that one process gets more CPU cycles, that processes are limited to a certain amount of memory, and more. To work with Cgroups, you are going to assign them to slices, scopes, and services, where the slice is a big environment, it's like a domain, a scope is a division of a slice, and a service is the individual service that you can be working with. And resource limitations in Cgroups can be set on CPU cycles, on memory, and also on block I/O. All right, let me tell you how Cgroups are organized. Cgroups all start with the root, but that's not what matters. What matters is the slices. So we have system slice…

Contents