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

Running Parallel Jobs<br />

Examples<br />

% bsub -n 4 -R "span[hosts=1]" myjob<br />

Runs the job on a host that has at least 4 processors currently eligible to run<br />

the 4 components of this job.<br />

% bsub -n 4 -R "span[ptile=2]" myjob<br />

Runs the job on 2 hosts, using 2 processors on each host. Each host may have<br />

more than 2 processors available.<br />

% bsub -n 4 -R "span[ptile=3]" myjob<br />

Runs the job on 2 hosts, using 3 processors on the first host and 1 processor<br />

on the second host.<br />

% bsub -n 4 -R "span[ptile=1]" myjob<br />

Runs the job on 4 hosts, even though some of the 4 hosts may have more than<br />

one processor currently available.<br />

% bsub -n 4 -R "type==any same[type] span[ptile='!',LINUX:2, SGI:4]" myjob<br />

Submits myjob to request 4 processors running on 2 hosts of type LINUX (2<br />

processors per host), or a single host of type SGI, or for other host types, the<br />

predefined maximum job slot limit in lsb.hosts (MXJ).<br />

% bsub -n 16 -R "type==any same[type] span[ptile='!',HP:8,SGI:8,LINUX:2]" myjob<br />

Submits myjob to request 16 processors on 2 hosts of type HP or SGI (8<br />

processors per hosts), or on 8 hosts of type LINUX (2 processors per host), or<br />

the predefined maximum job slot limit in lsb.hosts (MXJ) for other host<br />

types.<br />

% bsub -n 4 -R "same[model] span[ptile='!',PC1133:4,PC233:2]" myjob<br />

Submits myjob to request a single host of model PC1133 (4 processors), or 2<br />

hosts of model PC233 (2 processors per host), or the predefined maximum job<br />

slot limit in lsb.hosts (MXJ) for other host models.<br />

Specifying parallel job locality at the queue level<br />

The queue may also define the locality for parallel jobs using the RES_REQ<br />

parameter.<br />

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

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

Saved successfully!

Ooh no, something went wrong!