25.06.2015 Views

Administering Platform LSF - SAS

Administering Platform LSF - SAS

Administering Platform LSF - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 13<br />

Specifying Resource Requirements<br />

Operators<br />

These operators can be used in selection strings. The operators are listed in<br />

order of decreasing precedence.<br />

Syntax<br />

-a<br />

!a<br />

a * b<br />

a / b<br />

a + b<br />

a - b<br />

a > b<br />

a < b<br />

a >= b<br />

a 50 && type == MIPS) || (swp > 35 && type ==<br />

ALPHA)]<br />

select[((2*r15s + 3*r1m + r15m) / 6 < 1.0) && !fs && (cpuf ><br />

4.0)]<br />

Specifying shared resources with the keyword “defined”<br />

A shared resource may be used in the resource requirement string of any <strong>LSF</strong><br />

command. For example when submitting an <strong>LSF</strong> job which requires a certain<br />

amount of shared scratch space, you might submit the job as follows:<br />

% bsub -R "avail_scratch > 200 && swap > 50" myjob<br />

The above assumes that all hosts in the cluster have access to the shared<br />

scratch space. The job will only be scheduled if the value of the<br />

"avail_scratch" resource is more than 200 MB and will go to a host with at<br />

least 50 MB of available swap space.<br />

It is possible for a system to be configured so that only some hosts within the<br />

<strong>LSF</strong> cluster have access to the scratch space. In order to exclude hosts which<br />

cannot access a shared resource, the defined(resource_name) function<br />

must be specified in the resource requirement string.<br />

For example:<br />

% bsub -R "defined(avail_scratch) && avail_scratch > 100 &&<br />

swap > 100" myjob<br />

would exclude any hosts which cannot access the scratch resource. The <strong>LSF</strong><br />

administrator configures which hosts do and do not have access to a particular<br />

shared resource.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 193

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

Saved successfully!

Ooh no, something went wrong!