libmsr

Source Code:
View the libmsr source code on github here

Developer Documentation:
View doxygen code documentation here

User How-To Guides:
General libmsr usage
Using the batch interface
Using the RAPL Features
Monitoring performance counters
Monitoring PCI configuration registers

Additional Tools:
powmon
msrmod

Welcome to powmon

Power monitoring utility

This directory contains three libmsr based power monitors:

  1. powmon - Samples and prints power consumption and allocation per socket for systems with 2 sockets
  2. power_wrapper_static - Samples and prints power consumption and allocation per socket for systems with 2 sockets after setting a power cap
  3. power_wrapper_dynamic - Samples and prints power consumption and allocation per socket for systems with 2 sockets and adjusts the cap stepwise every 500 ms

----- Building -----

These tools are built using GNU autotools. You will need to use autotools to generate the configure script and the configure script to generate the makefiles for your environment.

To generate the configure script:

$ autoreconf -if

To generate the makefiles:

$ ./configure --prefix=/usr/local/

To make and install the binaries:

$ make install

Each monitor includes a usage string. All three monitors are wrappers around some other process that will be executing on the node and include logic so that only one monitor is run per node.