You are not logged in.

#1 2023-04-07 08:39:49

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

[solved] htop no longer showing CPU utilisation

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

#2 2023-04-07 11:56:06

dakota
Member
Registered: 2016-05-20
Posts: 280

Re: [solved] htop no longer showing CPU utilisation

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

#3 2023-04-07 13:19:11

seth
Member
Registered: 2012-09-03
Posts: 51,584

Re: [solved] htop no longer showing CPU utilisation

The processes are ordered by PID, not CPU usage?

Online

#4 2023-04-07 16:25:23

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: [solved] htop no longer showing CPU utilisation

Processes are ordered by CPU usage, from the most taxing.

Offline

#5 2023-04-07 16:38:07

seth
Member
Registered: 2012-09-03
Posts: 51,584

Re: [solved] htop no longer showing CPU utilisation

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)?

Online

#6 2023-04-08 07:48:16

Lockheed
Member
Registered: 2010-03-16
Posts: 1,521

Re: [solved] htop no longer showing CPU utilisation

I purged htop and installed it from scratch. Seems to have fixed the issue. Thank you for suggestions.

Offline

Board footer

Powered by FluxBB