GPU & Accelerator process monitoring for AMD, Apple, Huawei, Intel, NVIDIA and Qualcomm
GPU & Accelerator process monitoring for AMD, Apple, Huawei, Intel, NVIDIA and Qualcomm
NVTOP stands for Neat Videocard TOP, a (h)top like task monitor for GPUs and accelerators. It can handle multiple GPUs and print information about them in a htop-familiar way.
Currently supported vendors are AMD (Linux amdgpu driver), Apple (limited M1 & M2 support), Huawei (Ascend), Intel (Linux i915/Xe drivers), NVIDIA (Linux proprietary divers), Qualcomm Adreno (Linux MSM driver), Broadcom VideoCore (Linux v3d driver), Rockchip, MetaX (MXSML driver), Enflame (Linux EFML driver), Tenstorrent (Linux tt-kmd driver). Rockchip, MetaX (MXSML driver), Enflame (Linux EFML driver), Iluvatar CoreX (ixML / libixml).
Because a picture is worth a thousand words:
NVTOP has a builtin setup utility that provides a way to specialize the interface to your needs.
Simply press F2 and select the options that are the best for you.
In the Chart section you can choose which metrics are plotted, including GPU and memory
utilization, temperature, power, clocks, and the PCIe RX / TX load (the receive and transmit
throughput as a percentage of the maximum link bandwidth).
You can save the preferences set in the setup window by pressing F12.
The preferences will be loaded the next time you run nvtop.
NVTOP comes with a manpage!
man nvtopFor quick command line arguments help
nvtop -h
nvtop --helpNVTOP supports AMD GPUs using the amdgpu driver and the legacy radeon driver (legacy GPUs, limited support) through the exposed DRM and
sysfs interface.
The radeon provides limited metrics compared to amdgpu.
AMD introduced the fdinfo interface in kernel 5.14 (browse kernel source). Hence, you will need a kernel with a version greater or equal to 5.14 to see the processes using AMD GPUs.
Support for recent GPUs are regularly mainlined into the linux kernel, so please use a recent-enough kernel for your GPU.
NVTOP supports Intel GPUs using the i915 or xe linux driver.
Intel introduced the fdinfo interface in kernel 5.19 (browse kernel source). Hence, you will need a kernel with a version greater or equal to 5.19 to see the processes using Intel GPUs.
Intel requires CAP_PERFMON or CAP_SYS_ADMIN capabilities to access the total memory usage,
you can run sudo setcap cap_perfmon=ep nvtop to grant the necessary permissions or run nvtop as root.
The NVML library does not support some of the queries for GPUs coming before the Kepler microarchitecture. Anything starting at GeForce 600, GeForce 800M and successor should work fine. For more information about supported GPUs please take a look at the NVML documentation.
NVTOP supports Adreno GPUs using the msm linux driver.
msm introduced the fdinfo interface in kernel 6.0 (browse kernel source). Hence, you will need a kernel with a version greater or equal to 6.0 to see the processes using Adreno GPUs.
NVTOP includes some initial support for Apple using Metal. This is only supported when building for Apple, and when building for Apple only this vendor is supported.
APPLE SUPPORT STATUS
NVTOP supports Ascend (testing on Altas 800 (910B)) by DCMI API (version 6.0.0).
Currently, the DCMI only supports limited APIs, missing PCIe generation, tx/rx throughput info, max power draw etc.
NVTOP supports Iluvatar CoreX GPUs through the ixML library.
The backend dynamically loads libixml.so from /usr/local/corex/lib,
/usr/local/corex/lib64, or the default dynamic loader search path. The ixML
runtime exposes an NVML-compatible API surface used by NVTOP to query device,
power, PCIe, clock, temperature, memory, and process information.
NVTOP supports VideoCore (testing on raspberrypi 4B).
Supports GPU frequency, temperature, utilization, per-process utilization, GPU memory usage, and H264 decoding utilization.
On non-raspberry pi os, you need to use the linux-rpi 6.12.y kernel and above, and ensure the presence of the /dev/vcio device.
NVTOP supports Rockchip (testing on orangepi 5 plus).
Supports NPU frequency, temperature, utilization.
NVTOP supports MetaX (testing on MXC500) by MXSML LIBRARY.
For more information about GPUs please take a look at the METAX documentation
NVTOP supports Enflame GCUs (testing on Enflame S60, Enflame L300 and Enflame L600) by EFML LIBRARY
GCU, which refers to General Compute Unit, is a type of accelerator card that is used to perform general-purpose computing tasks just like GPGPU.
NVTOP supports Tenstorrent AI accelerators (Blackhole, Wormhole, Grayskull) through the tt-kmd kernel driver.
Supports temperature, power draw, AI clock, fan RPM, PCIe link info, and process listing. No external libraries required -- all data is read from sysfs, hwmon, and procfs.
Several libraries are required in order for NVTOP to display GPU info:
libixml.so) which comes with the driver.If your distribution provides the snap utility, follow the snap installation process to obtain an up-to-date version of nvtop.
A standalone application is available as AppImage.
sudo apt install nvtopA PPA supporting Ubuntu 20.04 and newer is provided by
Quentin Lienhardt that offers an up-to-date version of nvtop, enabled for NVIDIA, AMD and Intel.
sudo add-apt-repository ppa:quentiumyt/nvtop
sudo apt install nvtopAMD and Intel Dependencies
sudo apt install libdrm-dev libsystemd-dev
# Ubuntu 18.04
sudo apt install libudev-devNVIDIA Dependency
NVTOP Dependencies
sudo apt install cmake libncurses5-dev libncursesw5-dev gitNVTOP
A standalone application is available as AppImage.
sudo dnf install nvtopsudo dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %{rhel}).noarch.rpm
sudo dnf install nvtopsudo dnf install -y epel-release
sudo dnf install nvtopAMD and Intel Dependencies
sudo dnf install libdrm-devel systemd-develNVIDIA Dependency
NVTOP Dependencies
sudo dnf install cmake ncurses-devel git gcc-c++NVTOP
A standalone application is available as an AppImage.
Build process for OpenSUSE:
AMD Dependency
sudo zypper install libdrm-develNVIDIA Dependency
NVTOP Dependencies
sudo zypper install cmake ncurses-devel gitNVTOP
sudo pacman -S nvtopsudo emerge -av nvtopAn AppImage is a standalone application. Just download the AppImage, make it executable and run it!
Go to the release page and download nvtop-x86_64.AppImage
# Go to the download location ** The path may differ on your system **
cd $HOME/Downloads
# Make the AppImage executable
chmod u+x nvtop-x86_64.AppImage
# Enjoy nvtop
./nvtop-x86_64.AppImageIf you are curious how that works, please visit the AppImage website.
snap install nvtop
# Add the capability to kill processes inside nvtop
snap connect nvtop:process-control
# Add the capability to inspect GPU information (fan, PCIe, power, etc)
snap connect nvtop:hardware-observe
# AMDGPU process list support (read /proc/<pid>)
snap connect nvtop:system-observe
# Temporary workaround to get per-process GPU usage (read /proc/<pid>/fdinfo)
snap connect nvtop:kubernetes-supportNotice: The connect commands allow
A conda-forge feedstock for nvtop is available.
conda install --channel conda-forge nvtoppixi global install nvtopNVIDIA drivers (same as above)
nvidia-docker (See [Container Toolkit Installation Guide
Compute-only Vulkan workloads show up as Graphics utilization
[fix] MI300A doesn't display temperature
nvtop doesn't display the correct GPU usage of processes on MIG devices
Could you add pip install nvtop?
[BUG] Intel not show anything
`nvtop -s` doesn't show `gpu_util` or `power_draw` for Intel cards
Enhancement request: Support a broader range of terms in the snap build
core dump on wsl
DGX Spark support worked in 3.3.0, has been broken since 3.3.1
Intel Arc Pro B60: power*_crit is reported as max power while power*_cap is 200 W