Debian Codegraph @

prov/psm3/man/fi_lnx.7.md

raw symbols SCIP
1 ---
2 layout: page
3 title: fi_lnx(7)
4 tagline: Libfabric Programmer's Manual
5 ---
6 {% include JB/setup %}
7
8 # NAME
9
10 fi_lnx \- The LINKx (LNX) Provider
11
12 # OVERVIEW
13
14 The LNX provider is designed to link two or more providers, allowing
15 applications to seamlessly use multiple providers or NICs. This provider uses
16 the libfabric peer infrastructure to aid in the use of the underlying providers.
17 This version of the provider currently supports linking the libfabric
18 shared memory provider for intra-node traffic and another provider for
19 inter-node traffic. Future releases of the provider will allow linking any
20 number of providers and provide the users with the ability to influence
21 the way the providers are utilized for traffic load.
22
23 # SUPPORTED FEATURES
24
25 This release contains an initial implementation of the LNX provider that
26 offers the following support:
27
28 *Endpoint types*
29 : The provider supports only endpoint type *FI_EP_RDM*.
30
31 *Endpoint capabilities*
32 : LNX is a passthrough layer on the send path. On the receive path LNX
33 utilizes the peer infrastructure to create shared receive queues (SRQ).
34 Receive requests are placed on the SRQ instead of on the core provider
35 receive queue. When the provider receives a message it queries the SRQ for
36 a match. If one is found the receive request is completed, otherwise the
37 message is placed on the LNX shared unexpected queue (SUQ). Further receive
38 requests query the SUQ for matches.
39 The first release of the provider only supports tagged and RMA operations.
40 Other message types will be supported in future releases.
41
42 *Modes*
43 : The provider does not require the use of any mode bits.
44
45 *Progress*
46 : LNX utilizes the peer infrastructure to provide a shared completion
47 queue. Each linked provider still needs to handle its own progress.
48 Completion events will however be placed on the shared completion queue,
49 which is passed to the application for access.
50
51 *Address Format*
52 : LNX wraps the linked providers addresses in one common binary blob.
53 It does not alter or change the linked providers address format. It wraps
54 them into a LNX structure which is then flattened and returned to the
55 application. This is passed between different nodes. The LNX provider
56 is able to parse the flattened format and operate on the different links.
57 This assumes that nodes in the same group are all using the same version of
58 the provider with the exact same links. IE: you can't have one node linking
59 SHM+CXI while another linking SHM+RXM.
60
61 *Message Operations*
62 : LNX is designed to intercept message operations such as fi_tsenddata
63 and based on specific criteria forward the operation to the appropriate
64 provider. For the first release, LNX will only support linking SHM
65 provider for intra-node traffic and another provider (ex: CXI) for inter
66 node traffic. LNX send operation looks at the destination and based on
67 whether the destination is local or remote it will select the provider to
68 forward the operation to. The receive case has been described earlier.
69
70 *Using the Provider*
71 : In order to use the provider the user needs to set FI_LNX_PROV_LINKS
72 environment variable to the linked providers in the following format
73 shm+<prov>. This will allow LNX to report back to the application in the
74 fi_getinfo() call the different links which can be selected. Since there are
75 multiple domains per provider LNX reports a permutation of all the
76 possible links. For example if there are two CXI interfaces on the machine
77 LNX will report back shm+cxi0 and shm+cxi1. The application can then
78 select based on its own criteria the link it wishes to use.
79 The application typically uses the PCI information in the fi_info
80 structure to select the interface to use. A common selection criteria is
81 the interface nearest the core the process is bound to. In order to make
82 this determination, the application requires the PCI information about the
83 interface. For this reason LNX forwards the PCI information for the
84 inter-node provider in the link to the application.
85
86 # LIMITATIONS AND FUTURE WORK
87
88 *Hardware Support*
89 : LNX doesn't support hardware offload; ex hardware tag matching. This is
90 an inherit limitation when using the peer infrastructure. Due to the use
91 of a shared receive queue which linked providers need to query when
92 a message is received, any hardware offload which requires sending the
93 receive buffers to the hardware directly will not work with the shared
94 receive queue. The shared receive queue provides two advantages; 1) reduce
95 memory usage, 2) coordinate the receive operations. For #2 this is needed
96 when receiving from FI_ADDR_UNSPEC. In this case both providers which are
97 part of the link can race to gain access to the receive buffer. It is
98 a future effort to determine a way to use hardware tag matching and other
99 hardware offload capability with LNX
100
101 *Limited Linking*
102 : This release of the provider supports linking SHM provider for intra-node
103 operations and another provider which supports the FI_PEER capability for
104 inter-node operations. It is a future effort to expand to link any
105 multiple sets of providers.
106
107 *Memory Registration*
108 : As part of the memory registration operation, varying hardware can perform
109 hardware specific steps such as memory pinning. Due to the fact that
110 memory registration APIs do not specify the source or destination
111 addresses it is not possible for LNX to determine which provider to
112 forward the memory registration to. LNX, therefore, registers the memory
113 with all linked providers. This might not be efficient and might have
114 unforeseen side effects. A better method is needed to support memory
115 registration. One option is to have memory registration cache in lnx
116 to avoid expensive operations.
117
118 *Operation Types*
119 : This release of LNX supports tagged and RMA operations only. Future
120 releases will expand the support to other operation types.
121
122 *Multi-Rail*
123 : Future design effort is being planned to support utilizing multiple interfaces
124 for traffic simultaneously. This can be over homogeneous interfaces or over
125 heterogeneous interfaces.
126
127 # RUNTIME PARAMETERS
128
129 The *LNX* provider checks for the following environment variables:
130
131 *FI_LNX_PROV_LINKS*
132 : This environment variable is used to specify which providers to link. This
133 must be set in order for the LNX provider to return a list of fi_info
134 blocks in the fi_getinfo() call. The format which must be used is:
135 \<prov1>+\<prov2>+... As mentioned earlier currently LNX supports linking
136 only two providers the first of which is SHM followed by one other
137 provider for inter-node operations
138
139 *FI_LNX_DISABLE_SHM*
140 : By default this environment variable is set to 0. However, the user can
141 set it to one and then the SHM provider will not be used. This can be
142 useful for debugging and performance analysis. The SHM provider will
143 naturally be used for all intra-node operations. Therefore, to test SHM in
144 isolation with LNX, the processes can be limited to the same node only.
145
146 *FI_LNX_USE_SRQ*
147 : Shared Receive Queues are integral part of the peer infrastructure, but
148 they have the limitation of not using hardware offload, such as tag
149 matching. SRQ is needed to support the FI_ADDR_UNSPEC case. If the application
150 is sure this will never be the case, then it can turn off SRQ support by
151 setting this environment variable to 0. It is 1 by default.
152
153 # SEE ALSO
154
155 [`fabric`(7)](fabric.7.html),
156 [`fi_provider`(7)](fi_provider.7.html),
157 [`fi_getinfo`(3)](fi_getinfo.3.html)