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.

About Resource Requirement Strings<br />

About Resource Requirement Strings<br />

Most <strong>LSF</strong> commands accept a -R res_req argument to specify resource<br />

requirements. The exact behaviour depends on the command. For example,<br />

specifying a resource requirement for the lsload command displays the load<br />

levels for all hosts that have the requested resources.<br />

Specifying resource requirements for the lsrun command causes <strong>LSF</strong> to select<br />

the best host out of the set of hosts that have the requested resources.<br />

A resource requirement string describes the resources a job needs. <strong>LSF</strong> uses<br />

resource requirements to select hosts for remote execution and job execution.<br />

Resource requirement string sections<br />

Which sections<br />

apply<br />

Syntax<br />

◆<br />

◆<br />

◆<br />

◆<br />

◆<br />

A selection section (select). The selection section specifies the criteria for<br />

selecting hosts from the system.<br />

An ordering section (order). The ordering section indicates how the hosts<br />

that meet the selection criteria should be sorted.<br />

A resource usage section (rusage). The resource usage section specifies<br />

the expected resource consumption of the task.<br />

A job spanning section (span). The job spanning section indicates if a<br />

parallel batch job should span across multiple hosts.<br />

A same resource section (same). The same section indicates that all<br />

processes of a parallel job must run on the same type of host.<br />

Depending on the command, one or more of these sections may apply. For<br />

example:<br />

◆ bsub uses all sections<br />

◆ lshosts only selects hosts, but does not order them<br />

◆ lsload selects and orders hosts<br />

◆ lsplace uses the information in select, order, and rusage sections to<br />

select an appropriate host for a task<br />

◆ lsloadadj uses the rusage section to determine how the load<br />

information should be adjusted on a host<br />

select[selection_string] order[order_string]<br />

rusage[usage_string [, usage_string] ...] span[span_string]<br />

same[same_string]<br />

The square brackets must be typed as shown.<br />

The section names are select, order, rusage, span, and same. Sections that<br />

do not apply for a command are ignored.<br />

If no section name is given, then the entire string is treated as a selection string.<br />

The select keyword may be omitted if the selection string is the first string in<br />

the resource requirement.<br />

Each section has a different syntax.<br />

190<br />

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

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

Saved successfully!

Ooh no, something went wrong!