Using sockperf with XLIO

NVIDIA Accelerated IO (XLIO) Documentation Rev 3.20.7

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 throughput test:

    • To run the server, use:

      Copy
      Copied!
                  

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

    • To run the client, use:

      Copy
      Copied!
                  

      LD_PRELOAD=libxlio.so sockperf tp -i <server ip> --msg-size=1472

  • To run a sockperf TCP throughput test:

    • To run the server, use:

      Copy
      Copied!
                  

      XLIO_STRQ=regular_rq LD_PRELOAD=libxlio.so sockperf sr -i <server ip> --msg-size=1472 --tcp

    • To run the client, use:

      Copy
      Copied!
                  

      XLIO_STRQ=regular_rq LD_PRELOAD=libxlio.so sockperf tp -i <server ip> --msg-size=1472 --tcp

For more information, please refer to sockperf help using sockperf -h.

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 Nov 3, 2023.