LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-23-2013, 10:14 PM   #1
dman777
Member
 
Registered: Dec 2010
Distribution: Gentoo
Posts: 224

Rep: Reputation: 8
Comparing Cached Free Memory with Top, Meminfo, and Free


with:

cat /proc/meminfo && free -k && top -n1 | head

I am trying to compare the cached ram that is free for use. For these amount info in:

top: ###### cached
meminfo: ##### inactive
free: ##### free for buffers/cached

They are not the same or that close. Why is this?
 
Old 04-24-2013, 07:26 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,483

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Because they are different metrics.
"Inactive" is a subset of "cached+buffers" - the numbers in the second line of "free" (to which I presume you are referring) are a calculated indication of "total" free memory on the system.
 
Old 04-27-2013, 11:03 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,648
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Moved: This thread is more suitable in Linux - Software and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
free, top and htop show different memory usage wulp Linux - General 2 07-13-2011 01:22 AM
vmstat and top shows wrong free memory ? czezz Solaris / OpenSolaris 15 02-05-2010 09:02 AM
What does free memory mean in top? blittrell Linux - Newbie 3 08-05-2009 01:10 PM
Why doesnt top or free show swap memory usage ? exceed1 Linux - General 15 08-03-2009 09:38 PM
web browsers slow, little memory free, pleae review output from top jeffreybluml Linux - Newbie 31 07-03-2004 09:15 PM


All times are GMT -5. The time now is 08:12 PM.

Main Menu
Advertisement
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