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

/proc/meminfo for 2.0, 2.2 & 2.4.x



Hi everyone.

I'm working on a script that parses /proc/meminfo for output to rrd-tool.

It's part of lrrd-client, and currently it parses the Mem: and Swap: lines
for its information, and if they're not there, it goes through rest of the
file to parse the output.  I'm thinking of reversing that parsing, or
eliminating the Mem: and Swap: line parsing completely (the information is
available lower in the file).

I'm planning on supporting 2.4 (stock, rmap and aa VM), as well as 2.6
kernels, but I don't run 2.0 or 2.2 kernels anymore.

Instead of booting a bunch of old kernels, maybe you guys could post the
output of /proc/meminfo to the list.

I'm interested in:
 o 2.0 and any variations (fond memories :)
 o 2.2 and any variations (haven't booted this in a while)
 o 2.4 with rik's origional VM (similair to rmap, but don't have any examples)
 o 2.4 with -aa VM (should be same as stock)
 o 2.4 with rmap VM (adds some fields for active, and inactive lists)
 o 2.4 with stock VM (no VM patches!)
 o 2.4 and any variations (if there's anything else in 2.4 that modifies
                           /proc/meminfo!!!)
 o 2.6 and any variations

Let the posting begin! :)

Here's what I get on a 2.4.20-rmap15e kernel:
        total:    used:    free:  shared: buffers:  cached:
Mem:  923860992 835952640 87908352        0 94367744 427601920
Swap: 493322240  8093696 485228544
MemTotal:       902208 kB
MemFree:         85848 kB
MemShared:           0 kB
Buffers:         92156 kB
Cached:         413944 kB
SwapCached:       3636 kB
Active:         643084 kB
ActiveAnon:     243232 kB
ActiveCache:    399852 kB
Inact_dirty:     41488 kB
Inact_laundry:   36340 kB
Inact_clean:     16300 kB
Inact_target:   147440 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       902208 kB
LowFree:         85848 kB
SwapTotal:      481760 kB
SwapFree:       473856 kB

Here's another with the 2.4.23 stock VM:
        total:    used:    free:  shared: buffers:  cached:
Mem:  526766080 339722240 187043840        0 17928192 160370688
Swap: 642072576        0 642072576
MemTotal:       514420 kB
MemFree:        182660 kB
MemShared:           0 kB
Buffers:         17508 kB
Cached:         156612 kB
SwapCached:          0 kB
Active:          56060 kB
Inactive:       249868 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       514420 kB
LowFree:        182660 kB
SwapTotal:      627024 kB
SwapFree:       627024 kB



Reply to: