Stop mystery processes from eating your CPU cycles in the background
Process & Resource Monitoring (Top/Htop/Ps/Systemd)
Stop mystery processes from eating your CPU cycles in the background
🧩 The Challenge
Dealing with a load average that won’t drop is annoying enough, but it is worse when you cannot figure out which specific thread is the one pinning a core. You open top and see a jumbled mess, especially when you have a multi-threaded app acting up.
💡 The Fix
Use ps to drill down into the LWP view so you can map individual threads to their CPU usage without getting blinded by the main process stats. It is the only way to catch that one rogue worker thread hiding in the noise.
ps -eLf | sort -k 9 -nr | head -n 20
⚙️ Why It Works
By showing the LWP column and sorting by the percentage of CPU time, you strip away the ambiguity and see exactly which task is currently spinning. Adding the full format flag gives you the parent process context so you know who spawned it.
🚀 Pro-Tip: Alias this as pstop in your bashrc so you can fire it off without digging through man pages when things hit the fan.
Linux Tips & Tricks | © ngelinux.com | 7/20/2026
