Skip to content

Monitor nvidia gpu unit load associated with docker spawned processes

License

Notifications You must be signed in to change notification settings

RaisoLiu/nvidia-docker-stats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Usage

$ sudo su
$ cd /root
$ git clone https://github.com/raiso777/nvidia-docker-stats.git
$ ln /root/nvidia-docker-stats/nvidiadockerstats/nvidiadockerstats.py /bin/dgpustat
$ dgpustat

Example output

Container   	Names             	pid    	gpu_uuid	used_memory 	used_gpu
188392f13203	jupyter-raiso
                                        1212   	0       	 1703 MiB   	 0 %
4f1d564b1d85	jupyter-rkaiii8813
                                        24291  	0       	 1661 MiB   	 0 %

License

GPL 3

About

Monitor nvidia gpu unit load associated with docker spawned processes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%