Ubuntu下的系统资源查看

查看进程、CPU占用

$ top
Tasks: 94 total,   5 running, 0 sleeping,   0 stopped,   0 zombie
%Cpu(s): 12 us,  0.1 sy,  0.0 ni, 87.3 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
KiB Mem : 658total, 35 free,  918 used, 214 buff/cache
KiB Swap: 159 total, 159free,     2used. 5555 avail Mem 

查看Nvidia显卡显存占用(深度学习时检查显存)

$ nvidia-smi
 Jul  2019       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 390.                 Driver Version: 390.                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Quadro 2080Ti        Off  | 00000000:03:00.0 Off |                  N/A |
| 3%   0C    P0    4W / 120W |   10MiB /  8126MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|    0      0000      C   /opt/anaconda3/X       44MiB |
+-----------------------------------------------------------------------------+

你可能感兴趣的:(Ubuntu下的系统资源查看)