Hello, Every time I log in using: srun -p xxx -w yyy --pty bash -i I get a ridiculously small terminal:
on the backend: environment: SLURM_PTY_WIN_ROW=90 SLURM_PTY_WIN_COL=62 backend$ tput cols 62 When on the frontend I export SLURM_PTY_WIN_COL and set it to an arbitrary value (1 or 100 for example), then on the backend I get an appropriate value for the screen size: backend$ echo $SLURM_PTY_WIN_COL 158 However, resizing the screen after having logged in with srun does not change the screen size: frontend$ srun -p xxx -w yyy --pty bash -i backend$ tput cols 206 # resize happens here backend$ tput cols 206 backend$ exit frontend$ tput cols 190 This happens both with version 2.6.4 and 14.03.4-2. Any ideas on how to fix this? I compile the packages from source, perhaps some library is missing? The only occurence in the source of TIOCSWINSZ is wrapped around a #ifdef HAVE_PTY_H, but I do have pty.h: $ ls -l /usr/include/pty.h -rw-r--r-- 1 root root 1610 Nov 21 2013 /usr/include/pty.h $ grep HAVE_PTY_H ./config.h:#define HAVE_PTY_H 1 I launch srun with debug enabled, but there is no mention of window-related functions: $ srun --slurmd-debug=debug -p xxx -w yyy --pty bash -i srun: Using srun's max debug increment of 4 -- Michal Mazurek The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
