Platform LSF Administration Guide Version 6.2
Chapter 35
Interactive Jobs with bsub
Administering Platform LSF
517
Submitting Interactive Jobs
Use the bsub -I option to submit batch interactive jobs, and the bsub -Is and -Ip
options to submit batch interactive jobs in pseudo-terminals.
Pseudo-terminals are not supported for Windows.
For more details, see the
bsub(1) man page.
Finding out which queues accept interactive jobs
Before you submit an interactive job, you need to find out which queues accept
interactive jobs with the
bqueues -l command.
If the output of this command contains the following, this is a batch-only queue. This
queue does not accept interactive jobs:
SCHEDULING POLICIES: NO_INTERACTIVE
If the output contains the following, this is an interactive-only queue:
SCHEDULING POLICIES: ONLY_INTERACTIVE
If none of the above are defined or if SCHEDULING POLICIES is not in the output of
bqueues -l, both interactive and batch jobs are accepted by the queue.
You configure interactive queues in the
lsb.queues file.
Submitting an interactive job
Use the bsub -I option to submit an interactive batch job.
A new job cannot be submitted until the interactive job is completed or terminated.
When an interactive job is submitted, a message is displayed while the job is awaiting
scheduling. The
bsub command stops display of output from the shell until the job
completes, and no mail is sent to the user by default. A user can issue a
ctrl-c at any
time to terminate the job.
Interactive jobs cannot be checkpointed.
Interactive batch jobs cannot be rerunnable (
bsub -r) or submitted to rerunnable
queues (RERUNNABLE=y in
lsb.queues).
Examples
◆
% bsub -I ls
Submits a batch interactive job which displays the output of ls at the user’s
terminal.
◆
% bsub -I -q interactive -n 4,10 lsmake
<<Waiting for dispatch ...>>
This example starts Platform Make on 4 to 10 processors and displays the output
on the terminal.
Submitting an interactive job by using a pseudo-terminal
Submission of interaction jobs using pseudo-terminal is not supported for Windows for
either
lsrun or bsub LSF commands.
bsub -Ip
To submit a batch interactive job by using a pseudo-terminal, use the bsub -Ip option.