Platform LSF Administration Guide Version 6.2

Controlling Processor Allocation Across Hosts
Administering Platform LSF
438
Examples
% bsub -n 4 -R "span[hosts=1]" myjob
Runs the job on a host that has at least 4 processors currently eligible to run the 4
components of this job.
% bsub -n 4 -R "span[ptile=2]" myjob
Runs the job on 2 hosts, using 2 processors on each host. Each host may have more than
2 processors available.
% bsub -n 4 -R "span[ptile=3]" myjob
Runs the job on 2 hosts, using 3 processors on the first host and 1 processor on the
second host.
% bsub -n 4 -R "span[ptile=1]" myjob
Runs the job on 4 hosts, even though some of the 4 hosts may have more than one
processor currently available.
% bsub -n 4 -R "type==any same[type] span[ptile='!',LINUX:2,SGI:4]" myjob
Submits myjob to request 4 processors running on 2 hosts of type LINUX (2 processors
per host), or a single host of type
SGI, or for other host types, the predefined maximum
job slot limit in
lsb.hosts (MXJ).
% bsub -n 16 -R "type==any same[type] span[ptile='!',HP:8,SGI:8,LINUX:2]" myjob
Submits myjob to request 16 processors on 2 hosts of type HP or SGI (8 processors per
hosts), or on 8 hosts of type
LINUX (2 processors per host), or the predefined maximum
job slot limit in
lsb.hosts (MXJ) for other host types.
% bsub -n 4 -R "same[model] span[ptile='!',PC1133:4,PC233:2]" myjob
Submits myjob to request a single host of model PC1133 (4 processors), or 2 hosts of
model PC233 (2 processors per host), or the predefined maximum job slot limit in
lsb.hosts (MXJ) for other host models.
Specifying parallel job locality at the queue level
The queue may also define the locality for parallel jobs using the RES_REQ parameter.