I just pushed out an enhancement to the linux PMDA that adds the NUMA
memory statistics from /sys/devices/system/node/node*/{meminfo,numastat}
SGI has been using an early version of this in a different PMDA for
quite a few years, but since more and more PCs are also NUMA it seems
useful to push this out.
I have not yet tested this on a linux PC *without* the node information
exported. I'll do that tomorrow.
Reviews are appreciated:
git://oss.sgi.com/mort/pcp.git in dev branch:
commit 3eaece56464cce94b116a5f401ca0b62ae5c8819
Author: Martin Hicks <mort@xxxxxxx>
Date: Mon Dec 21 17:51:44 2009 -0600
Export NUMA memory statistics from the linux kernel
There are per-node meminfo (like /proc/meminfo) and hit/miss statistics
for the libnuma memory policies.
Signed-off-by: Martin Hicks <mort@xxxxxxx>
src/pmdas/linux/GNUmakefile | 4 +-
src/pmdas/linux/clusters.h | 1 +
src/pmdas/linux/help | 36 ++++
src/pmdas/linux/indom.h | 1 +
src/pmdas/linux/linux_table.c | 114 ++++++++++++
src/pmdas/linux/linux_table.h | 66 +++++++
src/pmdas/linux/numa_meminfo.c | 173 +++++++++++++++++
src/pmdas/linux/numa_meminfo.h | 31 +++
src/pmdas/linux/pmda.c | 401 ++++++++++++++++++++++++++++++++++++++++
src/pmdas/linux/root_linux | 50 +++++
10 files changed, 875 insertions(+), 2 deletions(-)
thanks
mh
|