M23 - Process Lab: Sluggish System
Process Lab: Sluggish System
Use safe practice loads to observe a slow system, identify the cause, and restore normal behavior without guessing or overreacting.
- Create a harmless practice load.
- Observe which process is causing the slowdown.
- Stop the load cleanly and confirm the system returns to normal.
The Goal
This lab is about calm troubleshooting, not dramatic destruction.
You will create a harmless practice load, observe the system with the tools you learned, identify the responsible process, and restore normal behavior.
Safety Boundary
Only target the lab process you created yourself. Do not stop random system services or important applications while learning.
Step 1: Create a Harmless Practice Load
Start-Process powershell -ArgumentList ‘-NoProfile’,‘-Command’,‘while ($true) { 1..5000 | ForEach-Object { [math]::Sqrt($_) > $null } }’ Get-Process powershell | Sort-Object CPU -Descending | Select-Object -First 5
yes > /dev/null & pgrep yes
The exact load does not matter. What matters is that you know which process you created.
Step 2: Observe Before Acting
Get-Process | Sort-Object CPU -Descending | Select-Object -First 10 Name, Id, CPU
top
or in another shell
ps aux | grep yes
Before stopping anything, confirm:
- the process name
- the PID when relevant
- that it really is the source of the practice load
Step 3: Stop the Load Deliberately
Stop-Process -Name powershell
If that is too broad on your machine, stop by the exact process ID you observed instead.
pkill yes
or kill <PID>
Then re-check the process list or live view to confirm the pressure is gone.
Step 4: Reflect on the Sequence
The important part of this lab is the order:
- create or notice the load
- inspect the system
- identify the process
- stop only the right target
- confirm the result
That is better operational behavior than jumping straight to force.
Move On When
You are ready for the storage section when you can create a harmless process load, find it, stop it, and explain why each step happened in that order.