iperfで速度を測っておく

自宅鯖とMacStudio間で計測。MacStudio -> TP-Link TL-SX105 -> QNAP QSW-1208-8C -> 自宅鯖

サーバ側パラメータ及びethtool設定値

net.core.default_qdisc = fq
net.core.netdev_max_backlog = 16384
net.core.optmem_max = 65536
net.core.rmem_default = 8388608
net.core.rmem_max = 134217728
net.core.somaxconn = 4096
net.core.wmem_default = 8388608
net.core.wmem_max = 134217728
net.ipv4.tcp_congestion_control = bbr
net.ipv4.tcp_fastopen = 3
net.ipv4.tcp_fin_timeout = 15
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.tcp_mtu_probing = 1
net.ipv4.tcp_notsent_lowat = 131072
net.ipv4.tcp_rmem = 4096 1048576 67108864
net.ipv4.tcp_slow_start_after_idle = 0
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_wmem = 4096 1048576 67108864
net.netfilter.nf_conntrack_max = 524288
net.netfilter.nf_conntrack_tcp_timeout_established = 86400

ethtool -G enp2s0 rx 4096
ethtool -G enp2s0 tx 4096
ethtool -C enp2s0 rx-usecs 64
ethtool -C enp2s0 tx-usecs 256
rx-checksumming on
tx-checksumming on
scatter-gather on
tcp-segmentation-offload on
generic-segmentation-offload on
generic-receive-offload on
large-receive-offload off
rx-vlan-offload on
tx-vlan-offload on
ntuple-filters on
receive-hashing on

サーバ側実行

firewall-cmd --add-port=5201/tcp
firewall-cmd --add-port=5201/udp
iperf3 -s

MacStudio側実行

カーネルパラメータ等はデフォルト。

iperf3 -c 192.168.1.4
Connecting to host 192.168.1.4, port 5201
[  5] local 192.168.1.35 port 58078 connected to 192.168.1.4 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.01   sec  1.10 GBytes  9.42 Gbits/sec    0   7.90 MBytes
[  5]   1.01-2.00   sec  1.09 GBytes  9.41 Gbits/sec    0   7.90 MBytes
[  5]   2.00-3.00   sec  1.09 GBytes  9.41 Gbits/sec    0   7.90 MBytes
[  5]   3.00-4.01   sec  1.10 GBytes  9.41 Gbits/sec    0   7.99 MBytes
[  5]   4.01-5.00   sec  1.09 GBytes  9.41 Gbits/sec    0   8.04 MBytes
[  5]   5.00-6.00   sec  1.10 GBytes  9.41 Gbits/sec  1037   2.89 MBytes
[  5]   6.00-7.01   sec  1.10 GBytes  9.42 Gbits/sec    0   3.16 MBytes
[  5]   7.01-8.00   sec  1.09 GBytes  9.41 Gbits/sec    0   3.48 MBytes
[  5]   8.00-9.01   sec  1.10 GBytes  9.41 Gbits/sec    0   3.90 MBytes
[  5]   9.01-10.01  sec  1.10 GBytes  9.41 Gbits/sec    0   4.28 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.01  sec  11.0 GBytes  9.41 Gbits/sec  1037            sender
[  5]   0.00-10.01  sec  11.0 GBytes  9.41 Gbits/sec                  receiver

iperf Done.

結論

9.41Gbpsだった。