高级 GPU 资源监控 nvitop
高级 GPU 资源监控 nvitop
介绍
nvitop:交互式的 NVIDIA-GPU 监控。略多版介绍可见 上海交大超算平台用户手册-nvitop。
部署
请务必使用 root 权限进行全局安装,否则会被安装到 conda 隔离环境中。
1 | sudo pip3 install --upgrade nvitop |
参数列表
[!tip] 只列出的部分常用参数,具体见官方文档,或者
nvitop --help
1 | 可选参数: |
快捷键
默认情况下,调用 nvitop
会进入 monitor 模式,类似于 top
,而 nvitop -1
才是与原版 nvidia-smi
类似的单次显示。
在 monitor 模式下,存在一些快捷键:
太多了,只摘取了一些常用的,懒得翻译了,就这样吧
Key | Binding |
---|---|
q |
Quit and return to the terminal. |
h / ? |
Go to the help screen. |
a / f / c |
Change the display mode to auto / full / compact. |
r / <C-r> / <F5> |
Force refresh the window. |
<Up> / <Down> |
Select and highlight a process. |
<Left> / <Right> |
Scroll the host information of processes. |
<Home> |
Select the first process. |
<End> |
Select the last process. |
<C-a> ^ |
Scroll left to the beginning of the process entry (i.e. beginning of line). |
<C-e> $ |
Scroll right to the end of the process entry (i.e. end of line). |
<PageUp> / <PageDown> |
scroll entire screen (for large amounts of processes). |
<Space> |
Tag/untag current process. |
<Esc> |
Clear process selection. |
<C-c> I |
Send signal.SIGINT to the selected process (interrupt). |
T |
Send signal.SIGTERM to the selected process (terminate). |
K |
Send signal.SIGKILL to the selected process (kill). |
e |
Show process environment. |
t |
Toggle tree-view screen. |
<Enter> |
Show process metrics. |
, / . |
Select the sort column. |
/ |
Reverse the sort order. |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 日勿の部落格!