cjbassi / gotop

A terminal based graphical activity monitor inspired by gtop and vtop
GNU Affero General Public License v3.0
7.38k stars 443 forks source link

Incorrect memory usage reported #88

Open yurivict opened 5 years ago

yurivict commented 5 years ago

On FreeBSD, it shows 10.9 GB / 24 GB when the top utility shows

Mem: 3379M Active, 2029M Inact, 8809M Laundry, 7180M Wired, 1561M Buf, 2474M Free
ARC: 4001M Total, 3809M MFU, 168M MRU, 64K Anon, 12M Header, 13M Other
     3830M Compressed, 4002M Uncompressed, 1.04:1 Ratio
Swap: 4096M Total, 3073M Used, 1023M Free, 75% Inuse

Only 2.4 GB is free, but it shows that 24-10.9=13.1 GB is free.

You might also want to show all numbers, since you have space there.

cjbassi commented 5 years ago

So it's showing 10.8 GB / 24 GB but it should show like 21 GB / 24 GB? And this is just for the 'Main' memory and not Swap? And could you provide the output of uname -a? Thanks!

yurivict commented 5 years ago

Yes, this is only for the Main memory.

$ uname -a
FreeBSD yv.noip.me 11.2-STABLE FreeBSD 11.2-STABLE #0 r338762M: Tue Sep 18 18:20:50 PDT 2018     unknown@nohost.com:/usr/obj/usr/src/sys/GENERIC  amd64
mgamsjager commented 5 years ago

You might also want to show all numbers, since you have space there.

That would make more sense because only showing Free memory is not that interesting.

cjbassi commented 5 years ago

Showing all numbers would be more interesting, but the graph is only intended to show free memory and the label should probably reflect that imo.