NVIDIA Accelerated IO (XLIO) Documentation Rev 1.1.8
1.0

Using sockperf with XLIO

Sockperf is XLIO's sample application for testing latency and throughput over a socket API. The precompiled sockperf binary is located in /usr/bin/sockperf.

For detailed instructions on how to optimally tune your machines for XLIO performance, please see the Tuning Guide and XLIO Performance Tuning Guide.

To run a sockperf UDP test:

  • To run the server, use:

    Copy
    Copied!
                

    LD_PRELOAD=libxlio.so sockperf sr -i <server ip>

    • To run the server, use:

      Copy
      Copied!
                  

      LD_PRELOAD=libxlio.so sockperf sr -i <server ip> --tcp

    • To run the client, use:

      Copy
      Copied!
                  

      LD_PRELOAD=libxlio.so sockperf <sockperf test> –i <server ip> --tcp

      To run the client, use:

      Copy
      Copied!
                  

      LD_PRELOAD=libxlio.so sockperf <sockperf test> –i <server ip>

      Where:

      • <server ip> is the IP address of the server

      • <sockperf test> is the test you want to run, for example, pp for the ping-pong test, tp for the throughput test, and so on. (Use sockperf -h to display a list of all available tests.)

      To run a sockperf TCP test:

      Copy
      Copied!
                  

      LD_PRELOAD=libxlio.so sockperf <sockperf test> –i <server ip> --tcp

Example - Running sockperf Ping-pong Test

For optimal performance, please refer to Basic Performance Tuning.

  1. Run sockperf server on Host A:

    Copy
    Copied!
                

    LD_PRELOAD=libxlio.so sockperf sr

  1. Run sockperf client on Host B:

    Copy
    Copied!
                

    LD_PRELOAD=libxlio.so sockperf pp –i <server_ip>

© Copyright 2023, NVIDIA. Last updated on May 23, 2023.