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.

Specifying a Mandatory First Execution Host<br />

Chapter 34<br />

Running Parallel Jobs<br />

In general, the first execution host satisfies certain resource requirements that<br />

might not be present on other available hosts.<br />

<strong>LSF</strong> normally selects the first execution host dynamically according to the<br />

resource availability and host load for a parallel job. You can also specify a<br />

mandatory first execution host.<br />

Specify a mandatory first execution host<br />

Job level<br />

Queue level<br />

Rules<br />

Use an exclamation point (!) to indicate mandatory first execution host. You<br />

can specify first execution host at job submission, or in the queue definition.<br />

Use the -m option of bsub:<br />

% bsub -n 32 -m "hostA! hostB hostC" myjob<br />

hostA is the mandatory first execution host.<br />

Specify the first execution host in the list of hosts in the HOSTS parameter in<br />

lsb.queues:<br />

HOSTS = hostA! hostB hostC<br />

The queue-level specification of mandatory first execution host applies to all<br />

jobs submitted to the queue.<br />

The following rules apply when specifying first execution host:<br />

◆ First execution host cannot be a host group or host partition, even if only<br />

one host is in the group or partition. Jobs that specify a host group or host<br />

partition as first execution host are rejected.<br />

◆ The first execution host must satisfy the corresponding resource<br />

requirement specified at submission or on the queue. The order string in<br />

the resource requirement is ignored: the select, span and rusage strings in<br />

a resource requirement apply to the first execution host but the order string<br />

does not.<br />

If the specified first execution host does not satisfy the resource<br />

requirement, the job will stay in the pending state until the resource<br />

requirement is satisfied.<br />

◆ The first execution host can appear anywhere in the host string, but you<br />

can specify only one first execution host.<br />

If multiple first execution hosts are specified in HOSTS on a queue, only<br />

the first valid first execution host is used, the others will be ignored as if<br />

they were not specified.<br />

◆ The keyword all is ignored if it is specified in the execution host list. The<br />

keyword others is valid in the host list, but it cannot be the first execution<br />

host. Both keywords are ignored if they are specified as the first execution<br />

host.<br />

If the first execution host is incorrect at job submission, the job will be rejected.<br />

If incorrect configurations exist on the queue level, warning messages will be<br />

logged and displayed when <strong>LSF</strong> starts, restarts or is reconfigured.<br />

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

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

Saved successfully!

Ooh no, something went wrong!