英伟达命令

1. 动态查看显存

watch -n 10 nvidia-smi
watch -n 0.1 nvidia-smi

2.不断刷新

nvidia-smi -l 1
nvidia-smi

3.查看具体型号信息

nvidia-smi -a

nvidia-smi -a

NVSMI LOG

Timestamp : Fri Jul 8 13:24:40 2022
Driver Version : 470.129.06
CUDA Version : 11.4

Attached GPUs : 2
GPU 00000000:01:00.0
Product Name : NVIDIA GeForce RTX 3090
Product Brand : GeForce
Display Mode : Disabled
Display Active : Disabled
Persistence Mode : Disabled
MIG Mode
Current : N/A
Pending : N/A
Accounting Mode : Disabled
Accounting Mode Buffer Size : 4000
Driver Model
Current : N/A
Pending : N/A
Serial Number : N/A
GPU UUID : GPU-f610090b-9c01-bb6b-1914-f48b8f6183ec

4.查看当前系统中GPU占用的线程:

sudo fuser -v /dev/nvidia*
posted @ 2022-07-08 13:36  无左无右  阅读(193)  评论(0编辑  收藏  举报