Whamcloud - gitweb
ef70b2fe6d9bfa19ea69e9a61a2d0dcd1c8a241a
[fs/lustre-release.git] / lnet / tests / ut.README
1 The utcli (unit test client) and utsrv (unit test server) are very simple
2 unit test tools, for sending and receiving single get's/put's of a specific 
3 size, using the LNET API set.
4
5 Test Setup
6 uml1 ip=192.168.2.1
7 uml2 ip=192.168.2.2
8
9 --------------------------------------------------------------------------------
10 Example Test #1 - small get operation
11
12 1) Setup server for listening
13 uml2 $ insmod utsvr.ko   
14
15 2) Do the get operation NID must be specified but all other are default
16 paramters which causes a 300 byte get op
17 uml1 $ insmod utcli.ko nid=192.168.2.2@tcp
18
19 3) Unload the utsvr because currently it only supports a single operation
20 buffers are not reposted after they are consumed
21 *** FIX THIS LIMITATION ***
22 uml2 $ rmmod utsvr
23
24 --------------------------------------------------------------------------------
25 Example Test #2 - small put operation
26 (The setup and cleanup of the server are left out, because they are the
27 same as above)
28
29 1) The adition of the "put=1" paramter causes a put rather than a get.  The
30 default size of 300 is still used.
31 uml1 $ insmod utcli.ko nid=192.168.2.2@tcp put=1
32
33 --------------------------------------------------------------------------------
34 Example Test #3 - large get operation
35
36 1) Setup server for listening.  The size must be specified on the server or else
37 the default of 300 bytes will be used.
38 uml2 $ insmod utsvr.ko  pkt_size=5000 
39
40 2) Do the large get operation pkt_size=5000.  put=0 is a get operation, 
41 it is equivlenet to just not having that parameter.
42 uml1 $ insmod utcli.ko nid=192.168.2.2@tcp put=0 pkt_size=5000
43