How do I interpret the memory usage information from htop

We have multiple servers in our lab and I tried to determine which one has more resources currently available. I tried to interpret the information htop displays but I'm not 100% understanding all those numbers.

I have taken a screen shot for each server after issuing htop:

Server #1:

Server #2:

Does server #1 have more memory available than server #2? Should I look at Avg or Mem? Or what other parameter should I look at?

Thanks!


Solution 1:

htop author here.

Does server #1 have more memory available than server #2?

Yes.

From the htop faq:

The memory meter in htop says a low number, such as 9%, when top shows something like 90%! (Or: the MEM% number is low, but the bar looks almost full. What's going on?)

The number showed by the memory meter is the total memory used by processes. The additional available memory is used by the Linux kernel for buffering and disk cache, so in total almost the entire memory is in use by the kernel. I believe the number displayed by htop is a more meaningful metric of resources used: the number corresponds to the green bars; the blue and brown bars correspond to buffers and cache, respectively (as explained in the Help screen accessible through the F1 key). Numeric data about these is also available when configuring the memory meter to display as text (in the Setup screen, F2).

Hope that clears things up! Cheers!