默认情况下,每个进程的命令glances
都会被截断,例如/opt/conda/bin/python
:
trainman-k8s-job-afe4dad6-d612-4564-979a-89a82594674e-rnnpf Uptime: 31 days, 20:33:38
CPU 10.4% nice: 0.0% LOAD 64-core MEM 5.6% active: 24.5G SWAP 0.0%
user: 4.2% irq: 0.3% 1 min: 8.67 total: 480G inactive: 20.9G total: 0
system: 5.7% iowait: 0.0% 5 min: 8.34 used: 26.9G buffers: 442M used: 0
idle: 89.6% steal: 0.0% 15 min: 8.12 free: 453G cached: 24.1G free: 0
NETWORK Rx/s Tx/s TASKS 44 (184 thr), 5 run, 38 slp, 1 oth sorted automatically by cpu_percent, flat view
eth0 1Kb 24Kb
lo 520b 520b CPU% MEM% VIRT RES PID USER NI S TIME+ IOR/s IOW/s Command
98.7 1.0 47.0G 4.80G 18795 root 0 R 21:13.45 0 0 /opt/conda/bin/python
DISK I/O R/s W/s 98.4 1.0 47.1G 4.80G 18797 root 0 R 19:51.70 0 0 /opt/conda/bin/python
dm-0 0 0 98.4 0.9 46.4G 4.20G 18792 root 0 R 50:25.84 0 0 /opt/conda/bin/python
xvda1 0 0 98.1 1.0 47.1G 4.80G 18796 root 0 R 48:36.66 0 0 /opt/conda/bin/python
xvda2 0 0 98.1 1.0 46.8G 4.81G 18794 root 0 R 21:50.84 0 0 /opt/conda/bin/python
xvda3 0 0 1.6 0.0 1.02G 111M 18932 root 0 S 13:46.50 0 0 /opt/conda/bin/python
xvda4 0 0 1.3 0.0 1.02G 107M 18944 root 0 S 12:12.99 0 0 /opt/conda/bin/python
xvda6 0 0 1.3 0.0 1.02G 113M 18924 root 0 S 12:47.56 0 0 /opt/conda/bin/python
xvda7 0 0 1.3 0.0 1.02G 110M 18942 root 0 S 4:06.40 0 0 /opt/conda/bin/python
xvda9 0 146K 1.3 0.0 1.02G 109M 18935 root 0 S 2:14.80 0 0 /opt/conda/bin/python
xvdbl 0 0 1.0 0.0 92.6M 30.6M3024398 root 0 R 0:04.85 0 0 /usr/bin/python3 /us
0.3 0.0 13.0M 3.03M698340 root 0 S 35:14.51 0 0 watch -n 0.1 nvidia-s
FILE SYS Used Total 0.3 0.0 410M 65.3M 70 root 0 S 46:53.78 0 0 /opt/conda/bin/python
_tion-log 268G 482G
_tc/hosts 268G 482G
2022-02-23 04:25:54 No warning or critical alert detected
答案1
阅读其文档(扫视)并发现了这个:
按/
将缩短命令路径,即存储命令可执行文件的位置。这会给你一些额外的信息。不过,如果您的命令太长,那么最好切换到 ps 及其选项,例如ps aux
我认为这也与您正在使用的终端的列大小有关。我当前的列大小是 210,按下后我可以看到整个命令/
按下之前/
:
按下后/
还要检查终端的列大小。
我当前的列尺寸是 210,我使用的是 27 英寸显示器。