Theres a mem_shared_func in machine.c when compiling ganglia 2.5.3 on
linux.. and it looks for the text 'MemShared:' inside of /proc/meminfo

But it turns out that phrase no longer exists in the newer linux kernels
like Linux 2.6.0-test1

gmond would segfault because the skip_token function would get to the end
and never matched the phrase, so I just set val.uint32 = 0 in that function
for that metric for now to get gmond going again.

I did a brief search on linux and MemShared and found this text at
groups.google.com,

--
remove-memshared.patch
  Remove /proc/meminfo:MemShared
--

Here is a list of current values that show up with that newer kernel,
considerably more than in 2.4.x series production kernels

--
cat /proc/meminfo
MemTotal:       904660 kB
MemFree:        107992 kB
Buffers:         60724 kB
Cached:         633736 kB
SwapCached:          0 kB
Active:         286952 kB
Inactive:       451448 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       904660 kB
LowFree:        107992 kB
SwapTotal:     2048248 kB
SwapFree:      2048248 kB
Dirty:             164 kB
Writeback:           0 kB
Mapped:          48608 kB
Slab:            48784 kB
Committed_AS:   238212 kB
PageTables:       1648 kB
VmallocTotal:   122824 kB
VmallocUsed:      1448 kB
VmallocChunk:   121316 kB


Reply via email to