Platform LSF Administration Guide Version 6.2

Job Array Job Slot Limit
Administering Platform LSF
426
Job Array Job Slot Limit
The job array job slot limit is used to specify the maximum number of jobs submitted
from a job array that are allowed to run at any one time. A job array allows a large
number of jobs to be submitted with one command, potentially flooding a system, and
job slot limits provide a way to limit the impact a job array may have on a system. Job
array job slot limits are specified using the following syntax:
%
bsub -J "job_array_name[index_list]%job_slot_limit"
myJob
where:
%job_slot_limit
Specifies the maximum number of jobs allowed to run at any one time. The percent sign
(
%) must be entered exactly as shown. Valid values are positive integers less than the
maximum index value of the job array.
Setting a job array job slot limit
A job array job slot limit can be set at the time of submission using bsub, or after
submission using
bmod.
At Submission
For example, to set a job array job slot limit of 100 jobs for a job array of 1000 jobs:
% bsub -J "job_array_name[1000]
%100
" myJob
After submission
For example, to set a job array job slot limit of 100 jobs for an array with job ID 123:
% bmod -J
"%100"
123
Changing a job array job slot limit
Changing a job array job slot limit is the same as setting it after submission. For example,
to change a job array job slot limit to 250 for a job array with job ID 123:
% bmod -J
"%250"
123
Viewing a job array job slot limit
To view job array job slot limits use the -A and -l options of bjobs. The job array job
slot limit is displayed in the Job Name field in the same format in which it was set. For
example, the following output displays the job array job slot limit of 100 for a job array
with job ID 123:
%
bjobs -A -l 123
Job <123>, Job Name <myArray[1-1000]
%100
>, User <user1>, Project <default>, Sta
tus <PEND>, Queue <normal>, Job Priority <20>, Command <my
Job>
Wed Feb 29 12:34:56: Submitted from host <hostA>, CWD <$HOME>;
COUNTERS:
NJOBS PEND DONE RUN EXIT SSUSP USUSP PSUSP
10 9 0 1 0 0 0 0