GithubHelp home page GithubHelp logo

secsilm / bifrost Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 3.0 155 KB

Connect gpus with your eyes.

License: MIT License

Python 99.24% Shell 0.76%
gpu gpu-monitoring dash plotly pyhon3 python dash-app dash-plotly deep-learning dashboard

bifrost's Introduction

Bifrost: A Simple GPU Monitor

简体中文

A simple dash-based GPU monitor that uses web pages to continuously view GPU usage.

example

Features

  • Use the webpage to continuously view basic GPU usage, including GPU usage, remaining graphics memory, temperature, and fan speed
  • Check who is using the GPU, including user, process ID, process creation time, process creation commands, etc. For details, see the description below.

Dependencies

Bifrost relies mainly on the following:

  • Python 3.6+
  • dash
  • psutil
  • pandas
  • numpy
  • nvidia-ml-py3

You can install these dependencies with the following command:

pip install dash psutil pandas numpy nvidia-ml-py3

You can also use requirements.txt to install them:

pip install -r requirements.txt

Usage

python app.py

or using gunicorn:

gunicorn -c config.py app:server

Then open http://locahost:8150 or http://{your_ip}:8150 in your browser. Bazinga!

Field description

  • gpu: GPU ID
  • pid: The process ID
  • used_gpu_mem: The GPU memory used by the process
  • username: The owner of the process
  • name: The Process name
  • create_time: The process creation time
  • status: The process status
  • cpu_percent: CPU utilization of the process
  • cpu_num: Which CPU this process is currently running on
  • memory_percent: Memory utilization of the process
  • num_threads: The number of threads currently used by this process
  • cmdline: The command line this process has been called

LICENSE

MIT.

bifrost's People

Contributors

dependabot[bot] avatar secsilm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bifrost's Issues

The cpu_percent always return 0

For exzample,

The official document explains the reason:

When interval is 0.0 or None compares process times to system CPU times elapsed since last call, returning immediately. That means the first time this is called it will return a meaningless 0.0 value which you are supposed to ignore.

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.