A lightweight web dashboard for monitoring GPU usage
Project description
gpuview
GPU is an expensive resource, and deep learning practitioners have to monitor the
health and usage of their GPUs, such as the temperature, memory, utilization, and the users.
This can be done with tools like nvidia-smi
and gpustat
from the terminal or command-line.
Often times, however, it is not convenient to ssh
into servers to just check the GPU status.
gpuview
is meant to mitigate this by running a lightweight web dashboard on top of
gpustat
.
With gpuview
one can monitor GPUs on the go, though a web browser. Moreover, multiple GPU servers
can be registered into one gpuview
dashboard and all stats are aggregated and accessible from one place.
Thumbnail view of GPUs across multiple servers.
Setup
Python is required,gpuview
has been tested with both 2.7 and 3 versions.
Install from PyPI:
$ pip install gpuview
[or] Install directly from repo:
$ pip install git+https://github.com/fgaim/gpuview.git@master
gpuview
installs the latest version ofgpustat
frompypi
, therefore, its commands are available from the terminal.
Usage
gpuview
can be used in two modes as a temporary process or as a background service.
Run gpuview
Once gpuview
is installed, it can be started as follows:
$ gpuview run --safe-zone
This will start the dasboard at http://0.0.0.0:9988
.
By default, gpuview
runs at 0.0.0.0
and port 9988
, but these can be changed using --host
and --port
. The safe-zone
option means report all detials including usernames, but it can be turned off for security reasons.
Run as a Service
To permanently run gpuview
it needs to be deployed as a background service.
This will require a sudo
privilege authentication.
The following command needs to be executed only once:
$ gpuview service [--safe-zone] [--exlude-self]
If successful, the gpuview
service is run immediately and will also autostart at boot time. It can be controlled using supervisorctl start|stop|restart gpuview
.
Runtime options
There a few important options in gpuview
, use -h
to see them all.
$ gpuview -h
run
: Startgpuview
dashboard server--host
: URL or IP address of host (default: 0.0.0.0)--port
: Port number to listen to (default: 9988)--safe-zone
: Safe to report all details, eg. usernames--exclude-self
: Don't report to others but to self-dashboard-d
,--debug
: Run server in debug mode (for developers)
add
: Add a GPU host to dashboard--url
: URL of host [IP:Port], eg. X.X.X.X:9988--name
: Optional readable name for the host, eg. Node101
remove
: Remove a registered host from dashboard--url
: URL of host to remove, eg. X.X.X.X:9988
hosts
: Print out all registered hostsservice
: Installgpuview
as system service--host
: URL or IP address of host (default: 0.0.0.0)--port
: Port number to listen to (default: 9988)--safe-zone
: Safe to report all details, eg. usernames--exclude-self
: Don't report to others but to self-dashboard
-v
,--version
: Print versions ofgpuview
andgpustat
-h
,--help
: Print help for command-line options
Monitoring multiple hosts
To aggregate the stats of multiple machines, they can be registered to one dashboard using their address and the port number running gpustat
.
Register a host to monitor as follows:
$ gpuview add --url <ip:port> --name <name>
Remove a registered host as follows:
$ gpuview remove --url <ip:port> --name <name>
Display all registered hosts as follows:
$ gpuview hosts
Note: the
gpuview
service needs to run in all hosts that will be monitored.
Tip:
gpuview
can be setup on a none GPU machine, such as laptops, to monitor remote GPU servers.
etc
Helpful tips related to the underlying performance are available at the gpustat
repo.
For the sake of simplicity, gpuview
does not have a user authentication in place. As a security measure,
it does not report sensitive details such as user names by default. This can be changed if the service is
running in a trusted network, using the --safe-zone
option to report all details.
The --exclude-self
option of the run command can be used to prevent other dashboards from getting stats of the current machine. This way the stats are shown only on the host's own dashboard.
Detailed view of GPUs across multiple servers.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gpuview-0.4.0.tar.gz
.
File metadata
- Download URL: gpuview-0.4.0.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60b6255e98ba969bd4f3e25202dd6ba74656f41f0261decf5a2693f34edd11fc |
|
MD5 | 660252b66c46a0b15c145b5213a90c11 |
|
BLAKE2b-256 | 0b57f6a6e91da05cfb1e2c95ccf72a3a170bb14a62ca1e8870fc8f1834f9c9a4 |
File details
Details for the file gpuview-0.4.0-py2-none-any.whl
.
File metadata
- Download URL: gpuview-0.4.0-py2-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79a0864f98324645a751485926a0119c3146d7db868dfcd73f7eadf1af00c25c |
|
MD5 | 53503527fdf5df0ab124daad44c0cd3a |
|
BLAKE2b-256 | b68e0d067c9800b5173888d9cd0e19fff2348e69d4acca79f2d927dbb3f0d4d3 |