LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 07-12-2011, 08:47 PM   #1
wulp
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, 09:32 PM   #2
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Mageia, Mint
Posts: 8,098

Rep: Reputation: 1538Reputation: 1538Reputation: 1538Reputation: 1538Reputation: 1538Reputation: 1538Reputation: 1538Reputation: 1538Reputation: 1538Reputation: 1538Reputation: 1538
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, 01:22 AM   #3
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,425

Rep: Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159Reputation: 1159
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.
 
  


Reply


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


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


All times are GMT -5. The time now is 07:53 PM.

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