How do I interpret the memory usage information from htop

LinuxHtop

Linux Problem Overview


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!

Linux Solutions


Solution 1 - Linux

htop author here.

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

Yes.

From the [htop faq][1]:

>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!

[1]: http://hisham.hm/htop/index.php?page=faq "htop faq"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionolalaView Question on Stackoverflow
Solution 1 - LinuxHisham H MView Answer on Stackoverflow