乌班图(Ubuntu)中 查看CPU和GPU的内存

1、Ubuntu下查看内存使用情况:

free / free -h

2、Ubuntu下查看CPU内存使用情况:

top或htop

3、Ubuntu下查看GPU内存使用情况:

nvidia-smi

如果要实时显示,配合watch命令, 让一秒刷新一次

watch -n 1 nvidia-smi

猜你喜欢

转载自blog.csdn.net/qq_27802435/article/details/81002777