代码之家  ›  专栏  ›  技术社区  ›  momeara

SLURM交互节点上的Emacs乱码屏幕

  •  0
  • momeara  · 技术社区  · 6 年前

    当我远程登录SLURM交互节点时,emacs有时会在屏幕上乱动。正如我在下面所描述的,我认为问题在于SLURM交互节点弄乱了查询/确认终端信号,并且一些字符被丢弃,从而导致故障。

    安装程序

    • 航站楼:iTerm2 Build 3.1.7
    • ssh到群集
    • srun --nodes=1 ... --pty /bin/bash )
    • emacs -nw )

    有时当屏幕重新绘制时,它会变得混乱: Garbled emacs screen

    当屏幕上有许多窗格或移动大量文本时,这种情况似乎发生得更多。 基于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
    

    0 回复  |  直到 6 年前
        1
  •  1
  •   user2697418    5 年前

    srun 最好通过 -li

    srun --nodes=1 ... --pty /bin/bash -li
    

    这将确保它加载通常在您正常登录时打开的交互式bash概要文件。

    这并不能完全解决我的问题,但如果我这样做了 tmux emacs ,那么我就没有口吃的问题了。

    推荐文章