Page MenuHomeFreeBSD

benchmarks/iperf: Add patch to fix large values of -P by setting a large listen(2) backlog.
AbandonedPublic

Authored by skozlov on Jul 4 2018, 3:49 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 20 2023, 6:13 AM
Unknown Object (File)
Nov 23 2023, 3:43 PM
Unknown Object (File)
Nov 10 2023, 3:02 AM
Unknown Object (File)
Nov 8 2023, 6:06 PM
Unknown Object (File)
Oct 9 2023, 1:41 AM
Unknown Object (File)
Oct 7 2023, 4:53 PM
Unknown Object (File)
Aug 2 2023, 6:07 PM
Unknown Object (File)
Jul 15 2023, 10:06 PM

Details

Summary

Because, by default, the listening socket backlog is set to a very low value (5) - if one uses big number of parallel connections - many connections can fail. This patch increases the backlog to a biggest possible value.

This is the same fix as made for iperf3 here:
https://github.com/esnet/iperf/pull/693/commits/20fdcbe2fd1440741d2fd641287a4784f26a1c9d

This is a temporary fix, while the upstream patch is being reviewed:
https://sourceforge.net/p/iperf2/tickets/43/

Sponsored by: Intel Corporation

Test Plan

Poudriere log:


Compile tested on:
10.4-RELEASE-p9
11.1-RELEASE-p11
11.2-RELEASE
12.0-CURRENT (1200069)

Diff Detail

Repository
rP FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped