Skip to content

hmc-cs-clinic-llnl16/Mitos

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mitos

Mitos is a library and a tool for collecting sampled memory performance data to view with MemAxes


Quick Start

Requirements

Mitos requires:

  • A Linux kernel with perf_events support for memory sampling. This originated in the 3.10 Linux kernel, but is backported to some versions of RHEL6.6.

  • Dyninst version 8.2 or higher.

  • hwloc

Building

  1. Make sure that Dyninst is installed and its location is added to the CMAKE_PREFIX_PATH environment variable.

  2. Run the following commands from the root of the MemAxes source:

    mkdir build && cd build
    cmake -DCMAKE_INSTALL_PREFIX=/path/to/install/location ..
    make
    make install
    

Running

  1. Find the mitosrun command in the bin directory in the install directory.

  2. Run any binary with mitosrun like this to generate a folder of mitos output data. For example:

    mitosrun ./examples/matmul
    

    The above command will run the matmul example and create a folder called mitos_###, where ### is the number of seconds since the epoch. The folder will contain:

    mitos_###/
       data/
          samples.csv
       src/
          <empty>
       hardware.xml
    

    Where samples.csv contains a comma-separated list of memory samples, hardware.xml describes the hardware topology (using hwloc) and src is an empty directory where you can put the program source files for use in MemAxes.

    mitosrun can also be fine-tuned with the following parameters:

    [options]:
        -b sample buffer size (default 4096)
        -p sample period (default 4000)
        -t sample latency threshold (default 10)
    

Authors

Mitos and MemAxes were written by Alfredo Gimenez.

Thanks to Todd Gamblin for suggestions and for giving Mitos a proper build setup.

License

Mitos is released as part of MemAxes under an LGPL license. For more details see the LICENSE file.

LLNL-CODE-663358

About

Memory Sampling Tool using Linux perf_events

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 81.8%
  • C 9.8%
  • CMake 8.4%