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.

Static Shared Resource Reservation<br />

Chapter 9<br />

Adding Resources<br />

You must use resource reservation to prevent over-committing static shared<br />

resources when scheduling.<br />

The usual situation is that you configure single-user application licenses as<br />

static shared resources, and make that resource one of the job requirements.<br />

You should also reserve the resource for the duration of the job. Otherwise,<br />

<strong>LSF</strong> updates resource information, assumes that all the static shared resources<br />

can be used, and places another job that requires that license. The additional<br />

job cannot actually run if the license is already taken by a running job.<br />

If every job that requests a license and also reserves it, <strong>LSF</strong> updates the number<br />

of licenses at the start of each new dispatch turn, subtracts the number of<br />

licenses that are reserved, and only dispatches additional jobs if there are<br />

licenses available that are not already in use.<br />

Reserving a static shared resource<br />

Example<br />

To indicate that a shared resource is to be reserved while a job is running,<br />

specify the resource name in the rusage section of the resource requirement<br />

string.<br />

You configured licenses for the Verilog application as a resource called<br />

verilog_lic. To submit a job that will run on a host when there is a license<br />

available:<br />

% bsub -R "select[defined(verilog_lic)] rusage[verilog_lic=1]"<br />

myjob<br />

If the job can be placed, the license it uses will be reserved until the job<br />

completes.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 157

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

Saved successfully!

Ooh no, something went wrong!