[GE users] custom suspend method TSTP doesnt work for batch queues

Reuti reuti at staff.uni-marburg.de
Fri Sep 17 19:27:48 BST 2004


    [ The following text is in the "ISO-8859-1" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

> i am running vcs under sge.  vcs uses licenses.  the SIGTSTP signal pauses
> vcs and makes it give up its license.  SIGSTOP does not make it release its
> license.

Thanks, so vcs is already installing a signal handler.

> i am able to manually launch the job with the rsh from
> sge_root/utilbin/glinux/

Yes, in this case there is a socket connected to the process. And for vcs this 
seems to be good enough to run properly.

>   Warning: no access to tty (Bad file descriptor).
>   Thus no job control in this shell.

SGE file descriptors in /proc/<pid>/fd:

/proc/12901/fd> ls -lh
lr-x------    1 reuti ... 0 -> /dev/null
l-wx------    1 reuti ... 1 -> /home/.../reuti/tester.sh.o106
l-wx------    1 reuti ... 2 -> /home/.../reuti/tester.sh.e106

For an rsh process:

$/proc/12934/fd> ls -lh
lrwx------    1 reuti ... 0 -> socket:[1157693]
lrwx------    1 reuti ... 1 -> socket:[1157693]
lrwx------    1 reuti ... 2 -> socket:[1157695]

Interactive:

/proc/13094/fd> ls -lh
lrwx------    1 reuti ... 0 -> /dev/pts/1
lrwx------    1 reuti ... 1 -> /dev/pts/1
lrwx------    1 reuti ... 2 -> /dev/pts/1

idea:

can you start vcs with "vcs < existing_empty_file"? This will give:

/proc/13133/fd> ls -lh
lr-x------    1 reuti ... 0 -> /home/.../reuti/dummy
l-wx------    1 reuti ... 1 -> /home/.../reuti/tester.sh.o107
l-wx------    1 reuti ... 2 -> /home/.../reuti/tester.sh.e107


Maybe it's working (not for a shell, but for your program). - Reuti

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list