| 1 |
.\" Licensed under the OpenIB.org BSD license (FreeBSD Variant) - See COPYING.md |
| 2 |
.TH "ibacm" 8 "2014-06-16" "ibacm" "ibacm" ibacm |
| 3 |
.SH NAME |
| 4 |
ibacm \- address and route resolution services for InfiniBand. |
| 5 |
.SH SYNOPSIS |
| 6 |
.sp |
| 7 |
.nf |
| 8 |
\fIibacm\fR [-D] [-P] [-A addr_file] [-O option_file] |
| 9 |
.fi |
| 10 |
.SH "DESCRIPTION" |
| 11 |
The IB ACM implements and provides a framework for name, |
| 12 |
address, and route (path) resolution services over InfiniBand. |
| 13 |
It is intended to address connection setup scalability issues running |
| 14 |
MPI applications on large clusters. The IB ACM provides information |
| 15 |
needed to establish a connection, but does not implement the CM protocol. |
| 16 |
.P |
| 17 |
A primary user of the ibacm service is the librdmacm library. This |
| 18 |
enables applications to make use of the ibacm service without code |
| 19 |
changes or needing to be aware that the service is in use. |
| 20 |
librdmacm versions 1.0.12 - 1.0.15 can invoke IB ACM services when built using |
| 21 |
the --with-ib_acm option. Version 1.0.16 and newer of librdmacm will automatically |
| 22 |
use the IB ACM if it is installed. The IB ACM services tie in under the |
| 23 |
rdma_resolve_addr, rdma_resolve_route, and rdma_getaddrinfo routines. |
| 24 |
For maximum benefit, the rdma_getaddrinfo routine should be used, |
| 25 |
however existing applications should still see significant connection |
| 26 |
scaling benefits using the calls |
| 27 |
available in librdmacm 1.0.11 and previous releases. |
| 28 |
.P |
| 29 |
The IB ACM is focused on being scalable, efficient, and extensible. It implements |
| 30 |
a plugin architecture that allows a vendor to supply its proprietary provider in |
| 31 |
addition to the default provider. The current default provider implementation |
| 32 |
ibacmp limits network traffic, SA interactions, and centralized |
| 33 |
services. Ibacmp supports multiple resolution protocols in order to handle |
| 34 |
different fabric topologies. |
| 35 |
.P |
| 36 |
The IB ACM package is comprised of three components: the ibacm core service, |
| 37 |
the default provider ibacmp shared library, and a test/configuration utility |
| 38 |
- ib_acme. All three are userspace components and are available for Linux. |
| 39 |
Additional details are given below. |
| 40 |
.SH "OPTIONS" |
| 41 |
.TP |
| 42 |
\-D |
| 43 |
run in daemon mode (default) |
| 44 |
.TP |
| 45 |
\-P |
| 46 |
run as standard process |
| 47 |
.TP |
| 48 |
\-A addr_file |
| 49 |
address configuration file |
| 50 |
.TP |
| 51 |
\-O option_file |
| 52 |
option configuration file |
| 53 |
.TP |
| 54 |
\--systemd |
| 55 |
Enable systemd integration. This includes optional socket activation of the daemon's |
| 56 |
listening socket. |
| 57 |
.SH "QUICK START GUIDE" |
| 58 |
1. Prerequisites: libibverbs and libibumad must be installed. |
| 59 |
The IB stack should be running with IPoIB configured. |
| 60 |
These steps assume that the user has administrative privileges. |
| 61 |
.P |
| 62 |
2. Install the IB ACM package. This installs ibacm, ibacmp, ib_acme, and init.d scripts. |
| 63 |
.P |
| 64 |
3. Run 'ibacm' as administrator to start the ibacm daemon. |
| 65 |
.P |
| 66 |
4. Optionally, run 'ib_acme -d <dest_ip> -v' to verify that |
| 67 |
the ibacm service is running. |
| 68 |
.P |
| 69 |
5. Install librdmacm, using the build option --with-ib_acm if needed. |
| 70 |
This build option is not needed with librdmacm 1.0.17 or newer. |
| 71 |
The librdmacm will automatically use the ibacm service. |
| 72 |
On failures, the librdmacm will fall back to normal resolution. |
| 73 |
.P |
| 74 |
6. You can use ib_acme -P to gather performance statistics from the local ibacm |
| 75 |
daemon to see if the service is working correctly. Similarly, the command |
| 76 |
ib_acme -e could be used to enumerate all endpoints created by the local ibacm |
| 77 |
service. |
| 78 |
.SH "NOTES" |
| 79 |
ib_acme: |
| 80 |
.P |
| 81 |
The ib_acme program serves a dual role. It acts as a utility to test |
| 82 |
ibacm operation and help verify if the ibacm service and selected |
| 83 |
protocol is usable for a given cluster configuration. Additionally, |
| 84 |
it automatically generates ibacm configuration files to assist with |
| 85 |
or eliminate manual setup. |
| 86 |
.P |
| 87 |
ibacm configuration files: |
| 88 |
.P |
| 89 |
The ibacm service relies on two configuration files. |
| 90 |
.P |
| 91 |
The ibacm_addr.cfg file contains name and address mappings for each IB |
| 92 |
<device, port, pkey> endpoint. Although the names in the ibacm_addr.cfg |
| 93 |
file can be anything, ib_acme maps the host name to the IB endpoints. IP |
| 94 |
addresses, on the other hand, are assigned dynamically. If the address file |
| 95 |
cannot be found, the ibacm service will attempt to create one using default |
| 96 |
values. |
| 97 |
.P |
| 98 |
The ibacm_opts.cfg file provides a set of configurable options for the |
| 99 |
ibacm core service and default provider, such as timeout, number of retries, |
| 100 |
logging level, etc. ib_acme generates the ibacm_opts.cfg file using static |
| 101 |
information. If an option file cannot be found, ibacm will use default values. |
| 102 |
.P |
| 103 |
ibacm: |
| 104 |
.P |
| 105 |
The ibacm service is responsible for resolving names and addresses to |
| 106 |
InfiniBand path information and caching such data. It |
| 107 |
should execute with administrative privileges. |
| 108 |
.P |
| 109 |
The ibacm implements a client interface over TCP sockets, which is |
| 110 |
abstracted by the librdmacm library. One or more providers can be loaded |
| 111 |
by the core service, depending on the configuration. In the default provider |
| 112 |
ibacmp, one or more back-end protocols are used to satisfy user requests. |
| 113 |
Although ibacmp supports standard SA path record queries on the back-end, it |
| 114 |
also supports a resolution protocol based on multicast traffic. |
| 115 |
The latter is not usable on all fabric topologies, specifically |
| 116 |
ones that may not have reversible paths or fabrics using torus routing. |
| 117 |
Users should use the ib_acme utility to verify that multicast protocol |
| 118 |
is usable before running other applications. |
| 119 |
.P |
| 120 |
Conceptually, the default provider ibacmp implements an ARP like protocol and either |
| 121 |
uses IB multicast records to construct path record data or queries the |
| 122 |
SA directly, depending on the selected route protocol. By default, the |
| 123 |
ibacmp provider uses and caches SA path record queries. |
| 124 |
.P |
| 125 |
Specifically, all IB endpoints join a number of multicast groups. |
| 126 |
Multicast groups differ based on rates, mtu, sl, etc., and are prioritized. |
| 127 |
All participating endpoints must be able to communicate on the lowest |
| 128 |
priority multicast group. The ibacmp assigns one or more names/addresses |
| 129 |
to each IB endpoint using the ibacm_addr.cfg file. Clients provide source |
| 130 |
and destination names or addresses as input to the service, and receive |
| 131 |
as output path record data. |
| 132 |
.P |
| 133 |
The service maps a client's source name/address to a local IB endpoint. |
| 134 |
If the destination name/address is not cached locally in the default provider, |
| 135 |
it sends a multicast request out on the lowest priority multicast group on the |
| 136 |
local endpoint. The request carries a list of multicast groups that the sender can use. |
| 137 |
The recipient of the request selects the highest priority multicast group |
| 138 |
that it can use as well and returns that information directly to the sender. |
| 139 |
The request data is cached by all endpoints that receive the multicast |
| 140 |
request message. The source endpoint also caches the response and uses |
| 141 |
the multicast group that was selected to construct or obtain path record |
| 142 |
data, which is returned to the client. |
| 143 |
.P |
| 144 |
The current implementation of the provider ibacmp has several additional restrictions: |
| 145 |
.P |
| 146 |
- The ibacmp is limited in its handling of dynamic changes. |
| 147 |
ibacm must be stopped and restarted if a cluster is reconfigured. |
| 148 |
.P |
| 149 |
- Support for IPv6 has not been verified. |
| 150 |
.P |
| 151 |
- The number of multicast groups that an endpoint can support is limited to 2. |
| 152 |
.P |
| 153 |
The ibacmp contains several internal caches. These include caches for GID |
| 154 |
and LID destination addresses. These caches can be optionally |
| 155 |
preloaded. ibacm supports the OpenSM dump_pr plugin "full" PathRecord |
| 156 |
format which is used to preload these caches. |
| 157 |
The file format is specified in the ibacm_opts.cfg file via the |
| 158 |
route_preload setting which should be set to full_opensm_v1 for this |
| 159 |
file format. Default format is none which does not preload these caches. |
| 160 |
See dump_pr.notes.txt in dump_pr for more information on the |
| 161 |
full_opensm_v1 file format and how to configure OpenSM to |
| 162 |
generate this file. |
| 163 |
.P |
| 164 |
Additionally, the name, IPv4, and IPv6 caches can be be preloaded by using |
| 165 |
the addr_preload option. The default is none which does not preload these |
| 166 |
caches. To preload these caches, set this option to acm_hosts and |
| 167 |
configure the addr_data_file appropriately. |
| 168 |
.SH "SEE ALSO" |
| 169 |
ibacm(7), ib_acme(1), rdma_cm(7) |