• Stars
    star
    456
  • Rank 95,985 (Top 2 %)
  • Language
    Python
  • License
    BSD 3-Clause "New...
  • Created over 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A tool for enriching the output of nvidia-smi.

nvidia-htop

A tool for enriching the output of nvidia-smi.

CI PyPI version

Install

pip3 install nvidia-htop

Yes, this tool has been on PyPi since 2021! Enjoy the super-easy way to install it.

Usage

nvidia-htop.py [-l [length]]
  print GPU utilization with usernames and CPU stats for each GPU-utilizing process

  -l|--command-length [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 | nvidia-htop.py [-l [length]] is also supported.

Note: running inside a container (docker, singularity, ...), nvidia-smi can only see processes running in the container.

Note: To periodically check the output of nvidia-htop, use the watch utility: watch nividia-htop.py. To get colored output, you have to pass option -c to both watch and nvidia-htop, e.g. watch -c nvidia-htop.py -c.

Example output

$ nvidia-htop.py -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_image_classifier.py --train_dir=/mnt/xxxxxxxx/xxxxxxxx/xxxxxxxx/xxxxxxx/xxxxxxxxxxxxxxx  |
|    1 11021 cannotte   10765MiB   114   1.5  python3 ./train.py --flagfile /xxxxxxxx/xxxxxxxx/xxxxxxxx/xxxxxxxxx/xx/xxxxxxxxxxxxxxx                |
|    2 25544 nevermin   10775MiB   108   2.0  python -m xxxxxxxxxxxxxxxxxxxxxxxxxxxxx                                                               |
+-----------------------------------------------------------------------------+

Screenshot with output coloring

Screenshot

More Repositories

1

lumix-link-desktop

A unofficial desktop version of the Panasonic Lumix Link app for remote control of your Lumix camera.
HTML
139
star
2

robot_body_filter

Filters the robot's body out of point clouds and laser scans.
C++
53
star
3

RadioControl

Windows Universal App that allows command-line control of radio devices
C#
23
star
4

fail2ban_openwrt

OpenWRT support for fail2ban
Shell
14
star
5

filtaquilla

Thunderbird addon for enhancing mail processing filters, including scripting support.
9
star
6

more-snooze

More Snooze addon for Thunderbird
JavaScript
7
star
7

mailing-list-filter

Thunderbird mail filter search term using mailing lists (and not whole addressbooks).
JavaScript
6
star
8

Nette-SuggestInput

Naseptavac pro Nette / Suggester for Nette
PHP
4
star
9

movie_publisher

Node for using a video file as video topic source.
Python
4
star
10

rosbash_params

Tools for writing ros-node-like bash scripts
Shell
4
star
11

dynamic_robot_state_publisher

Improved ROS robot_state_publisher which can update the robot model via dynamic_reconfigure.
C++
3
star
12

nSMTPMailer

Simple PHP SMTP mailing library, licensed with New BSD!
PHP
2
star
13

gazebo_noisy_depth_camera

Noisy depth camera sensor for Gazebo
C++
1
star
14

Origamist

A Java application for making origami tutorials
Java
1
star
15

BEAM-3D-Data-Viewer

A 3D viewer of histograms of 3 or 4 arbitrary bands for BEAM.
Java
1
star
16

DeerHuhn

JavaScript
1
star
17

MEX-Planner

1
star
18

BEAM-JOGL-Wrapper-module

A module that wraps the JOGL 1.1 library so that it can be used within BEAM.
1
star
19

superstring-finder

A bioinformatics algorithm for finding a common superstring for a given set of strings.
Java
1
star
20

MARSIS-Feature-Detector

My diploma thesis. This software will automatically detect various 2D features and shapes in ionograms captured by the MARSIS instrument onboard Mars Express.
Java
1
star