Giter Site home page Giter Site logo

tomix86 / oneagent-nvbit-extension Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 405 KB

A Dynatrace OneAgent extension for gathering NVIDIA GPU metrics using NVBit

License: MIT License

CMake 5.53% Cuda 32.64% C++ 41.59% C 0.23% Python 20.01%
cuda dynatrace-oneagent gpu nvidia-gpu monitoring dynatrace nvbit

oneagent-nvbit-extension's Introduction

⚠️ This project was a proof of concept prepared during the course of my doctoral studies. It was abandoned early in development phase and is not stable. Nevertheless, feel free to draw inspiration and build upon it. ⚠️

OneAgent NVBit Extension

Foreword

Created by Tomasz Gajger.

Notice: although the author is a Dynatrace employee, this is a private project. It is not maintained nor endorsed by the Dynatrace.

The project is released under the MIT License.

Overview

A Dynatrace OneAgent extension for gathering NVIDIA GPU metrics using NVIDIA Binary Instrumentation Tool (NVBit).

The extension consists of two parts:

  • native module, which is injected into monitored applications, gathers and publishes measurements,
  • Python extension responsible for providing configuration to the native module, retrieving the metrics, aggregating them and sending to Dynatrace cluster.

All metrics are process-specific and reported per-PGI. The extension is capable of monitoring multiple GPUs, the metrics coming from all the devices will be aggregated and sent as combined timeseries. There is no support for sending separate timeseries per device.

Requirements

Setup and configuration

For a list of available configuration options, see extension README.

All processes for which the metrics should be gathered need to be instrumented manually with native module.

Reported metrics

The table below outlines metrics collected by the extension. Figures 1 and 2 exemplify how metrics are presented on the WebUI.

Key Metric description
instructions_per_second Count of instuctions executed per second
gpu_occupancy Average occupancy achieved by kernels
gmem_access_coalescence Average global memory accesses coalescence factor achieve by kernels

If there are multiple GPUs present, the metrics will be displayed in a joint fashion, i.e:

  • instructions_per_second will be a sum of instructions executed on all devices,
  • gpu_occupancy and gmem_access_coalescence will be an average from per-device usage metrics.

Host metrics display
Fig 1. Host metrics reported by the extension

PGI metrics display
Fig 2. PGI metrics reported by the extension

Planned metrics (future enhancements)

  • Global memory access efficiency (coalescence factor)
  • Branch divergence
  • GPU time (the time it took for the computations on GPU to complete)

Alerting

There are no built-in alerts defined yet.

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.