nvhtop
A tool for enriching the output of nvidia-smi forked from peci1/nvidia-htop.
Install
pip install .
Usage
usage: nvhtop [-h] [-l [COMMAND_LENGTH]] [-c]
print GPU utilization with usernames and CPU stats for each GPU-utilizing
process
optional arguments:
-h, --help show this help message and exit
-l [COMMAND_LENGTH], --command-length [COMMAND_LENGTH]
Print longer part of the commandline. If `length' is
provided, use it as the commandline length, otherwise
print first 100 characters.
-c, --color Colorize the output (green - free GPU, yellow -
moderately used GPU, red - fully used GPU)
Note: for backward compatibility, nvidia-smi | nvhtop [-l [length]] is also supported.
Example output
$ nvhtop -l
Mon May 21 15:06:35 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.25 Driver Version: 390.25 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 108... Off | 00000000:04:00.0 Off | N/A |
| 53% 75C P2 174W / 250W | 10807MiB / 11178MiB | 97% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GTX 108... Off | 00000000:05:00.0 Off | N/A |
| 66% 82C P2 220W / 250W | 10783MiB / 11178MiB | 100% Default |
+-------------------------------+----------------------+----------------------+
| 2 GeForce GTX 108... Off | 00000000:08:00.0 Off | N/A |
| 45% 67C P2 85W / 250W | 10793MiB / 11178MiB | 51% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| GPU PID USER GPU MEM %MEM %CPU COMMAND |
| 0 1032 anonymou 10781MiB 308 3.7 python train_classifier.py |
| 1 11021 cannotte 10765MiB 114 1.5 python3 ./train.py |
| 2 25544 nevermin 10775MiB 108 2.0 python -m xxxxxxxxxxxxxxxxxxxxx |
+-----------------------------------------------------------------------------+
Screenshot with output coloring
Metadata
Release files for nvhtop 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nvhtop-0.1.tar.gz | 9.6 kB | Without provenance | Details for nvhtop-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nvhtop-0.1-py3-none-any.whl | Python 3 | none | any | Details for nvhtop-0.1-py3-none-any.whl |
Total release size: 22.7 kB
Release files / nvhtop-0.1.tar.gz
| Download URL | nvhtop-0.1.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f19e53a395f3a505f8d2db4f727330ba317da847f4049d9cb5ad3308fc2d3003
|
|
BLAKE2b-256 checksum How to use checksums |
e2ba776b38666b0d88f8029ef6242fd844eefbcd45e5288a5248b0937e062cf8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.2
|
Release files / nvhtop-0.1-py3-none-any.whl
| Download URL | nvhtop-0.1-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a7cee07edc91d2a7b0ff050e6e85d22cb1711a6c1b64bf9491dd223a83b29086
|
|
BLAKE2b-256 checksum How to use checksums |
b5d6bd838e4ddaf9c8735b34c501f89661a85a8eeb1be6669d0f908d326fe2d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.6.2
|
Security for nvhtop 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.