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.

Running Parallel Processes on Homogeneous Hosts<br />

Running Parallel Processes on Homogeneous Hosts<br />

Examples<br />

Parallel jobs run on multiple hosts. If your cluster has heterogeneous hosts<br />

some processes from a parallel job may for example, run on Solaris and some<br />

on SGI IRIX. However, for performance reasons you may want all processes of<br />

a job to run on the same type of host instead of having some processes run on<br />

one type of host and others on another type of host.<br />

You can use the same section in the resource requirement string to indicate to<br />

<strong>LSF</strong> that processes are to run on one type or model of host. You can also use<br />

a custom resource to define the criteria for homogeneous hosts.<br />

Running all parallel processes on the same host type<br />

% bsub -n 4 -R"select[type==SGI6 || type==SOL7] same[type]"<br />

myjob<br />

Allocate 4 processors on the same host type—either SGI IRIX, or Solaris 7, but<br />

not both.<br />

Running all parallel processes on the same host type and model<br />

% bsub -n 6 -R"select[type==any] same[type:model]" myjob<br />

Allocate 6 processors on any host type or model as long as all the processors<br />

are on the same host type and model.<br />

Running all parallel processes on hosts in the same high-speed connection group<br />

% bsub -n 12 -R "select[type==any && (hgconnect==hg1 || hgconnect==hg2 ||<br />

hgconnect==hg3)] same[hgconnect:type]" myjob<br />

For performance reasons, you want to have <strong>LSF</strong> allocate 12 processors on hosts<br />

in high-speed connection group hg1, hg2, or hg3, but not across hosts in hg1,<br />

hg2 or hg3 at the same time. You also want hosts that are chosen to be of the<br />

same host type.<br />

This example reflects a network in which network connections among hosts<br />

in the same group are high-speed, and network connections between host<br />

groups are low-speed.<br />

In order to specify this, you create a custom resource hgconnect in<br />

lsf.shared.<br />

Begin Resource<br />

RESOURCENAME TYPE INTERVAL INCREASING RELEASE DESCRIPTION<br />

hgconnect STRING () () () (OS release)<br />

...<br />

End Resource<br />

In the lsf.cluster.cluster_name file, identify groups of hosts that share<br />

high-speed connections.<br />

Begin ResourceMap<br />

RESOURCENAME LOCATION<br />

hgconnect (hg1@[hostA hostB] hg2@[hostD hostE] hg3@[hostF hostG hostX])<br />

End ResourceMap<br />

444<br />

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

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

Saved successfully!

Ooh no, something went wrong!