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

Same String<br />

You must have the parallel batch job scheduler plugin installed in order to use the<br />

same string.<br />

Syntax<br />

Examples<br />

Parallel jobs run on multiple hosts. If your cluster has heterogeneous hosts,<br />

some processes from a parallel job may for example, run on Solaris and some<br />

on SGI IRIX. However, for performance reasons you may want all processes of<br />

a job to run on the same type of host instead of having some processes run on<br />

one type of host and others on another type of host.<br />

The same string specifies that all processes of a parallel job must run on hosts<br />

with the same resource.<br />

You can specify the same string:<br />

◆ At the job level in the resource requirement string of:<br />

❖ bsub<br />

❖ bmod<br />

◆ At the queue-level in lsb.queues in the RES_REQ parameter.<br />

When both queue-level and job-level same sections are defined, <strong>LSF</strong> combines<br />

both requirements to allocate processors.<br />

resource_name[:resource_name]...<br />

You can specify any static resource.<br />

When you specify for example, resource1:resource2, if hosts always have<br />

both resources, the string is interpreted as:<br />

◆ Allocate processors only on hosts that have the same value for resource1<br />

and the same value for resource2<br />

If hosts do not always have both resources, it is interpreted as:<br />

◆ Allocate processors either on hosts that have the same value for<br />

resource1, or on hosts that have the same value for resource2, or on<br />

hosts that have the same value for both resource1 and resource2<br />

% bsub -n 4 -R"select[type==SGI6 || type==SOL7] same[type]"<br />

myjob<br />

Run all parallel processes on the same host type. Allocate 4 processors on the<br />

same host type—either SGI IRIX, or Solaris 7, but not both.<br />

% bsub -n 6 -R"select[type==any] same[type:model]" myjob<br />

Run all parallel processes on the same host type and model. Allocate 6<br />

processors on any host type or model as long as all the processors are on the<br />

same host type and model.<br />

<strong>Administering</strong> <strong>Platform</strong> <strong>LSF</strong> 199

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

Saved successfully!

Ooh no, something went wrong!