.TH "fi_pingpong" "1" "2016\-09\-02" "Libfabric Programmer\[aq]s Manual" "\@VERSION\@" .SH NAME .PP fi_pingpong \- Quick and simple pingpong test for libfabric .SH SYNOPSYS .IP .nf \f[C] \ fi_pingpong\ [OPTIONS]\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ start\ server \ fi_pingpong\ [OPTIONS]\ \ \ \ \ \ connect\ to\ server \f[] .fi .SH DESCRIPTION .PP 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. .PP By default, the datagram (FI_EP_DGRAM) endpoint is used for the test, unless otherwise specified via \f[C]\-e\f[]. .SH HOW TO RUN TESTS .PP 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. .PP As a client\-server test, each have the following usage model: .SS Start the server .IP .nf \f[C] server$\ fi_pingpong \f[] .fi .SS Start the client .IP .nf \f[C] client$\ fi_pingpong\ \f[] .fi .SH OPTIONS .PP The server and client must be able to communicate properly for the fi_pingpong utility to function. If any of the \f[C]\-e\f[], \f[C]\-I\f[], \f[C]\-S\f[], or \f[C]\-p\f[] options are used, then they must be specified on the invocation for both the server and the client process. If the \f[C]\-d\f[] 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 \f[C]\-d\f[] option is specified on the client, then it must also be specified on the server. If both the server and client specify the \f[C]\-d\f[] option and the given domains cannot communicate, then the application will fail. .SS Control Messaging .PP \f[I]\-B \f[] : 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. .PP \f[I]\-P \f[] : The non\-default destination port number of the control socket. If this is not provided then the client will connect to 47592 by default. The server ignores this option. .SS Fabric Filtering .PP \f[I]\-p \f[] : 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)). .PP \f[I]\-e \f[] : 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). .PP \f[I]\-d \f[] : The name of the specific domain to be used. .SS Test Options .PP \f[I]\-I \f[] : The number of iterations of the test will run. .PP \f[I]\-S \f[] : The specific size of the message in bytes the test will use or \[aq]all\[aq] to run all the default sizes. .PP \f[I]\-c\f[] : Activate data integrity checks at the receiver (note: this will degrade performance). .SS Utility .PP \f[I]\-v\f[] : Activate output debugging (warning: highly verbose) .PP \f[I]\-h\f[] : Displays help output for the pingpong test. .SH USAGE EXAMPLES .SS A simple example .SS Server: \f[C]fi_pingpong\ \-p\ \f[] .PP \f[C]server$\ fi_pingpong\ \-p\ sockets\f[] .SS Client: \f[C]fi_pingpong\ \-p\ \ \f[] .PP \f[C]client$\ fi_pingpong\ \-p\ sockets\ 192.168.0.123\f[] .SS An example with various options .SS Server: .PP \f[C]server$\ fi_pingpong\ \-p\ usnic\ \-I\ 1000\ \-S\ 1024\f[] .SS Client: .PP \f[C]client$\ fi_pingpong\ \-p\ usnic\ \-I\ 1000\ \-S\ 1024\ 192.168.0.123\f[] .PP Specifically, this will run a pingpong test with: .IP \[bu] 2 usNIC provider .IP \[bu] 2 1000 iterations .IP \[bu] 2 1024 bytes message size .IP \[bu] 2 server node as 192.168.0.123 .SS A longer test .SS Server: .PP \f[C]server$\ fi_pingpong\ \-p\ usnic\ \-I\ 10000\ \-S\ all\f[] .SS Client: .PP \f[C]client$\ fi_pingpong\ \-p\ usnic\ \-I\ 10000\ \-S\ all\ 192.168.0.123\f[] .SH DEFAULTS .PP There is no default provider; if a provider is not specified via the \f[C]\-p\f[] switch, the test will pick one from the list of available providers (as returned by fi_getinfo(3)). .PP If no endpoint type is specified, \[aq]dgram\[aq] is used. .PP The default tested sizes are: 64, 256, 1024, 4096, 65536, and 1048576. The test will only test sizes that are within the selected endpoints maximum message size boundary. .SH OUTPUT .PP Each test generates data messages which are accounted for. Specifically, the displayed statistics at the end are : .IP \[bu] 2 \f[I]bytes\f[] : number of bytes per message sent .IP \[bu] 2 \f[I]#sent\f[] : number of messages (ping) sent from the client to the server .IP \[bu] 2 \f[I]#ack\f[] : number of replies (pong) of the server received by the client .IP \[bu] 2 \f[I]total\f[] : amount of memory exchanged between the processes .IP \[bu] 2 \f[I]time\f[] : duration of this single test .IP \[bu] 2 \f[I]MB/sec\f[] : throughput computed from \f[I]total\f[] and \f[I]time\f[] .IP \[bu] 2 \f[I]usec/xfer\f[] : average time for transferring a message outbound (ping or pong) in microseconds .IP \[bu] 2 \f[I]Mxfers/sec\f[] : average amount of transfers of message outbound per second .SH SEE ALSO .PP \f[C]fi_getinfo\f[](3), \f[C]fi_endpoint\f[](3) \f[C]fabric\f[](7), .SH AUTHORS OpenFabrics.