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.

Killing Jobs<br />

Killing a job<br />

Chapter 6<br />

Managing Jobs<br />

The bkill command cancels pending batch jobs and sends signals to running<br />

jobs. By default, on UNIX, bkill sends the SIGKILL signal to running jobs.<br />

Before SIGKILL is sent, SIGINT and SIGTERM are sent to give the job a chance<br />

to catch the signals and clean up. The signals are forwarded from mbatchd to<br />

sbatchd. sbatchd waits for the job to exit before reporting the status. Because<br />

of these delays, for a short period of time after the bkill command has been<br />

issued, bjobs may still report that the job is running.<br />

On Windows, job control messages replace the SIGINT and SIGTERM signals,<br />

and termination is implemented by the TerminateProcess() system call.<br />

Run bkill job_ID:<br />

% bkill 3421<br />

Job is being terminated<br />

kills job 3421.<br />

Forcing removal of a job from <strong>LSF</strong><br />

Run bkill -r to force the removal of the job from <strong>LSF</strong>. Use this option when<br />

a job cannot be killed in the operating system.<br />

The bkill -r command removes a job from the <strong>LSF</strong> system without waiting<br />

for the job to terminate in the operating system. This sends the same series of<br />

signals as bkill without -r, except that the job is removed from the system<br />

immediately, the job is marked as EXIT, and job resources that <strong>LSF</strong> monitors<br />

are released as soon as <strong>LSF</strong> receives the first signal.<br />

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

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

Saved successfully!

Ooh no, something went wrong!