In this hands-on lab, we will be looking at process management and how we can ensure some processes are given preference to run using process priority.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Determine if Docker Is Causing a Load Issue
Verify that the Docker daemon is running:
ps aux | grep dockerd
Note the Docker PID.
Check system load:
top
Exit using
q
.Stop the dockerd process:
sudo -i kill -SIGSTOP <dockerd_PID>
Check the load to see if there is a change:
top
Notice it indicates there is one stopped process. Exit using
q
.Restart the Docker daemon:
sudo kill -i -SIGCONT <dockerd_PID>
- Check the Current Process Priority of the dockerd Process and if It Is Not +10, Set It to +10
Get the current priority (niceness):
ps axo ni,pid,comm | grep dockerd
Set the Docker niceness to +10:
sudo -i renice -n 10 <dockerd_PID>
Verify the change:
ps axo ni,pid,comm | grep dockerd