Scroll to navigation

fabtests(7) @VERSION@ fabtests(7)

NAME

Fabtests

SYNOPSIS

Fabtests is a set of examples for fabric providers that demonstrates various features of libfabric- high-performance fabric software library.

OVERVIEW

Libfabric defines sets of interface that fabric providers can support. The purpose of Fabtests examples is to demonstrate some of the major features. The goal is to familiarize users with different functionalities libfabric offers and how to use them. Although most tests report performance numbers, they are designed to test functionality and not performance. The exception are the benchmarks and ubertest.

The tests are divided into the following categories. Except the unit tests all of them are client-server tests. Not all providers will support each test.

The test names try to indicate the type of functionality each test is verifying. Although some tests work with any endpoint type, many are restricted to verifying a single endpoint type. These tests typically include the endpoint type as part of the test name, such as dgram, msg, or rdm.

Functional

These tests are a mix of very basic functionality tests that show major features of libfabric.

Tests communication for unconnected endpoints, as addresses are inserted and removed from the local address vector.
Verifies exchanging CM data as part of connecting endpoints.
Tranfers messages with CQ data.
A basic datagram endpoint example.
Transfers datagrams using waitsets for completion notifcation.
Sends messages using the FI_INJECT_COMPLETE operation flag.
A simple multicast test.
A basic message endpoint example.
Transfers messages with completion queues configured to use file descriptors as wait objetcts. The file descriptors are retrieved by the program and used directly with the Linux epoll API.
Verifies that the address assigned to a passive endpoint can be transitioned to an active endpoint. This is required applications that need socket API semantics over RDMA implementations (e.g. rsockets).
Performs data transfers over multiple endpoints in parallel.
Issues RMA write operations to multiple memory regions, using completion counters of inbound writes as the notification mechanism.
Exchanges data over RDM endpoints using poll sets to drive completion notifications.
A basic RDM endpoint example.
Test and verifies atomic operations over an RDM endpoint.
Test triggered operations and deferred work queue support.
Performs data transfers over multiple endpoints, with each endpoint belonging to a different opened domain.
Transfers multiple messages over an RDM endpoint that are received into a single buffer, posted using the FI_MULTI_RECV flag.
A simple RMA write example over an RDM endpoint.
A basic example of queuing an RMA write operation that is initiated upon the firing of a triggering completion. Works with RDM endpoints.
Spawns child processes to verify basic functionality of using a shared address vector with RDM endpoints.
Basic test of using the FI_PEEK operation flag with tagged messages. Works with RDM endpoints.
Tests canceling posted receives for tagged messages.
Tests the resource management enabled feature. This verifies that the provider prevents applications from overruning local and remote command queues and completion queues. This corresponds to setting the domain attribute resource_mgmt to FI_RM_ENABLED.
Performs data transfers over scalable endpoints, endpoints associated with multiple transmit and receive contexts.
Performs data transfers between multiple endpoints, where the endpoints share transmit and/or receive contexts.
Tests the send and receive handling of unexpected tagged messages.

Benchmarks

The client and the server exchange messages in either a ping-pong manner, for pingpong named tests, or transfer messages one-way, for bw named tests. These tests can transfer various messages sizes, with controls over which features are used by the test, and report performance numbers. The tests are structured based on the benchmarks provided by OSU MPI. They are not guaranteed to provide the best latency or bandwidth performance numbers a given provider or system may achieve.

Latency test for datagram endpoints
Message transfer bandwidth test for connected (MSG) endpoints.
Message transfer latency test for connected (MSG) endpoints.
Message transfer latency test for reliable-datagram (RDM) endpoints that uses counters as the completion mechanism.
Message transfer latency test for reliable-datagram (RDM) endpoints.
Tagged message bandwidth test for reliable-datagram (RDM) endpoints.
Tagged message latency test for reliable-datagram (RDM) endpoints.
An RMA read and write bandwidth test for reliable (MSG and RDM) endpoints.

Unit

These are simple one-sided unit tests that validate basic behavior of the API. Because these are single system tests that do not perform data transfers their testing scope is limited.

Verify address vector interfaces.
Tests counter creation and destruction.
Tests completion queue creation and destruction.
Tests domain creation and destruction.
Tests event queue creation, destruction, and capabilities.
Tests provider response to fi_getinfo calls with varying hints.
Tests memory registration.
Allocates and closes fabric resources to check for proper cleanup.

Ubertest

This is a comprehensive latency, bandwidth, and functionality test that can handle a variety of test configurations. The test is able to run a large number of tests by iterating over a large number of test variables. As a result, a full ubertest run can take a significant amount of time. Because ubertest iterates over input variables, it relies on a test configuration file for control, rather than extensive command line options that are used by other fabtests. A configuration file must be constructured for each provider. Example test configurations are at /test_configs.

This test takes a configure file as input. The file contains a list of variables and their values to iterate over. The test will run a set of latency, bandwidth, and functionality tests over a given provider. It will perform one execution for every possible combination of all variables. For example, if there are 8 test variables, with 6 having 2 possible values and 2 having 3 possible values, ubertest will execute 576 total iterations of each test.

HOW TO RUN TESTS

(1)
Fabtests requires that libfabric be installed on the system, and at least one provider be usable.
(2)
Install fabtests on the system. By default all the test executables are installed in /usr/bin directory unless specified otherwise.
(3)
All the client-server tests have the following usage model:

fi_ [OPTIONS] start server fi_ connect to server

COMMAND LINE OPTIONS

Tests share command line options where appropriate. The following command line options are available for one or more test. To see which options apply for a given test, you can use the '-h' help option to see the list available for that test.

Displays help output for the test.
Restrict test to the specified fabric name.
Restrict test to the specified domain name.
Restrict test to the specified provider name.
Use the specified endpoint type for the test. Valid options are msg, dgram, and rdm. The default endpoint type is rdm.
*-a
: The name of a shared address vector. This option only applies to tests that support shared address vectors.
Specifies the port number of the local endpoint, overriding the default.
Specifies the port number of the peer endpoint, overriding the default.
*-s
: Specifies the address of the local endpoint.
Enables out-of-band (via sockets) address exchange and test synchronization. A port for the out-of-band connection may be specified as part of this option to override the default.
Number of data transfer iterations.
Number of warm-up data transfer iterations.
Data transfer size or 'all' for a full range of sizes. By default a select number of sizes will be tested.
If specified, the starting address of transmit and receive buffers will be aligned along a page boundary.
Use machine readable output. This is useful for post-processing the test output with scripts.
Specify the type of completion mechanism to use. Valid values are queue and counter. The default is to use completion queues.
Indicate the type of processing to use checking for completed operations. Valid values are spin, sread, and fd. The default is to busy wait (spin) until the desired operation has completed. The sread option indicates that the application will invoke a blocking read call in libfabric, such as fi_cq_sread. Fd indicates that the application will retrieve the native operating system wait object (file descriptor) and use either poll() or select() to block until the fd has been signaled, prior to checking for completions.
For RMA based tests, specify the type of RMA operation to perform. Valid values are read, write, and writedata. Write operations are the default.
For multicast tests, specifies the address of the multicast group to join.

USAGE EXAMPLES

A simple example

run server: <test_name> -p <provider_name> -s <source_addr>
    e.g.    fi_msg_rma -p sockets -s 192.168.0.123
run client: <test_name> <server_addr> -p <provider_name>
    e.g.    fi_msg_rma 192.168.0.123 -p sockets

An example with various options

run server: fi_rdm_atomic -p psm -s 192.168.0.123 -I 1000 -S 1024
run client: fi_rdm_atomic 192.168.0.123 -p psm -I 1000 -S 1024

This will run "fi_rdm_atomic" for all atomic operations with

- PSM provider
- 1000 iterations
- 1024 bytes message size
- server node as 123.168.0.123

Run fi_ubertest

run server: fi_ubertest
run client: fi_ubertest -u /usr/share/fabtests/test_configs/sockets/quick.test 192.168.0.123

This will run "fi_ubertest" with

- sockets provider
- configurations defined in /usr/share/fabtests/test_configs/sockets/quick.test
- server node as 192.168.0.123

The config files are provided in /test_configs for sockets, verbs, udp, and usnic providers and distributed with fabtests installation.

For more usage options: fi_ubertest -h

Run the whole fabtests suite

A runscript scripts/runfabtests.sh is provided that runs all the tests in fabtests and reports the number of pass/fail/notrun.

Usage: runfabtests.sh [OPTIONS] [provider] [host] [client]

By default if none of the options are provided, it runs all the tests using

- sockets provider
- 127.0.0.1 as both server and client address
- for small number of optiond and iterations

Various options can be used to choose provider, subset tests to run, level of verbosity etc.

runfabtests.sh -vvv -t all psm 192.168.0.123 192.168.0.124

This will run all fabtests using

- psm provider
- for different options and larger iterations
- server node as 192.168.0.123 and client node as 192.168.0.124
- print test output for all the tests

For detailed usage options: runfabtests.sh -h

AUTHORS

OpenFabrics.

2018-10-06 Libfabric Programmer's Manual