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.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- 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.
- Change the Memory Allowance for the Load Service
Perform the following steps:
- Change the service’s settings.
- View load results and note differences.
- 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.