1
1

Add text about how to avoid building profiled binaries.

Also fix some RST formatting and add some text on FreeBSD TCP
congestion control algorithms.

Fixes #410.
Этот коммит содержится в:
Bruce A. Mah 2018-04-27 12:55:26 -07:00
родитель 2c2dfb01fe
Коммит efce01e1b5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4984910A8CAAEE8A

Просмотреть файл

@ -70,6 +70,40 @@ How can I build a statically-linked executable of iperf3?
It appears that for FreeBSD (tested on FreeBSD 11.1-RELEASE), only It appears that for FreeBSD (tested on FreeBSD 11.1-RELEASE), only
the last two steps are needed to produce a static executable. the last two steps are needed to produce a static executable.
How can I build on a system that doesn't support profiled executables?
This problem has been noted by users attempting to build iperf3 for
Android systems. There are three workarounds. In order from least
effort to most effort:
#. At the time the linking of the iperf3 profiled executable fails,
the "normal" iperf3 executable is probably already created. So if
you are willing to accept the error exit from the make process
(and a little bit of wasted work on the build host), you might
not need to do anything.
#. After the configure step, there will be a definition in
``src/Makefile`` that looks like this::
noinst_PROGRAMS = t_timer$(EXEEXT) t_units$(EXEEXT) t_uuid$(EXEEXT) \
iperf3_profile$(EXEEXT)
If you edit it to look like this, it will disable the build of the profiled iperf3::
noinst_PROGRAMS = t_timer$(EXEEXT) t_units$(EXEEXT) t_uuid$(EXEEXT)
#. Similar to item 2 above, but more permanent...if you edit
``src/Makefile.am`` and change the line reading like this::
noinst_PROGRAMS = t_timer t_units t_uuid iperf3_profile
To look like this::
noinst_PROGRAMS = t_timer t_units t_uuid
And then run ``./bootstrap.sh``, that will regenerate the project
Makefiles to make the exclusion of the profiled iperf3 executable
permanant (within that source tree).
I'm seeing quite a bit of unexpected UDP loss. Why? I'm seeing quite a bit of unexpected UDP loss. Why?
First, confirm you are using iperf 3.1.5 or higher. There was an First, confirm you are using iperf 3.1.5 or higher. There was an
issue with the default UDP send size that was fixed in issue with the default UDP send size that was fixed in
@ -86,6 +120,10 @@ What congestion control algorithms are supported?
/sbin/sysctl net.ipv4.tcp_available_congestion_control /sbin/sysctl net.ipv4.tcp_available_congestion_control
On FreeBSD, the equivalent command is::
/sbin/sysctl net.inet.tcp.cc.available
Im using the ``--logfile`` option. How do I see file output in real time? Im using the ``--logfile`` option. How do I see file output in real time?
Use the ``--forceflush`` flag. Use the ``--forceflush`` flag.