Stop staring at top when a process is hiding its true CPU usage

Process & Resource Monitoring (Top/Htop/Ps/Systemd)

Stop staring at top when a process is hiding its true CPU usage

🧩 The Challenge

You know that feeling when a server is screaming, load is through the roof, but you open top and every single process looks like it’s barely doing a thing? It’s enough to make you pull your hair out because you know something is eating the CPU alive, it’s just doing it too fast for the refresh rate to catch.

💡 The Fix

You need to shift from standard resource monitors to looking at the actual cumulative system accounting through the kernel’s process status tool. This lets you see the total time a process has spent on the CPU since it started, ignoring the current blink-of-an-eye snapshot.

ps -eo pid,user,cputime,cmd --sort=-cputime | head -n 11

⚙️ Why It Works

By sorting the process list by cumulative CPU time instead of percentage, you catch those short-lived but heavy processes that spike and die before top even updates its display. It gives you the long-term view of where the cycles actually went.

🚀 Pro-Tip: If you’re hunting a memory leak instead, swap cputime for rss in that command to see the peak memory footprint for the life of the process.

Linux Tips & Tricks | © ngelinux.com | 11/27/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted