Rate This Document
Findability
Accuracy
Completeness
Readability

Testing the Performance of 4 PMDs

Case No.

4.2.1

Objective

Test the packet rate of four forwarding cores on the server host.

Test Networking

See Figure 1.

Prerequisites

See Building a Test Environment.

Test Procedure

  1. Start the OVS service.
    1
    service openvswitch start
    
  2. Set the boot parameters.
    1
    ovs-vsctl --no-wait set Open_vSwitch . other_config:dpdk-init=true other_config:dpdk-socket-mem="4096" other_config:dpdk-lcore-mask="0x1F" other_config:pmd-cpu-mask="0x1E"
    
  3. Restart the OVS service.
    1
    service openvswitch restart
    
  4. Set the VM queue.
    1
    virsh edit VM1
    

    Change the value marked in the following figure to 8.

    Modify VM 1 to VM 8 one by one.

  5. Modify the networking script.
    1. Change PCI addresses of network ports based on 4. You need to configure them only once.
    2. Change the queue number of network ports. Change the values marked in the following figure to 8.

  6. Perform the test based on Testing the Performance of One PMD.

Expected Results

The difference of multiple test results for the same CPU does not exceed 10%.

Test Results

Software offloading: 5.3355 million PPS; OVS+DPDK: 3.0351 million PPS

Remarks

-