1

I have installed htop using homebrew on an M1 Macbook Air. Below, one can see that the used memory reported by htop and Activity Monitor are different.

I am aware of other answers in this website where people recommend htop to be invoked under sudo privileges: sudo htop. In theory, this should make them both match. However, the screenshot below was taken just after having invoked it under sudo.

What am I missing?

enter image description here

1 Answer 1

3

The two programs are simply displaying different things. One says "Mem" as an explanation and the other says "Memory Used" - they're not the same thing.

If you take values for "App Memory" and "Wired Memory" from Activity Monitor and add them up, you get the same value as the "Mem" value in htop.

2
  • The formula isn't exact. In my case, htop shows 14G used, App 15.4 + Wired 2.9 totals to over 17G. But Compressed shows 5.6 G. So, who knows... Activity Monitor shows Total Memory Used: 24.5 G for me in this case. Subtracting all compressed memory still results in 18 G, so... no match either. Commented Aug 10, 2023 at 22:19
  • My App Memory alone is more than what htop is showing... Commented Oct 14, 2023 at 13:18

You must log in to answer this question.

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