LSF Version 7.3 - Administering Platform LSF
Using Resource Reservation
406 Administering Platform LSF
For example:
bsub -R "rusage[tmp=30:duration=30:decay=1]" myjob
will reserve 30 MB of temp space for the job. As the job runs, the amount reserved
will decrease at approximately 1 MB/minute such that the reserved amount is 0
after 30 minutes.
Queue-level and job-level resource reservation
The queue level resource requirement parameter RES_REQ may also specify the
resource reservation. If a queue reserves certain amount of a resource, you cannot
reserve a greater amount of that resource at the job level.
For example, if the output of
bqueues -l command contains:
RES_REQ: rusage[mem=40:swp=80:tmp=100]
the following submission will be rejected since the requested amount of certain
resources exceeds queue's specification:
bsub -R "rusage[mem=50:swp=100]" myjob
Using Resource Reservation
Queue-level resource reservation
At the queue level, resource reservation allows you to specify the amount of
resources to reserve for jobs in the queue. It also serves as the upper limits of
resource reservation if a user also specifies it when submitting a job.
Queue-level resource reservation and pending reasons
The use of RES_REQ affects the pending reasons as displayed by bjobs. If
RES_REQ is specified in the queue and the
loadSched thresholds are not specified,
then the pending reasons for each individual load index will not be displayed.
Configuring resource reservation at the queue level
Queue-level resource reservation can be configured as part of the RES_REQ
parameter. The resource reservation requirement can be configured at the queue
level as part of the queue level resource requirements. Use the resource usage
(
rusage) section of the resource requirement string to specify the amount of
resources a job should reserve after it is started.
Examples Begin Queue
.
RES_REQ = select[type==any] rusage[swp=100:mem=40:duration=60]
.
End Queue
This will allow a job to be scheduled on any host that the queue is configured to use
and will reserve 100 MB of swap and 40 MB of memory for a duration of 60
minutes.
Begin Queue
.
RES_REQ = select[type==any] rusage[mem=20||mem=10:swp=20]
.
End Queue