LinuxCommandLibrary

gpustat

TLDR

Show GPU status

$ gpustat
copy
Show with process info
$ gpustat -p
copy
Continuous monitoring
$ gpustat -i [1]
copy
Show full command names
$ gpustat -cp
copy
JSON output
$ gpustat --json
copy
Show GPU UUIDs
$ gpustat -u
copy

SYNOPSIS

gpustat [options]

DESCRIPTION

gpustat displays GPU status in a concise format, similar to nvidia-smi but more readable. It shows GPU utilization, memory usage, temperature, and running processes.
The tool is designed for quick monitoring of NVIDIA GPUs during machine learning training or GPU-intensive tasks.

PARAMETERS

-p, --show-pid

Show process PIDs.
-u, --show-user
Show process usernames.
-c, --show-cmd
Show process commands.
-i seconds
Refresh interval.
--json
Output in JSON format.
--no-color
Disable color output.
--no-header
Hide header.
-a, --show-all
Show all information.
--id id
Show specific GPU only.

CAVEATS

Requires NVIDIA GPU and drivers. Uses nvidia-smi internally. Not suitable for non-NVIDIA GPUs. Process info needs appropriate permissions.

HISTORY

gpustat was created by Jongwook Choi as a simple GPU monitoring tool for machine learning practitioners. It provides a cleaner alternative to nvidia-smi's verbose output, focusing on essential metrics.

SEE ALSO

nvidia-smi(1), nvtop(1), htop(1), watch(1)

Copied to clipboard