Install nvtop on Ubuntu 18.04

Usually we check the GPU information, such as which process is occupying the GPU, how much it is occupying, how the GPU utilization is, and other information, all use nvidia-smi, but this information is real-time, which means you can’t Check the changes in a certain period of time.

nvtop (NVIDIA TOP) is an htop-like task monitor for NVIDIA GPUs, similar in function to nvidia-smi, but with more beautiful features than nvidia-smi The appearance also makes up for the defect that nvidia-smi cannot check the GPU changes in a certain period of time.

First look at an official renderings:

The screenshot when I use it myself:

If you are still satisfied, let's see how to install it.

installation##

The next installation steps are for Ubuntu 18.04, 16.04 is estimated to be fine.

But if you are 19.04, it is very simple, just one command:

sudo apt install nvtop

1. Install graphics driver###

I won't repeat this step, I think everyone should have already installed it. If not, please refer to How to install the NVIDIA drivers on Ubuntu 18.04 Bionic Beaver Linux.

2. Install CMake, ncurses and git

sudo apt install cmake libncurses5-dev libncursesw5-dev git

3. Source code compilation###

Before starting, if you are using conda and you are already in a conda virtual environment, please conda deactivate to exit the environment.

git clone https://github.com/Syllo/nvtop.git
mkdir -p nvtop/build && cd nvtop/build
cmake ..

# If an error is reported:"Could NOT find NVML (missing: NVML_INCLUDE_DIRS)"
# Then please use the following command
# cmake ..-DNVML_RETRIEVE_HEADER_ONLINE=True

make
make install #Need root privileges, if you report a privilege error, please add sudo

At this point it is installed.

use##

Generally speaking, you only need to enter nvtop and press Enter, but there are some parameters that you can change.

$ nvtop --help
nvtop version 1.0.0
Available options:-d --delay        : Select the refresh rate(1==0.1s)-v --version      : Print the version and exit
 - s --gpu-select   : Colon separated list of GPU IDs to monitor
 - i --gpu-ignore   : Colon separated list of GPU IDs to ignore
 - p --no-plot      : Disable bar plot
 - r --reverse-abs  : Reverse abscissa: plot the recent data left and older on the right
 - C --no-color     : No colors
 - N --no-cache     : Always query the system for user names and command line information
 - f --freedom-unit : Use fahrenheit
 - E --encode-hide  : Set encode/decode auto hide time inseconds(default 30s, negative = always on screen)-h --help         : Print help and exit

END

Recommended Posts

Install nvtop on Ubuntu 18.04
install vscode on ubuntu18
Install Redis on Ubuntu
Install R4 on ubuntu20
Install postgresql-10 on Ubuntu 18.04
Install docker on Ubuntu
Install Docker on ubuntu18.04
Install nodejs10 on Ubuntu16
Install mysql on Ubuntu 14.04
Install Django on ubuntu
Install Pytorch+CUDA on Ubuntu 16.04
Install Python3 on Ubuntu 14.04
Install rJava on Ubuntu18
Install JDK10+ on Ubuntu
Install Python3 on Ubuntu 16.04
Install KDE on Ubuntu16.04.2
Install Docker on Ubuntu18
Install Python3.7 on Ubuntu
Install flashplayer on Ubuntu
Docker practice (1): install Docker on Ubuntu 16.04
Install ubuntu on virtual machine
Install OpenSSL 1.0.2 on Ubuntu Server 14.04
Install Python 3.7 on Ubuntu 18.04 LTS
Install Android Studio on Ubuntu
Install scrapy framework on ubuntu
Install Mysql offline on Ubuntu
Install Oracle Java8 on Ubuntu
Install Odoo 11 stack on Ubuntu 16.04
Install Go locale on Ubuntu16
Install common software on Ubuntu 16.04
Install non-portable QQ on ubuntu
Install Docker on Ubuntu 18.04 offline
How to install Memcached on Ubuntu 20.04
How to install Java on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
How to install VirtualBox on Ubuntu 20.04
How to install Elasticsearch on Ubuntu 20.04
How to install Protobuf 3 on Ubuntu
Install Tenda u12 driver on Ubuntu
How to install Nginx on Ubuntu 20.04
How to install Apache on Ubuntu 20.04
How to install Git on Ubuntu 20.04
How to install Node.js on Ubuntu 16.04
How to install MySQL on Ubuntu 20.04
Install and configure MySQL on Ubuntu
Install Chef server workstation on Ubuntu 18.04
How to install Vagrant on Ubuntu 20.04
How to install Bacula-Web on Ubuntu 14.04
Install botan2 encryption library on ubuntu
How to install PostgreSQL on Ubuntu 16.04
How to install Git on Ubuntu 20.04
How to install Anaconda3 on Ubuntu 18.04
How to install Memcached on Ubuntu 18.04
How to install Jenkins on Ubuntu 16.04
Docker ubuntu: install python-PIL-image environment on 14.04
How to install MemSQL on Ubuntu 14.04
How to install Go on Ubuntu 20.04
How to install MongoDB on Ubuntu 16.04
How to install Mailpile on Ubuntu 14.04
How to install PrestaShop on Ubuntu 16.04
How to install Skype on Ubuntu 20.04