fi_pingpong (1) - Linux Man Pages
fi_pingpong: Quick and simple pingpong test for libfabric
fi_pingpong - Quick and simple pingpong test for libfabric
start server fi_pingpong [OPTIONS] <server address> connect to server
fi_pingpong is a pingpong test for the core feature of the libfabric library: transmitting data between two processes. fi_pingpong also displays aggregated statistics after each test run, and can additionally verify data integrity upon receipt.
HOW TO RUN TESTS
Two copies of the program must be launched: first, one copy must be launched as the server. Second, another copy is launched with the address of the server.
Start the server
Start the client
client$ fi_pingpong <server address>
The server and client must be able to communicate properly for the fi_pingpong utility to function. If any of the -e, -I, -S, or -p options are used, then they must be specified on the invocation for both the server and the client process. If the -d option is specified on the server, then the client will select the appropriate domain if no hint is provided on the client side. If the -d option is specified on the client, then it must also be specified on the server. If both the server and client specify the -d option and the given domains cannot communicate, then the application will fail.
-B <src_port> : The non-default source port number of the control socket. If this is not provided then the server will bind to port 47592 by default and the client will allow the port to be selected automatically.
-p <provider_name> : The name of the underlying fabric provider (e.g., sockets, psm, usnic, etc.). If a provider is not specified via the -p switch, the test will pick one from the list of available providers (as returned by fi_getinfo(3)).
-e <endpoint> : The type of endpoint to be used for data messaging between the two processes. Supported values are dgram, rdm, and msg. For more information on endpoint types, see fi_endpoint(3).
-I <iter> : The number of iterations of the test will run.
-S <msg_size> : The specific size of the message in bytes the test will use or 'all' to run all the default sizes.
-v : Activate output debugging (warning: highly verbose)
A simple example
Server: fi_pingpong -p <provider_name>
Client: fi_pingpong -p <provider_name> <server_addr>
An example with various options
client$ fi_pingpong -p usnic -I 1000 -S 1024 192.168.0.123
Specifically, this will run a pingpong test with:
- usNIC provider
- 1000 iterations
- 1024 bytes message size
- server node as 192.168.0.123
A longer test
There is no default provider; if a provider is not specified via the -p switch, the test will pick one from the list of available providers (as returned by fi_getinfo(3)).
If no endpoint type is specified, 'dgram' is used.
Each test generates data messages which are accounted for. Specifically, the displayed statistics at the end are :
- bytes : number of bytes per message sent
- #sent : number of messages (ping) sent from the client to the server
- #ack : number of replies (pong) of the server received by the client
- total : amount of memory exchanged between the processes
- time : duration of this single test
- MB/sec : throughput computed from total and time
- usec/xfer : average time for transferring a message outbound (ping or pong) in microseconds
- Mxfers/sec : average amount of transfers of message outbound per second