当我远程登录SLURM交互节点时,emacs有时会在屏幕上乱动。正如我在下面所描述的,我认为问题在于SLURM交互节点弄乱了查询/确认终端信号,并且一些字符被丢弃,从而导致故障。
安装程序
-
-
航站楼:iTerm2 Build 3.1.7
-
ssh到群集
-
srun --nodes=1 ... --pty /bin/bash
)
-
emacs -nw
)
有时当屏幕重新绘制时,它会变得混乱:
当屏幕上有许多窗格或移动大量文本时,这种情况似乎发生得更多。
基于emacs的这一部分
documentation
,我试着用
C-l (recenter-top-bottom)
通过设置
$TERM=screen
$TERM=xterm-256color
在我的
.bash-profile
我看到了不同的配色方案,但问题依然存在。
注意,我只是在登录到interactive节点时才看到问题,而不是从集群上的head节点。利用登录节点上的正常情况,这可以提供有用的诊断信息。这使我怀疑问题在于,从集群发送的so字符的ENQ/ACK或pad定时被丢弃。这将在
documentation
对于
tack
使用
从两个
登录节点
以及
交互节点
给出相同的值
$ tack
Using terminfo from: /home/maom/opt/miniconda3/share/terminfo/x/xterm-256color
Name: xterm-256color|xterm with 256 colors
\r ^M (cr) = ^M
\n ^J (ind) = ^J
\b ^H (cub1) = ^H
\t ^I (ht) = ^I
(clear) = ^[[H^[[2J
(home) = ^[[H
ENQ (u9) = ^[[c
ACK (u8) = ^[[?1;2c
Terminal size: 204 x 52. Baud rate: 38400. Frame size: 10.0
使用
Baudrate test
登录节点
:
1600949 characters per second. Baudrate 52 Done
波特率测试
上
交互节点
1090426 characters per second. Baudrate 52 Done
使用
test ENQ/ACK handshake
上
登录节点
Testing ENQ/ACK, standby...
This program expects the ENQ sequence to be answered with the ACK character. This will help the program reestablish synchronization when the terminal is overrun with data.
ENQ sequence from (u9): ^[[c
ACK received: ^[[?1;2c
Length of ACK 7. Expected length of ACK 7.
Terminating character found in (u8): c
在使用
测试ENQ/ACK握手
交互节点
节点给出:
Testing ENQ/ACK, standby...
ACK terminating character: c