Skip to content

Infiniband on Ganglia

jervermex edited this page Feb 12, 2016 · 3 revisions

How to view IB traffic on Ganglia

I realize that in Ganglia, there was not a metric por default that permit show the traffic of InfiniBand Network (IB). As i'm new on this tecnology, i will be sure that the Ib is really used, and how to show this. I've found a script in python that measure the traffic on IB. So i write a rpm file that will install on master and nodes the ganglia script, and permite show the traffic.

You could use the binary RPM , or the source RPM and compile it as show below. Install the RPM file on the master:

# rpm -ivh ganglia-ib-metric-1.0-0.noarch.rpm
Preparing...                ########################################### [100%]
   1:ganglia-ib-metric      ########################################### [100%]

You should follow the Rocks documentation to install this package on the nodes. You should have a line as this in your extend-compule.xml:

<package>ganglia-ib-metric</package>

After reinstall the node , you should select in Gnaglia web page this 4 new metrics:

  • ib_bytes_in
  • ib_bytes_out
  • ib_pkts_in
  • ib_pkts_out

How to compile the source RPM

# rpm -ivh ganglia-ib-metric-1.0-0.src.rpm
1:ganglia-ib-metric      ###########################################[100%]

At this, you should have a "rpmbuild" directory in your root's HOME. You can compile the rpm as this now:

# rpmbuild -ba /root/rpmbuild/SPECS/ganglia-ib-metric.spec
Exécution_de(%prep): /bin/sh -e /var/tmp/rpm-tmp.eesykx
umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
 ../..
Wrote: /root/rpmbuild/SRPMS/ganglia-ib-metric-1.0-0.src.rpm
Wrote: /root/rpmbuild/RPMS/noarch/ganglia-ib-metric-1.0-0.noarch.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.XYCaDB
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd ganglia-ib-metric
+ rm -rf /root/rpmbuild/BUILDROOT/ganglia-ib-metric-1.0-0.x86_64
+ rm -rf /var/tmp/ganglia-ib-metric
+ rm -rf /root/rpmbuild/BUILD/ganglia-ib-metric
+ exit 0

As you can note, the rpm was build in "/root/rpmbuild/RPMS/noarch/ganglia-ib-metric-1.0-0.noarch.rpm" .