Proposal to extend
Ganglia with additional POWER5/6 metrics for AIX 5L and Linux on POWER
The current AIX and Linux implementation is not aware of the IBM
POWER5/6
processor specifics. This is a proposal to extend Ganglia (currently at
version 3.0.4) with such metrics. Details about these metrics can be
found in the documentation further below.
If you have any comments regarding this web page please contact me at: michael@perzl.org
Documentation
of the new proposed POWER5/6 metrics on AIX 5L and Linux on POWER:
Changed source files of
Ganglia v3.0.4 to make it aware of new POWER5/6
processor capabilities:
The following list of Ganglia source files had to be adapted for these
new POWER5/6 processor aware metrics for AIX 5L and Linux on POWER. A
tar.gz file of all changed files as well as a context diff of all
changed files can be found further below.
- configure
- some minor change to get around the -Wall flag
on AIX which the
IBM compilers don't understand
- configure.in
- some minor change to get around the -Wall flag
on AIX which the
IBM compilers don't understand
- gmond/gmond.c
- adapted to incorporate the new proposed POWER5/6 metrics
- lib/apr_net.c
- some changes (defines) required for AIX v4.3.3
- lib/libgmond.c
- adapted to incorporate the new proposed POWER5/6 metrics
- lib/protocol.h
- normally not necessary as it should be generated by rpcgen from
lib/protocol.x,
however, the AIX rpcgen
produced errors, thus it is included here.
- lib/protocol.x
- adapted to incorporate the new proposed POWER5/6 metrics
- lib/protocol_xdr.c
- normally not necessary as it should be generated by rpcgen from
lib/protocol.x,
however, the AIX rpcgen
produced errors, thus it is
included here.
- libmetrics/libmetrics.h
- adapted to incorporate the new proposed POWER5/6 metrics
- libmetrics/aix/metrics.c
- this contains the new proposed POWER5/6 metrics for AIX, nearly
everything rewritten
- libmetrics/linux/metrics.c
- this contains the new proposed POWER5/6 metrics for Linux
- libmetrics/tests/test-metrics.c
- adapted to incorporate the new proposed POWER5/6 metrics
Here is a tar.gz file of all
files
mentioned above: ganglia-3.0.4-patch-ibm-power.tar.gz
The source RPM file containing
everything (also all SPEC files, links see below) can be downloaded
here: ganglia-ibm-power-3.0.4-2.src.rpm
Building
Ganglia v3.0.4 RPMs:
Building Ganglia RPM files is not as difficult as it
may seem. This is a short description of my compile environment and how
I generate the RPM files. All the operations have to be performed as
root user.
Please also check the following
description on my AIX open
source repository.
- My compile environment
- for AIX v4.3.3
- My build host on AIX v4.3.3 is a 43P-270 workstation running
AIX v4.3.3 ML 11 with 2 POWER3 processors running at 375 MHz and 1.5 GB
of
memory.
- I use the GNU compiler from the AIX Toolbox for Linux
Applications in version 2.9-aix51-020209.
- for AIX5L v5.1
- My build host on AIX5L v5.1 is a 44P-270 workstation
running
AIX 5.1 ML 04 with 4 POWER3 processors running at 450 MHz and 8 GB of
memory.
- I use the IBM XL C/C++ compiler version 7 with all
applicable patches for AIX 5.1 ML 04.
- for AIX5L v5.3
- My build host on AIX5L v5.3 is a 44P-270 workstation running
AIX 5.3 ML 00 with 4 POWER3 processors running at 375 MHz and 4 GB of
memory.
- I use the IBM XL C/C++ compiler version 7 with all
applicable patches for AIX 5.3 ML 00.
- for SuSE Linux
- My build host for all SuSE Linux versions is a LPAR (0.2 CPU
entitlement, 1 GB memory) on an OpenPower 710 system running SLES 9 SP
3.
- I use the GNU compiler which comes with SLES 9 SP 3.
- for Red Hat Linux
- My build host for all Red Hat Linux versions is a LPAR (0.2
CPU
entitlement, 1 GB memory) on an OpenPower 710 system running RHEL 4
Update 3.
- I use the GNU compiler which comes with RHEL 4 Update 3.
- Then change to the following directory
- AIX: /opt/freeware/src/packages/SPECS
- SuSE Linux: /usr/src/packages/SPECS
- Red Hat Linux: /usr/src/redhat/SPECS
- There build the RPM packages with the following command:
rpm -ba
<SPEC-FILE>
where <SPEC-FILE>
is one of the following files depending on your platform
- If everything works OK (depending on your environment this may
take a while) you will find the generated
- binary RPM packages
(ganglia-devel, ganglia-gmetad, ganglia-gmond) in the following
directory depending on your platform
- AIX: /opt/freeware/src/packages/RPMS/ppc
- SuSE Linux: /usr/src/packages/RPMS/ppc64
- Red Hat Linux: /usr/src/redhat/RPMS/ppc64
- source RPM package in the following directory depending on your
platform
- AIX: /opt/freeware/src/packages/SRPMS
- SuSE Linux: /usr/src/packages/SRPMS
- Red Hat Linux: /usr/src/redhat/SRPMS