Giter VIP home page Giter VIP logo

cpu-gpu-utilisation-logging's Introduction

CPU and GPU utilisation logging

Logs GPU and CPU utilization, either to stdout or to a CSV file.

log_gpu_cpu_stats  [OPTION1 [ARG1]] [OPTION2 [ARG2]] ... [FILE]

Usage

log_gpu_cpu_stats
log_gpu_cpu_stats -l 10
log_gpu_cpu_stats compute_usage_log.csv
log_gpu_cpu_stats --no-header -l 5 -n 60 compute_usage_log.csv

Options

-h, --help          Show usage and exit.

--loop <INTERVAL>
-l <INTERVAL>       Loop every INTERVAL seconds. Default is 1 second.
                    A minimum of 0.5 is recommended, to get reliable CPU
                    data.

--niter <MAXITER>
-n <MAXITER>        Repeat at most MAXITER times. Default is -1,
                    which corresponds to forever (send interrput signal
                    to terminate).

-H, --no-header     Disable header in table output. Default is enabled.

--header            Enable header in table output. Default is enabled.

-c, --csv           Output in csv style. Default style is csv if FILE is
                    set.

-t, --tabular       Output in ascii table style. Default style is tabular
                    if FILE is not set (output is sent to stdout).

-I, --date-iso      Show time in ISO format. Default is seconds (-s flag).

-s, --date-seconds  Show time in seconds since Unix epoch (with ms
                    precision reported). Enabled by default.

--date <FORMAT>
-d <FORMAT>         Show time in custom format, FORMAT.

[FILE]              If present, output is appended to FILE. If omitted,
                    output is sent to stdout.

Requirements

  • POSIX-compliant shell (tested in both bash and dash)
  • nvidia-smi
  • top
  • bc

cpu-gpu-utilisation-logging's People

Contributors

scottclowe avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

robbieearle

cpu-gpu-utilisation-logging's Issues

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.