linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Vincent Li <vincent.mc.li@gmail.com>
To: Linux-MM <linux-mm@kvack.org>
Subject: Newbie question about 2.4.21 kernel /proc/meminfo caculation
Date: Tue, 11 May 2010 21:54:23 -0700	[thread overview]
Message-ID: <AANLkTinkQLObl8EVFtlLyqVHF-q_cZNnDUumdmQjmBLx@mail.gmail.com> (raw)

I am running an old kernel  2.4.21, I am curious how each items add up
to the MemTotal or any simple addition math in them?

for example:

 # cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  1049841664 1024647168 25194496        0 31010816 163115008
Swap: 2371338240 26906624 2344431616
MemTotal:      1025236 kB
MemFree:         24604 kB
MemShared:           0 kB
Committed:      257936 kB
Buffers:         30284 kB
Cached:         148412 kB
SwapCached:      10880 kB
Active:         276704 kB
ActiveAnon:     164016 kB
ActiveCache:    112688 kB
Inact_dirty:     37688 kB
Inact_laundry:   15400 kB
Inact_clean:     14888 kB
Inact_target:    68936 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:      1025236 kB
LowFree:         24604 kB
SwapTotal:     2315760 kB
SwapFree:      2289484 kB
CommitLimit:   2828376 kB
Committed_AS:   257936 kB
HugePages_Total:   154
HugePages_Free:      0
Hugepagesize:     4096 kB

I found that Inact_target = Inact_dirty + Inact_laundry + Inact_clean, but

MemTotal = MemFree + Buffers + Cached + Active + Inact_target +
CommitLimted_AS + ?

Tried to dig into 2.4.21 kernel source code, have not be able to find
those memory data caculations, any pointer would be greatly
appreciated!

Thanks

Vincent Li

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

                 reply	other threads:[~2010-05-12  4:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=AANLkTinkQLObl8EVFtlLyqVHF-q_cZNnDUumdmQjmBLx@mail.gmail.com \
    --to=vincent.mc.li@gmail.com \
    --cc=linux-mm@kvack.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