Step #2: Execute the Baseline Test

  1. If you haven’t already, open the Redis-Server web console and login. We will start one Redis server instance. Change the directory to the scripts folder using the command below.

    Copy
    Copied!
                

    cd Scripts/


  2. Execute the following script. Once the script has been executed, you will see the Redis process running.

    Copy
    Copied!
                

    launchpad@Redis-Server:~/Scripts$ ./startRedis.sh Starting Redis server... root 1853 1 0 21:12 ? 00:00:00 redis-server 0.0.0.0:5000 Done


  3. Next, you will make sure that the server is responsive by executing a ping command.

    Copy
    Copied!
                

    launchpad@Redis-Server:~/Scripts$ redis-cli -p 5000 127.0.0.1:5000> ping PONG 127.0.0.1:5000> exit launchpad@Redis-Server:~/Scripts$


  4. We are done configuring the Redis-Server. Next, we will move to the Benchmark-Client. If you haven’t already, open the Benchmark-Client web console and login.

Let’s first run a sanity check to see that the redis server is accessible from the client. We can run the same command as above but now pass the host parameter along with the port.

  1. Enter the command shown below. The baseline test will run over the 172.X.X.X network using a standard vSwitch.

    Copy
    Copied!
                

    launchpad@Benchmark-Client:~$ redis-cli -h 172.16.0.50 -p 5000 172.16.0.50:5000> ping PONG 172.16.0.50:5000> exit launchpad@Benchmark-Client:~$


  2. Next, we will be running the memtier benchmark. The runPerfTest-STD.sh script runs memtier with pre-assigned parameters and collects performance metrics in /home/launchpad/Results/results.txt. The script first runs a redis server warmup and then 5 iterations of performance benchmarking. This test should take a few minutes to run.

    Copy
    Copied!
                

    launchpad@Benchmark-Client:~/Scripts$ ./runPerfTest-STD.sh Writing results to ../Results/STD-2023.02.03-22.27.57/warmup-run-.txt... [RUN #1] Preparing benchmark client... [RUN #1] Launching threads now... ... [RUN #1 100%, 60 secs] 0 threads: 11703162 ops, 192270 (avg: 195051) ops/sec, 22.89MB/sec (avg: 23.23MB/sec), 0.16 (avg: 0.15) msec latency 2023.02.03-22.28.57 Starting iteration.. 1 Writing results to ../Results/STD-2023.02.03-22.27.57/results-run-1.txt... [RUN #1] Preparing benchmark client... [RUN #1] Launching threads now... ... [RUN #1 100%, 30 secs] 0 threads: 24393120 ops, 828503 (avg: 813094) ops/sec, 95.09MB/sec (avg: 93.31MB/sec), 0.18 (avg: 0.18) msec latency 2023.02.03-22.29.37 Starting iteration.. 2 Writing results to ../Results/STD-2023.02.03-22.27.57/results-run-2.txt... [RUN #1] Preparing benchmark client... [RUN #1] Launching threads now... ... [RUN #1 100%, 30 secs] 0 threads: 23700185 ops, 764532 (avg: 789995) ops/sec, 87.79MB/sec (avg: 90.66MB/sec), 0.19 (avg: 0.19) msec latency 2023.02.03-22.30.17 Starting iteration.. 3 Writing results to ../Results/STD-2023.02.03-22.27.57/results-run-3.txt... [RUN #1] Preparing benchmark client... [RUN #1] Launching threads now... ... [RUN #1 100%, 30 secs] 0 threads: 16040965 ops, 460493 (avg: 534690) ops/sec, 52.90MB/sec (avg: 61.36MB/sec), 0.32 (avg: 0.28) msec latency 2023.02.03-22.30.57 Starting iteration.. 4 Writing results to ../Results/STD-2023.02.03-22.27.57/results-run-4.txt... [RUN #1] Preparing benchmark client... [RUN #1] Launching threads now... ... [RUN #1 100%, 30 secs] 0 threads: 15199400 ops, 510632 (avg: 506639) ops/sec, 58.66MB/sec (avg: 58.14MB/sec), 0.29 (avg: 0.29) msec latency 2023.02.03-22.31.37 Starting iteration.. 5 Writing results to ../Results/STD-2023.02.03-22.27.57/results-run-5.txt... [RUN #1] Preparing benchmark client... [RUN #1] Launching threads now... ... [RUN #1 100%, 30 secs] 0 threads: 16238020 ops, 780467 (avg: 541259) ops/sec, 89.66MB/sec (avg: 62.11MB/sec), 0.19 (avg: 0.28) msec latency


  3. Now let’s take a look at the results of the test. These results will be our baseline for comparing against DPU offload using UPT in the next step.

    Copy
    Copied!
                

    launchpad@Benchmark-Client:~$ cat ~/Results/results.txt STD-2023.02.03-22.27.57 Summary: Total Iterations:5 Operations/Sec: 635804 Latency: 0.244856 ms Bandwidth: 74.7132 Mb/s


© Copyright 2022-2023, NVIDIA. Last updated on Feb 8, 2023.