You are here: Appendices > Appendix G Integrating Other Resources with Moab > Compute Resource Managers > Moab-TORQUE/PBS Integration Guide

G.2 Moab-Torque Integration Guide

In this topic:

G.2.1 Integration Steps

G.2.1.A Install Torque

Keep track of the PBS target directory, $PBSTARGDIR

G.2.1.B Install Moab

Moab interfaces to PBS by utilizing a few PBS libraries and include files. If you have a non-standard PBS installation, you may need to modify Makefile and change PBSIP and PBSLP values and references as necessary for your local site configuration.

The ./configure script automatically sets up Moab so that the user running configure will become the default Primary Moab Administrator ($MOABADMIN). This can be changed by modifying the ADMINCFG[1] USERS=<USERNAME> line in the Moab configuration file (moab.cfg). The primary administrator is the first user listed in the USERS attribute and is the ID under which the Moab daemon runs.

Some Tru64 and IRIX systems have a local libnet library that conflicts with PBS's libnet library. To resolve this, try setting PBSLIB to '${PBSLIBDIR}/libnet.a -lpbs' in the Moab Makefile.

Moab is 64-bit compatible. If PBS/Torque is running in 64-bit mode, Moab likewise needs to be built in this manner to use the PBS scheduling API (i.e., for IRIX compilers, add -64 to OSCCFLAGS and OSLDFLAGS variables in the Makefile).

When starting both Torque and Moab it is best to have a small delay between starting the servers. In general (and especially for very fast or very large systems) this is recommended startup procedure:

G.2.1.C Configure Torque

General Configuration for All Versions of Torque

PBS nodes can be configured as time shared or space shared according to local needs. In almost all cases, space shared nodes provide the desired behavior.

PBS/Torque supports the concept of virtual nodes. Using this feature, Moab can individually schedule processors on SMP nodes. The online Torque documentation describes how to set up the $PBS_HOME/server_priv/nodes file to enable this capability. (For example, <NODENAME> np=<VIRTUAL NODE COUNT>)

Version-Specific Configuration for Torque

Do not start the pbs_sched daemon. This is the default scheduler for Torque; Moab provides this service.

Moab uses PBS's scheduling port to obtain real-time event information from PBS regarding job and node transitions. Leaving the default qmgr setting of set server scheduling=True allows Moab to receive and process this real-time information.

G.2.1.D Configure Moab

By default, Moab automatically interfaces with Torque/PBS when it is installed. Consequently, in most cases, the following steps are not required:

If a non-standard PBS installation/configuration is being used, additional Moab parameters may be required to enable the Moab/PBS interface as in the line RMCFG[base] HOST=$PBSSERVERHOST PORT=$PBSSERVERPORT. See the Resource Manager Overview for more information.

Moab's user interface port is set using the SCHEDCFG parameter and is used for user-scheduler communication. This port must be different from the PBS scheduler port used for resource manager-scheduler communication.

G.2.2 Torque/Moab Considerations

The default meaning of a node for Torque and Moab are not the same. By default, a node is a host in Torque. The node may have one or more execution slots (procs) allocated to it in the TORQUE_HOME/server_priv/nodes file. However, the number of nodes recognized by Torque is equivalent to the number of node entries in the TORQUE_HOME/server_priv/nodes file. A node specification from qsub such as -1 nodes=2:ppn=2 will direct Torque to allocate to execution slots on two separate nodes.

Moab is more liberal in its interpretations of a node. To Moab, the qsub request above would be interpreted to mean allocate four tasks with at least two tasks on a node. Where Torque would require two nodes for the request, Moab will place all four tasks on the name node (host) if four execution slots are available.

If a cluster has four nodes with eight processors each, Torque still sees only four nodes. Moab sees 32 nodes. However, if a user made a qsub request with -1 nodes=10, Torque would reject the request because there are only four nodes available. To enable Torque to accommodate Moab's more liberal node interpretation, the server parameter available_resources.nodect can be set as a server parameter in Torque. The value of available_resources.nodect should equal at least the number of execution slots in the cluster.

For our example, cluster available_resources.nodect should be 32. With this parameter set, the user can now make a request such as -1 nodes=8:ppn=2. In this example, the user is still limited to a maximum node request of 32.

With available_resources.nodect set in Torque, Moab can be directed to honor the default Torque behavior by setting JOBNODEMATCHPOLICY to EXACTNODE.

G.2.2.A PBS Features Not Supported by Moab

Moab supports basic scheduling of all PBS node specifications.

G.2.2.B Moab Features Not Supported by PBS

PBS does not support the concept of a job QoS or other extended scheduling features by default. This can be handled using the techniques described in the PBS Resource Manager Extensions section. See the Resource Manager Extensions Overview for more information.

G.2.3 Troubleshooting

On TRU64 systems, the PBS libpbs library does not properly export a number of symbols required by Moab. This can be worked around by modifying the Moab Makefile to link the PBS rm.o object file directly into Moab.

© 2016 Adaptive Computing