Why does this require elevated privileges to run? Seems ridiculous for a top-like tool.
even htop needs sudo to run properly
mactop
21–30 of 31 posts
Re: mactop
#22Why 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). I…
How do Activity Monitor and AlDente get detailed power data? They don't prompt me to elevate privileges.
tyvm for the docs links! I still don't have any specifics in mind for useful attacks one could carry out using the data mentioned in `man powermetrics`. I assume the worry is that this stuff could play a role in some kinds of side-channel attacks but idrk much about low-level OS stuff. :-\
Re: mactop
#23The 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.
The sudo is for the runtime permissions, not the installation, of the program. dotnet requires (does it? it's been a while since I touched it but I vaguely recall this) sudo for installation, but not for execution.
• .NET installers install to systemwide locations and therefore typically require elevated privileges.
• Microsoft supplies both install scripts (dotnet-install) and .tar.gz/.zip archives to support unprivileged installation to arbitrary locations on all supported platforms.
• The SDK and self-contained .NET executables run from anywhere, but certain SDK functionality may require elevated privileges on some platforms (e.g., installing a trusted self-signed developer certificate).
• Framework-dependent executables use the DOTNET_ROOT environment variable to locate runtime components installed in a non-default location.
Re: mactop
#24Earlier quoted context omitted.
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). I…
The Linux tool is called Intel powertop. How do Activity Monitor and AlDente get detailed power data? They don't prompt me to elevate privileges. tyvm for the docs links! I still don't have any specifics in mind for useful attacks one could carry out using the data mentioned in `man powermetrics`. I assume the worry is that this stuff could play a role in some kinds of side-channel attacks but idrk much about low-lev…
(it's been a while since I've messed with this stuff, I could be missing some details)
Re: mactop
#25Very nice, an instant addition to my $PATH. In particular I like having the ANE usage displayed, as this is typically invisible in other top-like tools.
Re: mactop
#26Tried 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
#27Tried 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.
Is your homebrew still running as intel under Rosetta?
Re: mactop
#28Re: mactop
#29Tried 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.
Is your homebrew still running as intel under Rosetta?
I followed the steps to uninstall and reinstall, but it didn't work until I manually added this to ~/.bash_profile:
export PATH=/opt/homebrew/bin:$PATH
Re: mactop
#30CPU usages seems very very high for this.