image image image image image

On This Page

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: 

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


    • To run the server, use: 

      LD_PRELOAD=libxlio.so sockperf sr -i <server ip> --tcp
    • To run the client, use: 

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


      To run the client, use: 

      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:

      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: 

    LD_PRELOAD=libxlio.so sockperf sr
  1. Run sockperf client on Host B: 

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