LSF Version 7.3 - Administering Platform LSF
Controlling Processor Allocation Across Hosts
506 Administering Platform LSF
The following span strings are valid:
same[type:model] span[ptile=LINUX:2,SGI:4]
LINUX and SGI are both host types and can appear in the same span string.
same[type:model] span[ptile=PC233:2,PC1133:4]
PC233
and PC1133 are both host models and can appear in the same span string.
You cannot mix host model and host type in the same
span string. The following
span strings are not correct:
span[ptile='!',LINUX:2,PC1133:4] same[model]
span[ptile='!',LINUX:2,PC1133:4] same[type]
The LINUX host type and PC1133 host model cannot appear in the same span string.
Multiple ptile values for a host type
For host type, you must specify same[type] in the resource requirement. For
example:
span[ptile='!',HP:8,SGI:8,LINUX:2] same[type]
The job requests 8 processors on a host of type HP or SGI, and 2 processors on a host
of type
LINUX, and the predefined maximum job slot limit in lsb.hosts (MXJ) for
other host types.
Multiple ptile values for a host model
For host model, you must specify same[model] in the resource requirement. For
example:
span[ptile='!',PC1133:4,PC233:2] same[model]
The job requests 4 processors on hosts of model PC1133, and 2 processors on hosts
of model PC233, and the predefined maximum job slot limit in
lsb.hosts (MXJ)
for other host models.
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