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.

Job Array Job Slot Limit<br />

Job Array Job Slot Limit<br />

%jobLimit<br />

The job array job slot limit is used to specify the maximum number of jobs<br />

submitted from a job array that are allowed to run at any one time. A job array<br />

allows a large number of jobs to be submitted with one command, potentially<br />

flooding a system, and job slot limits provide a way to limit the impact a job<br />

array may have on a system. Job array job slot limits are specified using the<br />

following syntax:<br />

% bsub -J "arrayName[indexList]%jobLimit" myJob<br />

where:<br />

Specifies the maximum number of jobs allowed to run at any one time. The<br />

percent sign, %, must be entered exactly as shown. Valid values are positive<br />

integers less than the maximum index value of the job array.<br />

Setting a job array job slot limit<br />

A job array job slot limit can be set at the time of submission using bsub, or<br />

after submission using bmod.<br />

At Submission For example, to set a job array job slot limit of 100 jobs for a job array of 1000<br />

jobs:<br />

% bsub -J "jobArrayName[1000]%100" myJob<br />

After submission<br />

For example, to set a job array job slot limit of 100 jobs for<br />

an array with job ID 123:<br />

% bmod -J "%100" 123<br />

Changing a job array job slot limit<br />

Changing a job array job slot limit is the same as setting it after submission. For<br />

example, to change a job array job slot limit to 250 for a job array with job ID<br />

123:<br />

% bmod -J "%250" 123<br />

Viewing a job array job slot limit<br />

To view job array job slot limits use the -A and -l options of bjobs. The job<br />

array job slot limit is displayed in the Job Name field in the same format in<br />

which it was set. For example, the following output displays the job array job<br />

slot limit of 100 for a job array with job ID 123:<br />

% bjobs -A -l 123<br />

Job , Job Name , User , Project , Sta<br />

tus , Queue , Job Priority , Command <br />

Wed Feb 29 12:34:56: Submitted from host , CWD ;<br />

COUNTERS:<br />

NJOBS PEND DONE RUN EXIT SSUSP USUSP PSUSP<br />

10 9 0 1 0 0 0 0<br />

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