Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


LinkBack Search this Thread
Old 07-12-2011, 07:47 PM   #1
LQ Newbie
Registered: Mar 2011
Posts: 8

Rep: Reputation: 0
Question free, top and htop show different memory usage

I'm trying to meter my memory usage. When I use these different programs, they all show me using different amounts of RAM. Why is this?
Old 07-12-2011, 08:32 PM   #2
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 6,880

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I'm just ran all three of them side-by-side and their results seemed to be consistent with each other, although htop seems to display slightly different metrics from free and top.
Old 07-13-2011, 12:22 AM   #3
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,042

Rep: Reputation: 952Reputation: 952Reputation: 952Reputation: 952Reputation: 952Reputation: 952Reputation: 952Reputation: 952
Consider all of these to be approximations, and consider their numbers as being intended to be viewed in relation to other rows in the outputs of the same program ... not for comparison to different programs.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Htop vs 'top' vs 'free' disparity schachwizard Ubuntu 2 09-22-2010 04:33 PM
Unknown CPU usage - top and ps don't show the cause gimpy530 Linux - General 8 10-15-2009 01:32 PM
Why doesnt top or free show swap memory usage ? exceed1 Linux - General 15 08-03-2009 08:38 PM
Memory usage using TOP FantaJ Linux - Newbie 2 03-05-2008 12:35 PM
How do I read the memory usage in top? jaakkop Linux - Hardware 1 03-10-2006 10:12 AM

All times are GMT -5. The time now is 08:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration