10

I'm using htop on my Mac. I put it side by side with Activity Monitor, but the reports are widely different.

On Activity Monitor, I can get finder using up to 100% of CPU, while it doesn't show at all the process on htop. Is there a better tool for monitoring processes for Yosemite?

0

1 Answer 1

12

In order to get accurate processes, cpu usage and accumulative time, the user running htop should be root. This is not the case with top, because it has the "set-user-ID-on-execution bit" (suid) set.

Execute sudo htop from your user terminal or if you trust your local users add the suid to the binary (# chmod u+s path-to-htop-binary).

1
  • 1
    Thank you, it's been a problem for months now and I've been blaming the htop for missing out processes with high CPU usage (and apparently different uid's).
    – antimirov
    Commented Oct 23, 2019 at 8:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .