htop------查看CPU
查看当前使用的进程
查看内存的使用
查看cpu的利用率
gpustat
https://github.com/wookayin/gpustat
安装
pip install gpustat
对应的参数介绍
$ gpustatOptions:
--color: Force colored output (even when stdout is not a tty)--no-color: Suppress colored output-u,--show-user: Display username of the process owner-c,--show-cmd: Display the process name-f,--show-full-cmd: Display full command and cpu stats of running process-p,--show-pid: Display PID of the process-F,--show-fan: Display GPU fan speed-P,--show-power: Display GPU power usage and/or limit (drawordraw,limit)-a,--show-all: Display all gpu properties above--watch,-i,--interval: Run in watch mode (equivalent towatch gpustat) if given. Denotes interval between updates. (#41)--json: JSON Output (Experimental, #10)
使用如下命令:
gpustat -c -p -u
终端显示:

本文介绍如何使用htop查看CPU、进程、内存及CPU利用率,以及通过gpustat监控GPU状态,包括安装gpustat的方法、参数详解和示例命令。适合系统管理员和开发者进行资源管理和故障排查。

12万+

被折叠的 条评论
为什么被折叠?



