Advertisement

08.05.2008 at 11:54AM PDT, ID: 23623377
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

How can I interpret the "available" memory under Linux?

Asked by jjrrww in Linux Programming, Linux, Kernel And Operating System Specific Programming

Tags:

I'm trying to find a reasonable representation of "available" memory.  "Free" memory isn't very accurate, as Linux is good at putting otherwise unused RAM to good use if it's otherwise idle.

Can someone help me decipher the relationship of the various values in file /proc/meminfo ??
Given /proc/meminfo (at the bottom of this note), I would expect, at a minimum, that:
                MemTotal = MemFree + MemShared + Active + Inact_dirty + Inact_clean
Given these numbers, 2059580 = 29180+192+10120+1679168+142168 + ( 198752 )

So about 10% ( 198752 ) remains unaccounted for.  Is that the kernel?  Not obvious, since some of the documentation I have read defines MemTotal as, "Total usable ram (i.e. physical ram minus a few reserved bits and the kernel binary code)".  Other docs are more casual in their wording and don't indicate that the kernel is excluded.

Further, the wording of some of the documentation (and the sheer force of arithmetic) implies that Caches and Buffers are subsets of the active and inactive pages, but is is far from clear.

I'd like to a) understand how these various statistics knit together and b-and-more-importantly) gather a metric that indicates the amount of "memory available", which I suppose means "available to become active" and therefore assigned to the working set of a process.  I've read several writeups on memory management, but "Cached  The amount of physical RAM, in kilobytes, used as cache memory" is pretty useless.

I'm looking for education as much as answers - good references are gold.  (The one's I've read are sloppy or presume the answers I am seeking)

Thanks,
John

MemTotal:      2059580
MemFree:      29180
MemShared:      192
Buffers:      53016
Cached:      1778248
SwapCached:      0
Active:      10120
Inact_dirty:      1679168
Inact_clean:      142168
Inact_target:      64
HighTotal:      1179632
HighFree:      25996
LowTotal:      879948
LowFree:      3184
SwapTotal:      1048552
SwapFree:      1048552
NrSwapPages:      262138Start Free Trial
[+][-]08.05.2008 at 12:55PM PDT, ID: 22164529

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.05.2008 at 05:02PM PDT, ID: 22166146

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.05.2008 at 11:33PM PDT, ID: 22167584

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 05:30AM PDT, ID: 22169346

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Linux Programming, Linux, Kernel And Operating System Specific Programming
Tags: Deciphering /proc/meminfo on Linux
Sign Up Now!
Solution Provided By: jjrrww
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.06.2008 at 05:55AM PDT, ID: 22169582

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 06:40AM PDT, ID: 22170036

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628