Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glambard/nvidia_gpu_usage
NVIDIA GPU usage in the blink of an eye
https://github.com/glambard/nvidia_gpu_usage
fan gpu memory monitor nvidia nvidia-smi statistics temperature usage
Last synced: about 1 month ago
JSON representation
NVIDIA GPU usage in the blink of an eye
- Host: GitHub
- URL: https://github.com/glambard/nvidia_gpu_usage
- Owner: GLambard
- Created: 2018-07-04T07:33:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-04T08:17:24.000Z (over 6 years ago)
- Last Synced: 2023-10-20T08:47:47.498Z (about 1 year ago)
- Topics: fan, gpu, memory, monitor, nvidia, nvidia-smi, statistics, temperature, usage
- Size: 4.88 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NVIDIA GPU usage monitoring in the blink of an eye :zap: :smiley:
Use of [nvidia-smi](https://developer.nvidia.com/nvidia-system-management-interface)
## System OS
- Linux (Ubuntu, CentOS, ...)
- 64-bit Windows Server 2008 R2
- Windows 7- For MacOSX, please check ```cuda-smi``` command from [here](https://github.com/phvu/cuda-smi)
## How
In a teminal, type
```
nvidia-smi -l 2
```
or with the ```watch ``` command for not fullfilling your terminal
(through Cygwin for Windows, or installable through homebrew/macports on MacOSX),```
watch -d -n 2 nvidia-smi *(cuda-smi for MacOSX)*
```which results in monitoring your GPU(s) usage re-newed each 2 seconds
```
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 387.34 Driver Version: 387.34 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 Graphics Device Off | 00000000:01:00.0 Off | N/A |
| 37% 53C P2 46W / 250W | 11794MiB / 12058MiB | 70% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1606 G /usr/lib/xorg/Xorg 415MiB |
| 0 4315 G compiz 186MiB |
| 0 19879 G ...-token= 142MiB |
| 0 28315 C .../miniconda3/envs/py36/bin/python 11036MiB |
+-----------------------------------------------------------------------------+
```# Hope it helps! :smiley: