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.

Suspending and Resuming Jobs<br />

Suspending and Resuming Jobs<br />

Suspending a job<br />

UNIX<br />

Windows<br />

A job can be suspended by its owner or the <strong>LSF</strong> administrator. These jobs are<br />

considered user-suspended and are displayed by bjobs as USUSP.<br />

If a user suspends a high priority job from a non-preemptive queue, the load<br />

may become low enough for <strong>LSF</strong> to start a lower priority job in its place. The<br />

load created by the low priority job can prevent the high priority job from<br />

resuming. This can be avoided by configuring preemptive queues.<br />

Run bstop job_ID. Your job goes into USUSP state if the job is already<br />

started, or into PSUSP state if it is pending. For example:<br />

% bstop 3421<br />

Job is being stopped<br />

suspends job 3421.<br />

bstop sends the following signals to the job:<br />

◆<br />

◆<br />

Resuming a job<br />

SIGTSTP for parallel or interactive jobs<br />

SIGTSTP is caught by the master process and passed to all the slave<br />

processes running on other hosts.<br />

SIGSTOP for sequential jobs<br />

SIGSTOP cannot be caught by user programs. The SIGSTOP signal can be<br />

configured with the LSB_SIGSTOP parameter in lsf.conf.<br />

bstop causes the job to be suspended.<br />

Run bresume job_ID. For example:<br />

% bresume 3421<br />

Job is being resumed<br />

resumes job 3421.<br />

Resuming a user-suspended job does not put your job into RUN state<br />

immediately. If your job was running before the suspension, bresume first puts<br />

your job into SSUSP state and then waits for sbatchd to schedule it according<br />

to the load conditions.<br />

120<br />

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

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

Saved successfully!

Ooh no, something went wrong!