pourmand1376 / nvidia-docker-stats

Monitor nvidia gpu unit load associated with docker spawned processes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

A Python 3 based command line tool for determining a docker container associated processes gpu utilization by joining information across 'nvidia-smi *' and 'docker *' commands.

Command Output

Sample

Usage

Case 1

Clone into the python path and run module as script via:

$ python3 -m nvidiadockerstats.nvidiadockerstats

Case 2

Clone anywhere on network home, link, and run directly:

$ git clone https://github.com/cdw/nvidia-docker-stats.git
$ ln nvidia-docker-stats/nvidiadockerstats/nvidiadockerstats.py ~/bin/nvidiadockerstats
$ nvidiadockerstats

Example output

Container       Image                   pid     gpu_uuid        used_memory     used_gpu
9afcd2624a5b    shiva/keras
					30920   0                11207 MiB       0 %
					30920   1                11587 MiB       0 %
					30920   2                11587 MiB       0 %
					30920   3                11251 MiB       0 %
5eca98f0fa0f    vishnu/pytorch_ext
					8846    0                401 MiB         0 %
					8846    3                353 MiB         0 %

License

GPL 3

About

Monitor nvidia gpu unit load associated with docker spawned processes

License:GNU General Public License v3.0


Languages

Language:Python 100.0%