Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Process CPU state not shown on MacOS #622

Closed
BenBE opened this issue May 9, 2021 · 9 comments
Closed

Process CPU state not shown on MacOS #622

BenBE opened this issue May 9, 2021 · 9 comments
Labels
bug 🐛 Something isn't working good first issue 🥇 Good for newcomers MacOS 🍏 MacOS / Darwin related issues
Milestone

Comments

@BenBE
Copy link
Member

BenBE commented May 9, 2021

Sorted by CPU, but it doesn't shows it correctly which process is taken CPU:
выява
I've builded rust from mac ports.
выява

Originally posted by @sharewax in #446 (comment)

@BenBE BenBE added bug 🐛 Something isn't working MacOS 🍏 MacOS / Darwin related issues labels May 9, 2021
@BenBE BenBE added this to the 3.0.6 milestone May 9, 2021
@sharewax
Copy link

sharewax commented May 9, 2021

Apple M1 Silicon btw, Big Sur 11.3.1.

@BenBE
Copy link
Member Author

BenBE commented May 9, 2021

@sharewax: Can you test if the CPU state (the column labelled S left to the CPU%) has been showing previously on some release version and if so, on which one? You can get to the various release versions quickest by cloning the git repository and checking out the various tags.

If you find an old version that worked. it'd be also really helpful if you could do a git bisect from there. If you need some assistance with that, feel free to ask.

@sharewax
Copy link

sharewax commented May 9, 2021

Checked back to 2.1.0 version (2018 year) - it doesn't show correct state. Does it have sence to check more? Probably not.
My main question was not about state, but about CPU percent - because it's shows 0.4% for firefox and 0.0 for rustc during compilcation.

@BenBE BenBE added the good first issue 🥇 Good for newcomers label May 9, 2021
@BenBE
Copy link
Member Author

BenBE commented May 9, 2021

Ah, k. In that case I misunderstood you on that part. Nonetheless, the missing state information is something that probably should be fixed. Given that it's been broken for that long strongly hints it never worked.

Regarding the (far too) low CPU usage display, that's probably still some issue with either the read-out or some conversion. Unfortunately I don't have any Apple hardware myself, thus someone else will have to have a look into this.

@risentveber
Copy link

risentveber commented May 30, 2021

To get correct process status S requires to disable SIP csrutil disable (in recovery mode), and after rebooting just start sudo htop - see original hishamhm/htop#701, I think it may help

@BenBE BenBE modified the milestones: 3.1.0, 3.1.1 Jul 15, 2021
@sharewax
Copy link

Currently it works much better than it was:
regular user
выява
sudo htop
выява

htop version 3.1.1

@BenBE
Copy link
Member Author

BenBE commented Oct 24, 2021

This issue is about the S (state) column only showing ?

@sharewax
Copy link

Sorry, my initial bug was about percents of CPU usage. But we found that states doesn't work too.
Currently percents counted normally, but states no.

@BenBE
Copy link
Member Author

BenBE commented Oct 24, 2021

@sharewax Glad to hear the CPU utilization issue got fixed. I split out this one from #446 to avoid mixing different issues in one issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working good first issue 🥇 Good for newcomers MacOS 🍏 MacOS / Darwin related issues
Projects
None yet
Development

No branches or pull requests

3 participants