Skip to content

Zero copy doesn't work with UDP #1193

Description

@undergroundSimplex

Context

  • Version of iperf3: 3.10.1

  • Hardware: Intel(R) Atom(TM) Processor E3950 @ 1.60GHz

  • Operating system (and distribution, if any): Debian GNU/Linux 9 (stretch)

Bug Report

  • Expected Behavior
    Zero copy should reduce kernel call to copy_user_enhanced_fast_string.

  • Actual Behavior
    When zero copy is enabled during UDP benchmark. The kernel call copy_user_enhanced_fast_string takes up 51% of cpu time when perf record -g -e cpu-clock is used to benchmark.
    However, when TCP is used, cpu time of copy_user_enhanced_fast_string is significantly reduced as expected.

  • Steps to Reproduce
    iperf3 -s
    sudo perf record -g -e cpu-clock iperf3 -c 127.0.0.1 -Z -u -b 30g -l 64000
    sudo perf report --call-graph --no-children

  • Possible Solution

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