linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Newbie question about 2.4.21 kernel /proc/meminfo caculation
@ 2010-05-12  4:54 Vincent Li
  0 siblings, 0 replies; only message in thread
From: Vincent Li @ 2010-05-12  4:54 UTC (permalink / raw)
  To: Linux-MM

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>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-12  4:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-12  4:54 Newbie question about 2.4.21 kernel /proc/meminfo caculation Vincent Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox