1fabric(7)                      Libfabric v1.8.0                      fabric(7)
2
3
4

NAME

6       fabric - Fabric Interface Library
7

SYNOPSIS

9              #include <rdma/fabric.h>
10
11       Libfabric  is  a  high-performance  fabric software library designed to
12       provide low-latency interfaces to fabric hardware.
13

OVERVIEW

15       Libfabric provides 'process direct I/O' to application software  commu‐
16       nicating across fabric software and hardware.  Process direct I/O, his‐
17       torically referred to as RDMA, allows an application to directly access
18       network  resources without operating system interventions.  Data trans‐
19       fers can occur directly to and from application memory.
20
21       There are two components to the libfabric software:
22
23       Fabric Providers
24              Conceptually, a fabric provider may be viewed as a  local  hard‐
25              ware  NIC driver, though a provider is not limited by this defi‐
26              nition.  The first component of libfabric is a  general  purpose
27              framework  that is capable of handling different types of fabric
28              hardware.  All fabric hardware devices and their software  driv‐
29              ers  are  required  to  support this framework.  Devices and the
30              drivers that plug into the libfabric framework are  referred  to
31              as  fabric providers, or simply providers.  Provider details may
32              be found in fi_provider(7).
33
34       Fabric Interfaces
35              The second component is a set of communication operations.  Lib‐
36              fabric  defines  several  sets  of  communication functions that
37              providers can support.  It is not required that providers imple‐
38              ment  all  the  interfaces  that are defined; however, providers
39              clearly indicate which interfaces they do support.
40

FABRIC INTERFACES

42       The fabric interfaces are designed such that they are cohesive and  not
43       simply  a  union  of disjoint interfaces.  The interfaces are logically
44       divided into two groups: control interfaces  and  communication  opera‐
45       tions.  The control interfaces are a common set of operations that pro‐
46       vide access to local communication resources, such as  address  vectors
47       and  event queues.  The communication operations expose particular mod‐
48       els of communication and fabric functionality, such as message  queues,
49       remote  memory access, and atomic operations.  Communication operations
50       are associated with fabric endpoints.
51
52       Applications will typically use the control interfaces to discover  lo‐
53       cal  capabilities and allocate necessary resources.  They will then al‐
54       locate and configure a communication endpoint to send and receive data,
55       or perform other types of data transfers, with remote endpoints.
56

CONTROL INTERFACES

58       The  control interfaces APIs provide applications access to network re‐
59       sources.  This involves listing all the interfaces available, obtaining
60       the capabilities of the interfaces and opening a provider.
61
62       fi_getinfo - Fabric Information
63              The  fi_getinfo  call  is the base call used to discover and re‐
64              quest fabric services offered by the system.   Applications  can
65              use  this  call  to indicate the type of communication that they
66              desire.  The results from fi_getinfo, fi_info, are used  to  re‐
67              serve and configure fabric resources.
68
69       fi_getinfo returns a list of fi_info structures.  Each structure refer‐
70       ences a single fabric provider,  indicating  the  interfaces  that  the
71       provider  supports,  along  with  a  named  set of resources.  A fabric
72       provider may include multiple fi_info structures in the returned list.
73
74       fi_fabric - Fabric Domain
75              A fabric domain represents a collection of hardware and software
76              resources that access a single physical or virtual network.  All
77              network ports on a system that can communicate with  each  other
78              through  the  fabric belong to the same fabric domain.  A fabric
79              domain shares network addresses and can span multiple providers.
80              libfabric supports systems connected to multiple fabrics.
81
82       fi_domain - Access Domains
83              An  access  domain represents a single logical connection into a
84              fabric.  It may map to a single physical or  virtual  NIC  or  a
85              port.  An access domain defines the boundary across which fabric
86              resources may be associated.  Each access domain  belongs  to  a
87              single fabric domain.
88
89       fi_endpoint - Fabric Endpoint
90              A fabric endpoint is a communication portal.  An endpoint may be
91              either active or passive.  Passive endpoints are used to  listen
92              for  connection  requests.   Active  endpoints  can perform data
93              transfers.  Endpoints are configured with specific communication
94              capabilities and data transfer interfaces.
95
96       fi_eq - Event Queue
97              Event  queues,  are used to collect and report the completion of
98              asynchronous operations and events.  Event queues report  events
99              that are not directly associated with data transfer operations.
100
101       fi_cq - Completion Queue
102              Completion  queues are high-performance event queues used to re‐
103              port the completion of data transfer operations.
104
105       fi_cntr - Event Counters
106              Event counters are used to report the number of completed  asyn‐
107              chronous    operations.     Event    counters   are   considered
108              light-weight, in that a completion simply increments a  counter,
109              rather than placing an entry into an event queue.
110
111       fi_mr - Memory Region
112              Memory  regions  describe  application local memory buffers.  In
113              order for fabric resources to access application memory, the ap‐
114              plication  must first grant permission to the fabric provider by
115              constructing a memory region.  Memory regions are  required  for
116              specific  types  of data transfer operations, such as RMA trans‐
117              fers (see below).
118
119       fi_av - Address Vector
120              Address vectors are used to map higher level addresses, such  as
121              IP  addresses,  which  may be more natural for an application to
122              use, into fabric specific addresses.  The use of address vectors
123              allows  providers  to  reduce  the  amount of memory required to
124              maintain large address look-up tables, and  eliminate  expensive
125              address  resolution and look-up methods during data transfer op‐
126              erations.
127

DATA TRANSFER INTERFACES

129       Fabric endpoints are associated with multiple data transfer interfaces.
130       Each  interface set is designed to support a specific style of communi‐
131       cation, with an endpoint allowing the different interfaces to  be  used
132       in  conjunction.  The following data transfer interfaces are defined by
133       libfabric.
134
135       fi_msg - Message Queue
136              Message queues expose a simple, message-based FIFO queue  inter‐
137              face  to the application.  Message data transfers allow applica‐
138              tions to send and receive data  with  message  boundaries  being
139              maintained.
140
141       fi_tagged - Tagged Message Queues
142              Tagged  message  lists  expose send/receive data transfer opera‐
143              tions built on the concept of tagged messaging.  The tagged mes‐
144              sage  queue  is conceptually similar to standard message queues,
145              but with the addition of 64-bit tags  for  each  message.   Sent
146              messages are matched with receive buffers that are tagged with a
147              similar value.
148
149       fi_rma - Remote Memory Access
150              RMA transfers are one-sided operations that read or  write  data
151              directly to a remote memory region.  Other than defining the ap‐
152              propriate memory region, RMA operations do not require  interac‐
153              tion at the target side for the data transfer to complete.
154
155       fi_atomic - Atomic
156              Atomic operations can perform one of several operations on a re‐
157              mote memory region.  Atomic operations include well-known  func‐
158              tionality, such as atomic-add and compare-and-swap, plus several
159              other pre-defined calls.  Unlike other data transfer interfaces,
160              atomic operations are aware of the data formatting at the target
161              memory region.
162

LOGGING INTERFACE

164       Logging can be controlled  using  the  FI_LOG_LEVEL,  FI_LOG_PROV,  and
165       FI_LOG_SUBSYS environment variables.
166
167       FI_LOG_LEVEL
168              FI_LOG_LEVEL controls the amount of logging data that is output.
169              The following log levels are defined.
170
171       - Warn Warn is the least verbose setting and is intended for  reporting
172              errors or warnings.
173
174       - Trace
175              Trace  is more verbose and is meant to include non-detailed out‐
176              put helpful to tracing program execution.
177
178       - Info Info is high traffic and meant for detailed output.
179
180       - Debug
181              Debug is high traffic and is likely to impact  application  per‐
182              formance.   Debug  output  is  only available if the library has
183              been compiled with debugging enabled.
184
185       FI_LOG_PROV
186              The FI_LOG_PROV environment variable enables or disables logging
187              from  specific  providers.   Providers can be enabled by listing
188              them in a comma separated fashion.  If the list begins with  the
189              '^'  symbol,  then  the  list  will  be negated.  By default all
190              providers are enabled.
191
192       Example:  To  enable  logging  from  the  psm  and  sockets   provider:
193       FI_LOG_PROV="psm,sockets"
194
195       Example:   To   enable   logging   from   providers   other  than  psm:
196       FI_LOG_PROV="^psm"
197
198       FI_LOG_SUBSYS
199              The FI_LOG_SUBSYS environment variable enables or disables  log‐
200              ging  at  the  subsystem level.  The syntax for enabling or dis‐
201              abling subsystems is similar to that used for FI_LOG_PROV.   The
202              following subsystems are defined.
203
204       - core Provides output related to the core framework and its management
205              of providers.
206
207       - fabric
208              Provides output specific to  interactions  associated  with  the
209              fabric object.
210
211       - domain
212              Provides output specific to interactions associated with the do‐
213              main object.
214
215       - ep_ctrl
216              Provides output specific to endpoint  non-data  transfer  opera‐
217              tions, such as CM operations.
218
219       - ep_data
220              Provides output specific to endpoint data transfer operations.
221
222       - av   Provides output specific to address vector operations.
223
224       - cq   Provides output specific to completion queue operations.
225
226       - eq   Provides output specific to event queue operations.
227
228       - mr   Provides output specific to memory registration.
229

PROVIDER INSTALLATION AND SELECTION

231       The  libfabric  build  scripts will install all providers that are sup‐
232       ported by the installation system.  Providers that  are  missing  build
233       prerequisites  will  be disabled.  Installed providers will dynamically
234       check for necessary hardware on library initialization and respond  ap‐
235       propriately to application queries.
236
237       Users  can enable or disable available providers through build configu‐
238       ration options.  See 'configure --help' for  details.   In  general,  a
239       specific  provider  can be controlled using the configure option '--en‐
240       able-'.  For example, '--enable-udp' (or '--enable-udp=yes')  will  add
241       the  udp  provider  to  the  build.   To  disable  the provider, '--en‐
242       able-udp=no' can be used.
243
244       Providers can also  be  enable  or  disabled  at  run  time  using  the
245       FI_PROVIDER environment variable.  The FI_PROVIDER variable is set to a
246       comma separated list of providers to include.  If the list begins  with
247       the '^' symbol, then the list will be negated.
248
249       Example:   To   enable   the   udp   and   tcp   providers  only,  set:
250       FI_PROVIDER="udp,tcp"
251
252       The fi_info utility, which is included as part of the  libfabric  pack‐
253       age,  can  be  used  to  retrieve information about which providers are
254       available in the system.  Additionally, it can retrieve a list  of  all
255       environment  variables that may be used to configure libfabric and each
256       provider.  See fi_info(1) for more details.
257

ENVIRONMENT VARIABLE CONTROLS

259       Core features of libfabric and its providers may be  configured  by  an
260       administrator through the use of environment variables.  Man pages will
261       usually describe the most commonly accessed variables,  such  as  those
262       mentioned  above.  However, libfabric defines interfaces for publishing
263       and obtaining environment variables.  These are targeted for providers,
264       but  allow  applications and users to obtain the full list of variables
265       that may be set, along with a brief description of their use.
266
267       A full list of variables available  may  be  obtained  by  running  the
268       fi_info application, with the -e or --env command line option.
269

NOTES

271       Because  libfabric is designed to provide applications direct access to
272       fabric hardware, there are limits on how  libfabric  resources  may  be
273       used  in  conjunction with system calls.  These limitations are notable
274       for developers who may be familiar programming to  the  sockets  inter‐
275       face.   Although  limits  are provider specific, the following restric‐
276       tions apply to many providers and should be adhered to by  applications
277       desiring portability across providers.
278
279       fork   Fabric  resources  are  not  guaranteed to be available by child
280              processes.  This includes objects, such as endpoints and comple‐
281              tion  queues,  as  well  as  application controlled data buffers
282              which have been assigned to the network.  For example, data buf‐
283              fers  that  have been registered with a fabric domain may not be
284              available in a child process because of copy on  write  restric‐
285              tions.
286

SEE ALSO

288       fi_info(1),   fi_provider(7),   fi_getinfo(3),  fi_endpoint(3),  fi_do‐
289       main(3), fi_av(3), fi_eq(3), fi_cq(3), fi_cntr(3), fi_mr(3)
290

AUTHORS

292       OpenFabrics.
293
294
295
296Libfabric Programmer's Manual     2019-05-04                         fabric(7)
Impressum