Platform LSF Administration Guide Version 6.2

Chapter 19
Reserving Resources
Administering Platform LSF
343
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
This will allow a job to be scheduled on any host that the queue is configured to use. The
job will attempt to reserve 20 MB of memory, or 10 MB of memory and 20 MB of swap
if the 20 MB of memory is unavailable.
Job-level resource reservation
To specify resource reservation at the job level, use bsub -R and include the resource
usage section in the resource requirement string.