Appendix B

Integration with a Batch Queuing System

Most cluster systems use some kind of batch queuing system as an orderly way to provide users with access to the resources they need to meet their job’s performance requirements. One of the tasks of the cluster administrator is to provide means for users to submit MPI jobs through such batch queuing systems. This can take the form of a script, which your users can invoke much as they would invoke mpirun to submit their MPI jobs. A sample script is presented in this section.

B.1

A Batch Queuing Script

We give an example of the some of the functions that such a script might perform, in the context of the Simple Linux Utility Resource Manager (SLURM) developed at Lawrence Livermore National Laboratory. These functions assume the use of the bash shell. We will call this script batch_mpirun. It is provided here:

#! /bin/sh

#Very simple example batch script for InfiniPath MPI, using slurm

#(http://www.llnl.gov/linux/slurm/)

#Invoked as:

#batch_mpirun #cpus mpi_program_name mpi_program_args ...

#

np=$1 mpi_prog="$2" # assume arguments to script are correct shift 2 # program args are now $@

eval ‘srun --allocate --ntasks=$np --no-shell‘ mpihosts_file=‘mktemp -p /tmp mpihosts_file.XXXXXX‘

srun --jobid=${SLURM_JOBID} hostname -s sort uniq -c \ awk ’{printf "%s:%s\n", $2, $1}’ > $mpihosts_file

mpirun -np $np -m $mpihosts_file "$mpi_prog" $@ exit_code=$?

scancel ${SLURM_JOBID} rm -f $mpihosts_file exit $exit_code

In the following sections, setup and the various functions of the script are discussed in further detail.

B.1.1

Allocating Resources

When the mpirun command starts, it requires specification of the number of node programs it must spawn (via the -npoption) and specification of an mpihosts file listing the nodes on which the node programs may be run. (See section 3.5.8 for more information.) Normally, since performance is usually important, a user might

IB6054601-00 D

B-1

Page 71
Image 71
Q-Logic IB6054601-00 D manual Batch Queuing Script, Allocating Resources

IB6054601-00 D specifications

The Q-Logic IB6054601-00 D is a high-performance InfiniBand adapter card designed for data centers and enterprise applications requiring robust connectivity and low-latency communication. This adapter is part of QLogic's extensive portfolio of networking solutions, catering to the needs of high-performance computing (HPC), cloud computing, and virtualization environments.

One of the standout features of the IB6054601-00 D is its capability to support data transfer rates of up to 56 Gbps. This makes it ideal for applications demanding large bandwidth and quick data processing. The adapter is optimized for RDMA (Remote Direct Memory Access) technology, which allows data to be transferred directly between the memory of different computers without involving the CPU. This reduces latency and CPU overhead, leading to enhanced overall system performance.

The architecture of the IB6054601-00 D includes support for a dual-port design, which offers increased bandwidth, redundancy, and fault tolerance. This dual-port configuration is especially advantageous for environments that require high availability and reliability, such as financial services and mission-critical applications.

The adapter utilizes advanced error detection and correction mechanisms, ensuring that data integrity is maintained during transmission. With features like adaptive routing and congestion management, the IB6054601-00 D is capable of optimizing the handling of data flows, thereby enhancing performance even under heavy loads.

In terms of compatibility, the Q-Logic IB6054601-00 D supports a wide range of operating systems and virtualization technologies, making it easy to integrate into diverse IT environments. It also includes drivers and software packages that facilitate seamless deployment and management.

In addition to high-speed connectivity, the adapter is designed with power efficiency in mind. It adheres to Energy Star regulations, helping organizations lower their operational costs while minimizing their environmental footprint.

Overall, the Q-Logic IB6054601-00 D stands out for its high throughput, low latency, and reliability. Its combination of advanced features and technologies positions it as an excellent choice for organizations looking to enhance their data center performance and maximize the efficiency of their network infrastructure. With the growing demands for faster and more efficient data transfer, solutions like the IB6054601-00 D are essential in meeting the evolving needs of modern enterprises.