pvp_multi_paths_vhost_single_core_perf Test Suite

Vhost-user single-core forwarding performance test suite.

This suite measures the packet forwarding performance of DPDK’s vhost-user PMD running on a single CPU core in a Physical-Virtual-Physical (PVP) topology. Performance is evaluated across multiple virtio-user backend options, including packed versus split ring formats, in-order packet processing, mergeable buffers, and SIMD vectorization. Test cases are parameterized using combinations of frame sizes, descriptor ring sizes, and target MPPS baselines specified in the test configuration. High-speed traffic is injected from an external generator through SUT physical interfaces, routed through Vhost and Virtio loops, and returned to the generator to measure aggregate MPPS.

class TestPvpMultiPathsVhostSingleCorePerf

Bases: TestSuite

Pvp multi paths vhost 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.