LSF Version 7.3 - Administering Platform LSF
Administering Platform LSF 507
Running Parallel Jobs
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.
Running Parallel Processes on Homogeneous Hosts
Parallel jobs run on multiple hosts. If your cluster has heterogeneous hosts some
processes from a parallel job may for example, run on Solaris and some on SGI
IRIX. However, for performance reasons you may want all processes of a job to run
on the same type of host instead of having some processes run on one type of host
and others on another type of host.
You can use the
same section in the resource requirement string to indicate to LSF
that processes are to run on one type or model of host. You can also use a custom
resource to define the criteria for homogeneous hosts.
Examples
Running all parallel processes on the same host type
bsub -n 4 -R"select[type==SGI6 || type==SOL7] same[type]" myjob
Allocate 4 processors on the same host type—either SGI IRIX, or Solaris 7, but not
both.
Running all parallel processes on the same host type and model
bsub -n 6 -R"select[type==any] same[type:model]" myjob
Allocate 6 processors on any host type or model as long as all the processors are on
the same host type and model.
Running all parallel processes on hosts in the same high-speed connection group
bsub -n 12 -R "select[type==any && (hgconnect==hg1 || hgconnect==hg2 || hgconnect==hg3)]
same[hgconnect:type]" myjob
For performance reasons, you want to have LSF allocate 12 processors on hosts in
high-speed connection group
hg1, hg2, or hg3, but not across hosts in hg1, hg2 or
hg3 at the same time. You also want hosts that are chosen to be of the same host
type.