Whamcloud - gitweb
i=isaac,b=18654:
[fs/lustre-release.git] / lnet / klnds / mxlnd / README
1 *************************************************************************
2 *                                                                       *
3 *    Myrinet Express Lustre Networking Driver (MXLND) documentation     *
4 *                                                                       *
5 *************************************************************************
6
7 README of MXLND
8
9 MXLND provides support for Myricom's Myrinet Express (MX) communication
10 layer in Lustre.
11
12 MXLND may be used with either MX-10G or MX-2G. See MX's README for
13 supported NICs.
14
15 Table of Contents:
16     I. Installation
17        1. Configuring and compiling
18        2. Module Parameters
19    II. MXLND Performance
20   III. Caveats
21        1. Systems with different page sizes
22        2. Multi-homing
23        3. MX endpoint collision
24    IV. License
25     V. Support
26
27 ================
28 I. Installation
29 ================
30
31 MXLND is supported on Linux 2.6. It may be possible to run it on 2.4,
32 but it has not been tested. MXLND requires Myricom's MX version 1.2.8
33 or higher. See MX's README for the supported list of processors.
34
35 MXLND requires the optional MX kernel library interface. MX must be compiled
36 with --enable-kernel-lib.
37
38 1. Configuring and compiling
39
40 MXLND should be already integrated into the Lustre build process. To 
41 build MXLND, you will need to set the path to your MX installation
42 in Lustre's ./configure:
43
44     --with-mx=/opt/mx
45
46 replacing /opt with the actual path. Configure will check to ensure that
47 the MX version has the required functions. If not, it will fail to build.
48 To check if MXLND built, look for:
49
50     checking whether to enable Myrinet MX support... yes
51
52 in configure's output or the presence of Makefile in
53 $LUSTRE/lnet/klnds/mxlnd.
54
55 2. Module Parameters
56
57 MXLND supports a number of load-time parameters using Linux's module
58 parameter system. On our test systems, we created the following file:
59
60     /etc/modprobe.d/kmxlnd
61
62 On some (older?) systems, you may need to modify /etc/modprobe.conf.
63
64 The available options are:
65
66     n_waitd     # of completion daemons
67     max_peers   maximum number of peers that may connect
68     cksum       set non-zero to enable small message (< 4KB) checksums
69     ntx         # of total tx message descriptors
70     credits     # concurrent sends to a single peer
71     board       index value of the Myrinet board (NIC)
72     ep_id       MX endpoint ID
73     polling     Use 0 to block (wait). A value > 0 will poll that many times before blocking
74
75 You may want to vary the options to obtain the optimal performance for your
76 platform.
77
78     n_waitd sets the number of threads that process completed MX requests
79 (sends and receives). In our testing, the default of 1 performed best.
80
81     max_peers tells MXLND the upper limit of machines that it will need to 
82 communicate with. This affects how many receives it will pre-post and each
83 receive will use one page of memory. Ideally, on clients, this value will
84 be equal to the total number of Lustre servers (MDS and OSS). On servers,
85 it needs to equal the total number of machines in the storage system.
86
87     cksum turns on small message checksums. It can be used to aid in trouble-
88 shooting. MX also provides an optional checksumming feature which can check 
89 all messages (large and small). See the MX README for details.
90
91     ntx is the number of total sends in flight from this machine. In actuality,
92 MXLND reserves half of them for connect messages so make this value twice as large
93 as you want for the total number of sends in flight.
94
95     credits is the number of in-flight messages for a specific peer. This is part
96 of the flow-control system in Lustre. Increasing this value may improve performance
97 but it requires more memory since each message requires at least one page.
98
99     board is the index of the Myricom NIC. Hosts can have multiple Myricom NICs
100 and this identifies which one MXLND should use.
101
102     ep_id is the MX endpoint ID. Each process that uses MX is required to have at
103 least one MX endpoint to access the MX library and NIC. The ID is a simple index
104 starting at 0. When used on a server, the server will attempt to use this end-
105 point. When used on a client, it specifies the endpoint to connect to on the 
106 management server.
107
108     polling determines whether this host will poll or block for MX request com-
109 pletions. A value of 0 blocks and any positive value will poll that many times
110 before blocking. Since polling increases CPU usage, we suggest you set this to
111 0 on the client and experiment with different values for servers.
112
113 =====================
114 II. MXLND Performance
115 =====================
116
117 On MX-2G systems, MXLND should easily saturate the link and use minimal CPU 
118 (5-10% for read and write operations). On MX-10G systems, MXLND can saturate 
119 the link and use moderate CPU resources (20-30% for read and write operations).
120 MX-10G relies on PCI-Express which is relatively new and performance varies
121 considerably by processor, motherboard and PCI-E chipset. Refer to Myricom's
122 website for the latest DMA read/write performance results by motherboard. The
123 DMA results will place an upper-bound on MXLND performance.
124
125 ============
126 III. Caveats
127 ============
128
129 1. Systems with different page sizes
130
131 MXLND will set the maximum small message size equal to the kernel's page size.
132 This means that machines running MXLND that have different page sizes are not
133 able to communicate with each other. If you wish to run MXLND in this case,
134 send email to help@myri.com.
135
136 2. Multi-homing
137
138 At this time, the MXLND does not support more than one interface at a time.
139 Thus, a single Lustre router cannot route between two MX-10G, between two
140 MX-2G, or between MX-10G and MX-2G fabrics.
141
142 3. MX endpoint collision
143
144 Each process that uses MX is required to have at least one MX endpoint to
145 access the MX library and NIC. Other processes may need to use MX and no two
146 processes can use the same endpoint ID.  MPICH-MX dynamically chooses one at
147 MPI startup and should not interfere with MXLND. Sockets-MX, on the other hand,
148 is hard coded to use 0 for its ID. If it is possible that anyone will want to
149 run Sockets-MX on this system, use a non-0 value for MXLND's endpoint ID.
150
151
152 ===========
153 IV. License
154 ===========
155
156 MXLND is copyright (C) 2006 of Myricom, Inc. 
157
158 MXLND is part of Lustre, http://www.lustre.org.
159
160 MXLND is free software; you can redistribute it and/or modify it under the
161 terms of version 2 of the GNU General Public License as published by the Free
162 Software Foundation.
163
164 MXLND is distributed in the hope that it will be useful, but WITHOUT ANY
165 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
166 PARTICULAR PURPOSE.  See the GNU General Public License for more details.
167
168 You should have received a copy of the GNU General Public License along with
169 Lustre; if not, write to the Free Software Foundation, Inc., 675 Mass Ave,
170 Cambridge, MA 02139, USA.
171
172 ==========
173 V. Support
174 ==========
175
176 If you have questions about MXLND, please contact help@myri.com.