25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 17<br />

Reserving Resources<br />

Using Resource Reservation<br />

Queue-level resource reservation<br />

At the queue level, resource reservation allows you to specify the amount of<br />

resources to reserve for jobs in the queue. It also serves as the upper limits of<br />

resource reservation if a user also specifies it when submitting a job.<br />

Queue-level resource reservation and pending reasons<br />

The use of RES_REQ affects the pending reasons as displayed by bjobs. If<br />

RES_REQ is specified in the queue and the loadSched thresholds are not<br />

specified, then the pending reasons for each individual load index will not be<br />

displayed.<br />

Configuring resource reservation at the queue level<br />

Examples<br />

Queue-level resource reservation can be configured as part of the RES_REQ<br />

parameter. The resource reservation requirement can be configured at the<br />

queue level as part of the queue level resource requirements. Use the resource<br />

usage (rusage) section of the resource requirement string to specify the<br />

amount of resources a job should reserve after it is started.<br />

Begin Queue<br />

.<br />

RES_REQ = select[type==any] rusage[swp=100:mem=40:duration=60]<br />

.<br />

End Queue<br />

This will allow a job to be scheduled on any host that the queue is configured<br />

to use and will reserve 100 MB of swap and 40 MB of memory for a duration<br />

of 60 minutes.<br />

Begin Queue<br />

.<br />

RES_REQ = swap>50 rusage[swp=40:duration=5h:decay=1]<br />

.<br />

End Queue<br />

Job-level resource reservation<br />

To specify resource reservation at the job level, use bsub -R and include the<br />

resource usage section in the resource requirement string.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 271

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!