Newbie question about 2.4.21 kernel /proc/meminfo caculation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]