25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Controlling Job Arrays<br />

Controlling Job Arrays<br />

Whole array<br />

Individual jobs<br />

Groups of jobs<br />

You can control the whole array, all the jobs submitted from the job array, with<br />

a single command. <strong>LSF</strong> also provides the ability to control individual jobs and<br />

groups of jobs submitted from a job array. When issuing commands against a<br />

job array, use the job array job ID instead of the job array name. Job names are<br />

not unique in <strong>LSF</strong>, and issuing a command using a job array name may result<br />

in unpredictable behavior.<br />

Most <strong>LSF</strong> commands allow operation on both the whole job array, individual<br />

jobs, and groups of jobs. These commands include bkill, bstop, bresume,<br />

and bmod.<br />

Some commands only allow operation on individual jobs submitted from a job<br />

array. These commands include btop, bbot, and bswitch.<br />

To control the whole job array, specify the command as you would for a single<br />

job using only the job ID. For example, to kill a job array with job ID 123:<br />

% bkill 123<br />

To control an individual job submitted from a job array, specify the command<br />

using the job ID of the job array and the index value of the corresponding job.<br />

The job ID and index value must be enclosed in quotes. For example, to kill<br />

the 5th job in a job array with job ID 123:<br />

% bkill "123[5]"<br />

To control a group of jobs submitted from a job array, specify the command as<br />

you would for an individual job and use indexList syntax to indicate the jobs.<br />

For example, to kill jobs 1-5, 239, and 487 in a job array with job ID 123:<br />

% bkill "123[1-5, 239, 487]"<br />

340<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!