Linux command
gpustat 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show GPU status
gpustat
Show with process info
gpustat -p
Continuous monitoring
gpustat -i [1]
Show full command names
gpustat -cp
JSON output
gpustat --json
Show GPU UUIDs
gpustat -u
说明
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 at a glance. The tool is designed for quick monitoring of NVIDIA GPUs during machine learning training or other GPU-intensive tasks.
参数
- -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.
FAQ
What is the gpustat command used for?
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 at a glance. The tool is designed for quick monitoring of NVIDIA GPUs during machine learning training or other GPU-intensive tasks.
How do I run a basic gpustat example?
Run `gpustat` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -p, --show-pid do in gpustat?
Show process PIDs.