pvp_multi_paths_virtio_single_core_perf Test Suite

Virtio-user single-core forwarding performance test suite.

This suite measures the packet forwarding throughput of DPDK’s virtio-user PMD running on a single CPU core. Performance is evaluated across multiple virtio path implementations, including packed versus split rings, in-order delivery, mergeable buffers, and SIMD vectorization. Test cases are parameterized using combinations of frame sizes, RX/TX descriptor ring counts, and target MPPS baselines specified in the test configuration. High-speed traffic is injected from an external generator through the physical host ports into the virtio-user instance, looped back, and returned to the generator. The aggregate MPPS processed by the single virtio core is verified against configured expected performance baselines to determine the test result.

class TestPvpMultiPathsVirtioSingleCorePerf

Bases: TestSuite

Pvp multi paths virtio single core performance test suite.

set_up_suite()

Set up the test suite.

Creates a safe path for vhost socket files and creates an editable copy of the test parameters to store results.

test_perf_vhost_single_core_virtio11_mergeable() → None

Validate expected single core forwarding performance.

Steps:
  • Set TestPMD virtio parameters: ring_format=1, buffers=1.

  • Create a packet according to the frame size specified in the test config.

  • Transmit from the traffic generator’s ports 0 and 1 at above the expect.

  • Forward on TestPMD’s interfaces 0 and 1 with 1 core.

Verify:
  • The resulting MPPS forwarded is greater than expected_mpps*(1-delta_tolerance).

test_perf_vhost_single_core_virtio11_non_mergeable() → None

Validate expected single core forwarding performance.

Steps:
  • Set TestPMD virtio parameters: ring_format=1.

  • Create a packet according to the frame size specified in the test config.

  • Transmit from the traffic generator’s ports 0 and 1 at above the expect.

  • Forward on TestPMD’s interfaces 0 and 1 with 1 core.

Verify:
  • The resulting MPPS forwarded is greater than expected_mpps*(1-delta_tolerance).

test_perf_vhost_single_core_virtio_inorder_mergeable() → None

Validate expected single core forwarding performance.

Steps:
  • Set TestPMD virtio parameters: buffers=1, in_order=1.

  • Create a packet according to the frame size specified in the test config.

  • Transmit from the traffic generator’s ports 0 and 1 at above the expect.

  • Forward on TestPMD’s interfaces 0 and 1 with 1 core.

Verify:
  • The resulting MPPS forwarded is greater than expected_mpps*(1-delta_tolerance).

test_perf_vhost_single_core_virtio_inorder_nonmergeable() → None

Validate expected single core forwarding performance.

Steps:
  • Set TestPMD virtio parameters: in_order=1.

  • Create a packet according to the frame size specified in the test config.

  • Transmit from the traffic generator’s ports 0 and 1 at above the expect.

  • Forward on TestPMD’s interfaces 0 and 1 with 1 core.

Verify:
  • The resulting MPPS forwarded is greater than expected_mpps*(1-delta_tolerance).

test_perf_vhost_single_core_virtio_mergeable() → None

Validate expected single core forwarding performance.

Steps:
  • Set TestPMD virtio parameters: buffers=1.

  • Create a packet according to the frame size specified in the test config.

  • Transmit from the traffic generator’s ports 0 and 1 at above the expect.

  • Forward on TestPMD’s interfaces 0 and 1 with 1 core.

Verify:
  • The resulting MPPS forwarded is greater than expected_mpps*(1-delta_tolerance).

test_perf_vhost_single_core_virtio_nonmergeable() → None

Validate expected single core forwarding performance.

Steps:
  • Set TestPMD virtio parameters: vectorized=1.

  • Create a packet according to the frame size specified in the test config.

  • Transmit from the traffic generator’s ports 0 and 1 at above the expect.

  • Forward on TestPMD’s interfaces 0 and 1 with 1 core.

Verify:
  • The resulting MPPS forwarded is greater than expected_mpps*(1-delta_tolerance).

test_perf_vhost_single_core_virtio_vectorized() → None

Validate expected single core forwarding performance.

Steps:
  • Set TestPMD virtio parameters: vectorized=1.

  • Create a packet according to the frame size specified in the test config.

  • Transmit from the traffic generator’s ports 0 and 1 at above the expect.

  • Forward on TestPMD’s interfaces 0 and 1 with 1 core.

Verify:
  • The resulting MPPS forwarded is greater than expected_mpps*(1-delta_tolerance).

test_perf_vhost_single_core_virtio11_inorder_mergeable() → None

Validate expected single core forwarding performance.

Steps:
  • Set TestPMD virtio parameters: ring_format=1, buffers=1, in_order=1.

  • Create a packet according to the frame size specified in the test config.

  • Transmit from the traffic generator’s ports 0 and 1 at above the expect.

  • Forward on TestPMD’s interfaces 0 and 1 with 1 core.

Verify:
  • The resulting MPPS forwarded is greater than expected_mpps*(1-delta_tolerance).

test_perf_vhost_single_core_virtio11_inorder_nonmergeable() → None

Validate expected single core forwarding performance.

Steps:
  • Set TestPMD virtio parameters: ring_format=1, in_order=1.

  • Create a packet according to the frame size specified in the test config.

  • Transmit from the traffic generator’s ports 0 and 1 at above the expect.

  • Forward on TestPMD’s interfaces 0 and 1 with 1 core.

Verify:
  • The resulting MPPS forwarded is greater than expected_mpps*(1-delta_tolerance).

test_perf_vhost_single_core_virtio11_vectorized() → None

Validate expected single core forwarding performance.

Steps:
  • Set TestPMD virtio parameters: ring_format=1, in_order=1, vectorized=1.

  • Create a packet according to the frame size specified in the test config.

  • Transmit from the traffic generator’s ports 0 and 1 at above the expect.

  • Forward on TestPMD’s interfaces 0 and 1 with 1 core.

Verify:
  • The resulting MPPS forwarded is greater than expected_mpps*(1-delta_tolerance).

required_capabilities: ClassVar[set[Capability]] = {LinkTopology.TWO_LINKS}

The capabilities the test case or suite requires in order to be executed.

topology_type: ClassVar[TopologyCapability] = LinkTopology.TWO_LINKS

The topology type of the test case or suite.