问题描述
在终端中使用top命令列出进程,按CPU使用情况排序(您可以将其更改为按其他参数排序)
GPU有同等效力吗?
最佳解决方法
对于Nvidia GPU,有一个工具nvidia-smi可以显示内存使用情况,GPU利用率和GPU温度。
对于Intel GPU,您可以使用intel-gpu-tools。
AMD有两种选择
fglrx(闭源驱动程序):
aticonfig --odgc --odgt
对于mesa(开源驱动程序),您可以使用RadeonTop。
次佳解决方法
Nvidia:要不断更新nvidia-smi的输出,可以使用nvidia-smi --loop=1(刷新间隔1秒)或nvidia-smi --loop-ms=1000(刷新间隔1000毫秒)。
-l SEC, --loop=SEC
Continuously report query data at the specified interval, rather than
the default of just once. The application will sleep in-between
queries. Note that on Linux ECC error or XID error events will print
out during the sleep period if the -x flag was not specified. Pressing
Ctrl+C at any time will abort the loop, which will otherwise run indef‐
initely. If no argumen