Skip to content

Performance of BMv2 using stress_test_ipv4.py #707

@CaffeineXavier

Description

@CaffeineXavier

Hi everyone,

I follow the instrcution in performance.md, and then i run the BMv2 correctly.

I found something interesting: The Throughput using iperf comes to 5Gbps.

Image

I would like to know why.

And after setting the TCLink to 1000 in stress_test_ipv4.py, the avg throughput comes to 955 Mbps.

Different people may have different settings, but i still wonder that if it is reasonable, because i want to use BMv2 for testing link load balancing.

Since the topic "performance of bmv2" has been a subject of ongoing debate, I'm sharing some initial details for reference.

"Another question: is there a way to quantify how the number of lines or specific operations in P4 code affect forwarding performance? Which features have the most significant impact? If anyone has experience with this, I’d love to hear your insights.

I followed the benchmarking steps from earlier issues by turning off logs and recompiling BMv2 with -O3. For reference, here are my hardware specs, which likely influenced the results: A physical machine equipped with AMD Ryzen 9950X, 32G DDR5 6000, Mellanox ConnectX-5 100GbE NIC, and a Realtek 2.5GbE NIC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions