AndyA / htop-osx

A port of htop to OSX
http://hexten.net/
GNU General Public License v2.0
180 stars 40 forks source link

Physical Free Memory Reported Wrong #4

Open omellette opened 13 years ago

omellette commented 13 years ago

Hello, after installing the port, I believe that the physical memory report may be incorrect.

For example, in top, I get: 1933M used, 6258M free In htop: 5774 / 7936MB

Not a critical issue by any means, but I realize that it may get annoying to read after awhile. I had a similar issue with top on ubuntu, where the program was reporting this number as used memory + cached memory + buffers, while I tend to think of "free memory" as only the used part.

gthb commented 13 years ago

Same for the RES and VIRT columns, they seem to be off by a factor of 4. In top, with o -rsize:

PID     ...     RPRVT   RSHRD   RSIZE   VPRVT   VSIZE
43423   ...     446M    50M     491M    914M    4296M

and in htop:

  PID   ...     VIRT   RES
43423   ...     16.8G 1962M

I noticed this on 10.5.8 before upgrading, and still see it on 10.6.6. Version is htop 0.8.2.1, current in MacPorts.

Anze commented 12 years ago

Noticed same issue for the 64bit system and more than 4gb memory. With compiling htop for 64bit issue fixed.