25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 32<br />

Interactive Jobs with bsub<br />

Submitting Interactive Jobs<br />

Use the bsub -I option to submit batch interactive jobs, and the bsub -Is<br />

and -Ip options to submit batch interactive jobs in pseudo-terminals.<br />

Pseudo-terminals are not supported for Windows.<br />

For more details, see the bsub(1) man page.<br />

Finding out which queues accept interactive jobs<br />

Before you submit an interactive job, you need to find out which queues<br />

accept interactive jobs with the bqueues -l command.<br />

If the output of this command contains the following, this is a batch-only<br />

queue. This queue does not accept interactive jobs:<br />

SCHEDULING POLICIES: NO_INTERACTIVE<br />

If the output contains the following, this is an interactive-only queue:<br />

SCHEDULING POLICIES: ONLY_INTERACTIVE<br />

If none of the above are defined or if SCHEDULING POLICIES is not in the<br />

output of bqueues -l, both interactive and batch jobs are accepted by the<br />

queue.<br />

You configure interactive queues in the lsb.queues file.<br />

Submitting an interactive job<br />

Use the bsub -I option to submit an interactive batch job.<br />

A new job cannot be submitted until the interactive job is completed or<br />

terminated.<br />

When an interactive job is submitted, a message is displayed while the job is<br />

awaiting scheduling. The bsub command stops display of output from the shell<br />

until the job completes, and no mail is sent to the user by default. A user can<br />

issue a ctrl-c at any time to terminate the job.<br />

Interactive jobs cannot be checkpointed.<br />

Interactive batch jobs cannot be rerunnable (bsub -r) or submitted to<br />

rerunnable queues (RERUNNABLE=y in lsb.queues).<br />

Examples ◆ % bsub -I ls<br />

Submits a batch interactive job which displays the output of ls at the user’s<br />

terminal.<br />

◆ % bsub -I -q interactive -n 4,10 lsmake<br />

<br />

This example starts <strong>Platform</strong> Make on 4 to 10 processors and displays the<br />

output on the terminal.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 401

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!