- Lab
- A Cloud Guru
Using systemd cgroups
Knowing how to control the processes on your system, keep them running properly, keep hungry ones from starving the others and how you can pre-set configuration to make this happen is an important skill for any system operator. All of this becomes a little easier on a systemd system via the use of Kernel Cgroups or Slices. In this lab we'll install some testing tools and create a custom Load Service, then view the results of that load on our system. We'll then make a parameter change and cause the system to recognize and implement our change properly, then observe the results via the `systemd-cgtop` command. We'll then change the service's settings further, then add some more Load Services, and notice that some limitations would be good for the system as a whole. We'll then make some adjustments to those Load Services that brings things into the range of acceptable resource use.
Path Info
Table of Contents
-
Challenge
Install Load Software and Create Load Service
Perform the following steps:
- Install testing tools.
- Create a load service.
- Manage that service's operation.
- View load results for the system.
-
Challenge
Change the Memory Allowance for the Load Service
Perform the following steps:
- Change the service's settings.
- View load results and note differences.
-
Challenge
Create More Load Services and Set CPU Allowances
Perform the following steps:
- Add additional load services.
- Make adjustments to configuration.
- View load results for all load services.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.