linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mike Fedyk <mfedyk@matchmail.com>
To: kernwek jalsl <edityacomm@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Rmap was: 2.4.20 page cache information
Date: Tue, 2 Dec 2003 10:33:10 -0800	[thread overview]
Message-ID: <20031202183310.GT1566@mis-mike-wstn.matchmail.com> (raw)
In-Reply-To: <20031202123323.73771.qmail@web20712.mail.yahoo.com>

On Tue, Dec 02, 2003 at 04:33:23AM -0800, kernwek jalsl wrote:
> Hello Everyone;
> 
> On my embedded system having 64MB of RAM and no swap,
> I see the  following information on opening
> /proc/meminfo:
> 

Everything goes through the page cache, including all of your apps.  The
executables are mapped through the page cache, cache is combined with     
executable data.

And you have a kernel patched with the rmap VM.

All numbers are seperate below:

>        total:    used:    free:  shared: buffers: 
> cached:
> Mem:  62894080 47947776 14946304        0  4964352
> 23674880
> Swap:        0        0        0
> MemTotal:        61420 kB

MemTotal = 

> MemFree:         14596 kB
> Active:          32340 kB
> Inact_dirty:         0 kB
> Inact_laundry:    6336 kB
> Inact_clean:       236 kB
> Inact_target:     7780 kB

Not sure why Inact_target is in there, but it adds up almost perfect to
memtotal.

These below are within the active/inactive lists:

> MemShared:           0 kB
> Buffers:          4848 kB
> Cached:          23120 kB
> SwapCached:          0 kB

> ActiveAnon:      10760 kB
> ActiveCache:     21580 kB

Remember, that's active.  If it's not active, then it's in the inactive
list.  And it doesn't show inactive_anon memory (because it's not on a
seperate list)

> HighTotal:           0 kB
> HighFree:            0 kB
> LowTotal:        61420 kB
> LowFree:         14596 kB
> SwapTotal:           0 kB
> SwapFree:            0 kB
> 

Don't try adding the numbers on stock 2.4, they're just not fully accounted
in /proc/meminfo, but with rmap you can get close.

> As I see the total memory belonging to page cache is 
> 23MB and the anonymous list is 10MB. But if I count
> the RSS values for all the processes running on the
> system, it hardly comes to 15MB. Where is the rest of
> the 18MB? If I understand the "cached:" = (pages in
> the page cache - buffer cache). Even if I am doing
> lots of file activity; I cannot imagine the file
> system reads and writes holding up 18MB of the page 
> cache. Am I missing something here?


      reply	other threads:[~2003-12-02 18:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-02 12:33 2.4.20 page cache information kernwek jalsl
2003-12-02 18:33 ` Mike Fedyk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031202183310.GT1566@mis-mike-wstn.matchmail.com \
    --to=mfedyk@matchmail.com \
    --cc=edityacomm@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).