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 13<br />

Specifying Resource Requirements<br />

Specifying multiple usage strings<br />

Use several comma-separated usage strings to define different duration and<br />

decay for any number of resources.<br />

A given load index cannot appear more than once in the resource usage string.<br />

Examples ◆ The following job requests 20 MB memory for the duration of the job, and<br />

1 license for 2 minutes:<br />

% bsub -R "rusage[mem=20, license=1:duration=2]" myjob<br />

◆ A queue with the same resource requirements could specify:<br />

RES_REQ = rusage[mem=20, license=1:duration=2]<br />

◆ The following job requests 20 MB of memory and 50 MB of swap space for<br />

1 hour, and 1 license for 2 minutes:<br />

% bsub -R "rusage[mem=20:swap=50:duration=1h, license=1:duration=2]" myjob<br />

◆ The following job requests 50 MB of swap space, linearly decreasing the<br />

amount reserved over a duration of 2 hours, and requests 1 license for 2<br />

minutes:<br />

% bsub -R "rusage[swp=20:duration=2h:decay=1, license=1:duration=2]" myjob<br />

◆ The following job requests two resources with same duration but different<br />

decay:<br />

% bsub -R "rusage[mem=20:duration=30:decay=1, lic=1:duration=30] myjob<br />

Non-batch environments<br />

Resource reservation is only available for batch jobs. If you run jobs using only<br />

<strong>LSF</strong> Base, such as through lsrun, LIM uses resource usage to determine the<br />

placement of jobs. Resource usage requests are used to temporarily increase<br />

the load so that a host is not overloaded. When LIM makes a placement advice,<br />

external load indices are not considered in the resource usage string. In this<br />

case, the syntax of the resource usage string is<br />

res[=value]:res[=value]: ... :res[=value]<br />

res is one of the resources whose value is returned by the lsload command.<br />

rusage[r1m=0.5:mem=20:swp=40]<br />

The above example indicates that the task is expected to increase the 1-minute<br />

run queue length by 0.5, consume 20 MB of memory and 40 MB of swap space.<br />

If no value is specified, the task is assumed to be intensive in using that<br />

resource. In this case no more than one task will be assigned to a host<br />

regardless of how many CPUs it has.<br />

The default resource usage for a task is r15s=1.0:r1m=1.0:r15m=1.0. This<br />

indicates a CPU-intensive task which consumes few other resources.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 197

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

Saved successfully!

Ooh no, something went wrong!