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 - Linux Tutorial
From the course: Exploring Linux Internals: Advanced Insights and Practical Applications
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
-
-
-
-
-
-
(Locked)
Learning objectives55s
-
(Locked)
Manually starting systemd4m 32s
-
(Locked)
Systemd unit files4m 39s
-
(Locked)
Tweaking unit files7m 5s
-
Mounting filesystems with systemd11m 18s
-
(Locked)
Using sockets4m 2s
-
(Locked)
Scheduling processes with timers4m 35s
-
(Locked)
Analyzing systemd performance4m 25s
-
(Locked)
Advanced dependency handling5m 34s
-
(Locked)
Managing resource allocation, part 112m 16s
-
(Locked)
Managing resource allocation, part 26m 16s
-
(Locked)
Managing resource allocation, part 33m 20s
-
(Locked)
Creating custom units3m 50s
-
(Locked)
Creating custom targets5m 31s
-
(Locked)
Running user processes in systemd4m 52s
-
(Locked)
Real-world scenario: Booting without /etc/fstab9m 39s
-
(Locked)
-
-
-
-
-
-
-
-
-
-
-