Giter Club home page Giter Club logo

autoperf's Introduction

AutoPerf

What is AutoPerf?

Autoperf is a tool for automated diagnosis of performance anomalies in multithreaded programs. It operates in two phases:

  1. Profiling: Collects hardware performance counters from annotated sections of a program by running it with performance representative inputs.
  2. Anomaly Detection: Creates a model of application performance behavior by training an Autoencoder network. It finds out the best performing network by training for input dataset(collected in profiling phase). AutoPerf uses the trained model for anomaly detection in future executions of the program.

More details about the design and implementatoin of AutoPerf can be found in this conference paper, which is accepted at NeurIPS'19 for publication.

How to run?

  • Profiling:
    • Autoperf uses PAPI interface for performance counters. Extract and install from source (papi-5.5.1.tar.gz)
    • Build profiler library:
      • cd AutoPerf/proflier
      • make
    • Prepare candidate program:
      • Annotate functions:
        • add header : #include "perfpoint.h"
        • mark start : perfpoint_START(marker_id)
        • mark end : perfpoint_END() NOTE: use mark_id as parameter to uniquely identify code region
      • Link profiler library libperfpoint.so with candidate "program" or use LD_PRELOAD=/path/to/libperfpoint.so (example: Default.mk in tests dir)
    • Run program :
      • create list of performance counter names in file named COUNTERS in binary path [ or copy the file Autoperf/profiler/scripts/COUNTERS]
      • copy Autoperf/profiler/scripts/run_profiler.py in banary path
      • set PERFPOINT_LIB_PATH="path/to/libperfpoint" in run_profiler.py
      • python run_profiler.py PATH/TO/OUTPUT/PROFILE_DATA PROGRAM_BINARY PROGRAM_ARGS [runID]
      • NOTE: use optional runID to store multiple executions data in separate directories
  • Anomaly Detection:
    • Requirements: Python 2.7+, keras library
    • cd AutoPerf/autoperf
    • set NUMBER_OF_COUNTERS and NO_OF_HIDDEN_LAYER_TO_SEARCH in configs.py
    • python autoperf.py PATH/TO/PROFILE_DATA_FOR_TRAINING PATH/TO/PROFILE_DATA_FOR_TEST PATH/TO/OUTPUT_DETECTION_RESULTS
    • Output files:
      • accuracy.out : Detection results
      • network_training.log : Network configs + training error + validation error

autoperf's People

Contributors

mejbah avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.