You are not logged in.
I observed on several machines that htop no longer shows CPU % utilisation of processes. Everything is listed as 0%, yet CPUS is pegged:
https://i.imgur.com/XFZCy3G.png
Is htop no longer useful for that purpose, or is something else at play?
moderator edit -- replaced oversized image with link.
Pasting pictures and code
Last edited by Lockheed (2023-04-08 07:48:33)
Offline
Doesn't this show all processes are sleeping?
For what it's worth, htop on my machine shows CPU% for all running processes.
"Before Enlightenment chop wood, carry water. After Enlightenment chop wood, carry water." -- Zen proverb
Offline
The processes are ordered by PID, not CPU usage?
Offline
Processes are ordered by CPU usage, from the most taxing.
Offline
Well, the leftmost column in your screenshot certainly suggests otherwise (except if indeed no process at all uses the CPU and the PID is used for secondary order)
I tried and the cpu isn't the sorting field regardless of the indicator in the tree layout and when switching to list it's still not unless I press F6, sort by PID (though I guess that's not relevant) and then back to the CPU.
Does
htop --sort-key PERCENT_CPU
behave as expected?
Also what does the regular-ass top suggest about the CPU usage (and processes)?
Offline
I purged htop and installed it from scratch. Seems to have fixed the issue. Thank you for suggestions.
Offline