eflatency - eflatency - UG1586

Onload User Guide (UG1586)

Document_ID
UG1586
Release_Date
2026-06-08
Revision
1.5 English

The OpenOnload distribution includes the command line eflatency test application to measure latency of the ef_vi layer 2 API.

eflatency is a single thread ping/pong application. When all iterations are complete the client side will display the round-trip time.

eflatency determines the lowest latency mode that it is possible to use, from the following:

  • CTPIO
  • TX alternatives
  • PIO
  • DMA.

By default, eflatency sends 10000 warm-up packets to fill caches and stabilize the system, before measuring statistics over 100000 iterations of packets with no payload. Payload size and numbers of iterations can be configured.

Source code for eflatency is supplied in the onload-examples subpackage. After installing the subpackage, it is available in:

/usr/share/doc/onload/examples/ef_vi

The source code is not compiled as part of the Onload install process. To build it do the following:

# cd /usr/share/doc/onload/examples/ef_vi
# make