LSF Version 7.3 - Administering Platform LSF
Limiting the Number of Processors Allocated
510 Administering Platform LSF
If you specify -n min_proc,max_proc, but do not specify a queue, the first queue
that satisfies the processor requirements of the job is used. If no queue satisfies the
processor requirements, the job is rejected.
Example For example, queues with the following PROCLIMIT values are defined in
lsb.queues:
◆ queueA with PROCLIMIT=1 1 1
◆ queueB with PROCLIMIT=2 2 2
◆ queueC with PROCLIMIT=4 4 4
◆ queueD with PROCLIMIT=8 8 8
◆ queueE with PROCLIMIT=16 16 16
In lsb.params: DEFAULT_QUEUE=queueA queueB queueC queueD queueE
For the following jobs:
bsub -n 8 myjob
LSF automatically selects queueD to run myjob.
bsub -n 5 myjob
Job myjob fails because no default queue has the correct number of processors.
Examples
Maximum processor limit
PROCLIMIT is specified in the default queue in lsb.queues as:
PROCLIMIT = 3
The maximum number of processors that can be allocated for this queue is 3.
Minimum and maximum processor limits
PROCLIMIT is specified in lsb.queues as:
PROCLIMIT = 3 8
The minimum number of processors that can be allocated for this queue is 3 and
the maximum number of processors that can be allocated for this queue is 8.
Example Description
bsub -n 2 myjob The job myjob runs on 2 processors.
bsub -n 4 myjob The job myjob is rejected from the queue because it requires more than
the maximum number of processors configured for the queue (3).
bsub -n 2,3 myjob The job myjob runs on 2 or 3 processors.
bsub -n 2,5 myjob The job myjob runs on 2 or 3 processors, depending on how many slots
are currently available on the host.
bsub myjob No default or minimum is configured, so the job myjob runs on 1
processor.