← 返回命令列表

Linux command

nvtop 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Monitor all GPUs

nvtop

Monitor specific GPU

nvtop -i [0]

Monitor multiple GPUs

nvtop -i [0,1,2]

Delay between updates

nvtop -d [2]

No color output

nvtop -C

说明

nvtop is an ncurses-based GPU process monitor, similar to htop but for GPUs. It displays real-time GPU utilization, memory usage, temperature, and running processes. The tool supports a wide range of accelerators: NVIDIA (Kepler and newer, proprietary driver), AMD (amdgpu, kernel 5.14+), Intel (i915/Xe, kernel 5.19+), Qualcomm Adreno (msm, kernel 6.0+), Apple Silicon (M1/M2, experimental), Broadcom VideoCore on the Raspberry Pi, Rockchip NPUs, Huawei Ascend, MetaX and Enflame cards.

参数

-i _ids_
GPU IDs to monitor.
-d _seconds_
Delay between updates.
-s _sort_
Sort by (pid, type, rate, mem, etc.).
-C
No color.
-p
Show only processes.
-f _file_
Log to file.
--no-header
Hide header.
-h, --help
Show help and exit.
-v, --version
Print version information and exit.

FAQ

What is the nvtop command used for?

nvtop is an ncurses-based GPU process monitor, similar to htop but for GPUs. It displays real-time GPU utilization, memory usage, temperature, and running processes. The tool supports a wide range of accelerators: NVIDIA (Kepler and newer, proprietary driver), AMD (amdgpu, kernel 5.14+), Intel (i915/Xe, kernel 5.19+), Qualcomm Adreno (msm, kernel 6.0+), Apple Silicon (M1/M2, experimental), Broadcom VideoCore on the Raspberry Pi, Rockchip NPUs, Huawei Ascend, MetaX and Enflame cards.

How do I run a basic nvtop example?

Run `nvtop` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i _ids_ do in nvtop?

GPU IDs to monitor.