Live data from Hacker News

mactop

github.com

11–20 of 31 posts

Re: mactop

#12

The sudo permission should be added by brew at install time (see how the dotnet SDK handles installation on macs), it's poor ergonomics to have to invoke it manually.

poor ergnomics? yes? but u know what's worse? setuid root executables.

Re: mactop

#13
post #3

Pretty. Top is such a useful sysadmin command for high level sys info, and the new Macs are so quiet I rarely know if a processes has gone out of control, this will be a fun way to investigate that.

Purely subjective of course, but is this prettier than htop in your opinion? I actually felt like it was pretty typical if not a tad ugly, mainly because the color bars seem way to vertically long (i.e. tall/high) to me. It does convey information at a glance, but less vertical space would be an improvement IMHO. I do like the colors chosen though.

My honest first impression was that it's kind of ugly... It also doesn't seem to have a process list??

For a traditional process viewer I'd use htop and for a more complicated TUI ill use btop.

Re: mactop

#14
Tried to install via brew on an M2 and got:

mactop: The arm64 architecture is required for this software. Error: mactop: An unsatisfied requirement failed this build.

Re: mactop

#15
Does anyone have recs for doing really low level performance tuning on Apple Silicon? Xcode Instruments isn’t very easy to use or interpret. Things like what % of time is spent on memory stalls, simd units, etc

Re: mactop

#16
Why does this require elevated privileges to run? Seems ridiculous for a top-like tool.

Re: mactop

#18

The sudo permission should be added by brew at install time (see how the dotnet SDK handles installation on macs), it's poor ergonomics to have to invoke it manually.

it's the same for htop

Re: mactop

#19
post #16

Why does this require elevated privileges to run? Seems ridiculous for a top-like tool.

Tools like these need to be able to read various counters and other registers in the hardware. Note that powermetrics existed in MacOs since the Intel days and mirrors a lot of the x86 information provided by the Intel tool on Linux (the name of which escapes me at the moment).

You really don't want to give unprivileged code access to this data (check out the man page to see all of the information it can give you).

If you want to understand a lot of what this stuff means on Apple Silicon, you should (oddly) check out the Intel x86 documentation: https://www.intel.com/content/www/us/en/developer/articles/t...

Re: mactop

#20
post #15

Does anyone have recs for doing really low level performance tuning on Apple Silicon? Xcode Instruments isn’t very easy to use or interpret. Things like what % of time is spent on memory stalls, simd units, etc

I believe that macOS still ships with DTrace; Xcode Instruments was originally built on top of it.

https://dtrace.org

(Some people find it easier to write a one-line script that reports the timings that they need; I don't know if it helps you.)

Post reply on HN