[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: top vs htop %MEM



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tyler Smith wrote:
> Hi,
> 
> I'm running a process that is very memory intensive (analyzing
> ca. 500,000 phylogenetic trees). It's using 1.6Gb of virtual memory,
> 1.2Gb of physical memory (I have 1.5Gb of RAM). However, htop reports
> only 21.5 for MEM%, while top reports 83.8 for %MEM. I thought that
> htop was just a prettier top, but I can't find an explanation in the
> man pages for the difference in the reported MEM%. VIRT and RES are
> the same for both. Where does the difference come from?
> 
> Not a burning issue, just curious...
> 
> Tyler
> 
> 
The way it appears (to me) is that top is telling you the free memory
including the cache buffer and htop is telling you the free memory
without it.  When I run them, I get the same number if I subtract the
buffer usage from the available memory.

Joe

- --
Registerd Linux user #443289 at http://counter.li.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGQIqAiXBCVWpc5J4RAuT0AJ9qKEPeg0qonvW/s0tUayuHrgCa9QCeJo5K
H9uQc53rFEwN1mXhog85va4=
=l66R
-----END PGP SIGNATURE-----



Reply to: