satokaz / hitorigoto

独り言
2 stars 0 forks source link

Mac mini Late 2012 に Thunderbolt 3 dock と 10GbE アダプタを増設してみる #22

Open satokaz opened 3 years ago

satokaz commented 3 years ago

こんなことするくらいなら、Mac mini 2018 の中古を買った方が良い。Mac mini 2018 の中古を買った方が良い。大事なことなので何度でも

2021 年だけど、Mac min Late 2012 がそれなりに使えてしまうので、もう少しだけ延命させてみる。 (意訳: 買い替えたいが、Mac mini 2018 が思ったほど値段が下がらず、なんか悔しいので)

Thunderboltポート(最大10 Gbps)x 1

Mac mini (Late 2012) - 技術仕様 https://support.apple.com/kb/SP659?locale=ja_JP&viewlocale=ja_JP

ヤベェ、さっきまで、Mac mini Late 2012 は Thunderbolt 2 だと思ってた。

20 の Thunderdock SP/Thunderdock SP IV - Thunderbolt™ 3 4K Display Docking Station を利用して 10GbE アダプタを接続しているの図:

image

Thunderbolt 3 to 10 Gigabit Ethernet RJ45 LAN Adapter

iMac や Mac mini 2018/2020 の 10GbE オプションで搭載されるものと同じ Aquantia AQC107-B0 搭載。

Apple TB3 to TB2 アダプタを利用して TB2 マシンに接続しても、この接続方式では電源の供給がデバイスへできないため利用できない。どうしても利用したい場合は、PD 対応の TB3 Dock などを間に挟む事で Dock のアップストリーム側を TB2 変換してもいける。 そして、クソ熱い!

Mac mini Late 2012 + Thunderdock SP + Thunderbolt 3 to 10 Gigabit Ethernet RJ45 LAN Adapter と X1109A-Z の iperf3 は、7.0Gbps 程度なので、こんなものかという感じなのかな。 MBP16 にした場合は、9.8Gbps 出てるので、単に HW か Thunderbolt の帯域がボトルネックなのかなと:

TCP

kazus@Mac-mini-Late-2012 ~ % iperf3 -c 192.168.222.9 -T `hostname` -V 
Mac-mini-Late-2012.local:  iperf 3.9
Mac-mini-Late-2012.local:  Mac-mini-Late-2012.local:  Darwin Mac-mini-Late-2012.local 19.6.0 Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30 PST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64 x86_64
Control connection MSS 8948
Mac-mini-Late-2012.local:  Time: Fri, 15 Jan 2021 14:21:41 UTC
Mac-mini-Late-2012.local:  Connecting to host 192.168.222.9, port 5201
Mac-mini-Late-2012.local:        Cookie: p5gq4l6pbhc4ifgwmi4vlwrne4zgepwyzsay
Mac-mini-Late-2012.local:        TCP MSS: 8948 (default)
Mac-mini-Late-2012.local:  [  5] local 192.168.222.185 port 50485 connected to 192.168.222.9 port 5201
Mac-mini-Late-2012.local:  Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 seconds, 10 second test, tos 0
Mac-mini-Late-2012.local:  [ ID] Interval           Transfer     Bitrate
Mac-mini-Late-2012.local:  [  5]   0.00-1.00   sec   836 MBytes  7.01 Gbits/sec                  
Mac-mini-Late-2012.local:  [  5]   1.00-2.00   sec   838 MBytes  7.03 Gbits/sec                  
Mac-mini-Late-2012.local:  [  5]   2.00-3.00   sec   831 MBytes  6.97 Gbits/sec                  
Mac-mini-Late-2012.local:  [  5]   3.00-4.00   sec   828 MBytes  6.95 Gbits/sec                  
Mac-mini-Late-2012.local:  [  5]   4.00-5.00   sec   840 MBytes  7.05 Gbits/sec                  
Mac-mini-Late-2012.local:  [  5]   5.00-6.00   sec   836 MBytes  7.02 Gbits/sec                  
Mac-mini-Late-2012.local:  [  5]   6.00-7.00   sec   830 MBytes  6.96 Gbits/sec                  
Mac-mini-Late-2012.local:  [  5]   7.00-8.00   sec   830 MBytes  6.96 Gbits/sec                  
Mac-mini-Late-2012.local:  [  5]   8.00-9.00   sec   832 MBytes  6.98 Gbits/sec                  
Mac-mini-Late-2012.local:  [  5]   9.00-10.00  sec   831 MBytes  6.97 Gbits/sec                  
Mac-mini-Late-2012.local:  - - - - - - - - - - - - - - - - - - - - - - - - -
Mac-mini-Late-2012.local:  Test Complete. Summary Results:
Mac-mini-Late-2012.local:  [ ID] Interval           Transfer     Bitrate
Mac-mini-Late-2012.local:  [  5]   0.00-10.00  sec  8.14 GBytes  6.99 Gbits/sec                  sender
Mac-mini-Late-2012.local:  [  5]   0.00-10.00  sec  8.14 GBytes  6.99 Gbits/sec                  receiver
Mac-mini-Late-2012.local:  CPU Utilization: local/sender 29.5% (5.9%u/23.6%s), remote/receiver 0.9% (0.2%u/0.7%s)
Mac-mini-Late-2012.local:  rcv_tcp_congestion newreno
Mac-mini-Late-2012.local:  
Mac-mini-Late-2012.local:  iperf Done.

UDP:

kazus@Mac-mini-Late-2012 ~ % iperf3 -c 192.168.222.9 -T `hostname` -V -u 
Mac-mini-Late-2012.local:  iperf 3.9
Mac-mini-Late-2012.local:  Mac-mini-Late-2012.local:  Darwin Mac-mini-Late-2012.local 19.6.0 Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30 PST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64 x86_64
Control connection MSS 8948
Setting UDP block size to 8948
Mac-mini-Late-2012.local:  Time: Fri, 15 Jan 2021 14:22:05 UTC
Mac-mini-Late-2012.local:  Connecting to host 192.168.222.9, port 5201
Mac-mini-Late-2012.local:        Cookie: nttehdycecp753waeet2e6pyzvwkez2niqg5
Mac-mini-Late-2012.local:        Target Bitrate: 1048576
Mac-mini-Late-2012.local:  [  5] local 192.168.222.185 port 52006 connected to 192.168.222.9 port 5201
Mac-mini-Late-2012.local:  Starting Test: protocol: UDP, 1 streams, 8948 byte blocks, omitting 0 seconds, 10 second test, tos 0
Mac-mini-Late-2012.local:  [ ID] Interval           Transfer     Bitrate         Total Datagrams
Mac-mini-Late-2012.local:  [  5]   0.00-1.00   sec   131 KBytes  1.07 Mbits/sec  15  
Mac-mini-Late-2012.local:  [  5]   1.00-2.00   sec   131 KBytes  1.07 Mbits/sec  15  
Mac-mini-Late-2012.local:  [  5]   2.00-3.00   sec   122 KBytes  1.00 Mbits/sec  14  
Mac-mini-Late-2012.local:  [  5]   3.00-4.00   sec   131 KBytes  1.07 Mbits/sec  15  
Mac-mini-Late-2012.local:  [  5]   4.00-5.00   sec   131 KBytes  1.07 Mbits/sec  15  
Mac-mini-Late-2012.local:  [  5]   5.00-6.00   sec   122 KBytes  1.00 Mbits/sec  14  
Mac-mini-Late-2012.local:  [  5]   6.00-7.00   sec   131 KBytes  1.07 Mbits/sec  15  
Mac-mini-Late-2012.local:  [  5]   7.00-8.00   sec   131 KBytes  1.07 Mbits/sec  15  
Mac-mini-Late-2012.local:  [  5]   8.00-9.00   sec   122 KBytes  1.00 Mbits/sec  14  
Mac-mini-Late-2012.local:  [  5]   9.00-10.00  sec   131 KBytes  1.07 Mbits/sec  15  
Mac-mini-Late-2012.local:  - - - - - - - - - - - - - - - - - - - - - - - - -
Mac-mini-Late-2012.local:  Test Complete. Summary Results:
Mac-mini-Late-2012.local:  [ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
Mac-mini-Late-2012.local:  [  5]   0.00-10.00  sec  1.25 MBytes  1.05 Mbits/sec  0.000 ms  0/147 (0%)  sender
Mac-mini-Late-2012.local:  [  5]   0.00-10.00  sec  1.25 MBytes  1.05 Mbits/sec  8141107.804 ms  0/147 (0%)  receiver
Mac-mini-Late-2012.local:  CPU Utilization: local/sender 3.8% (0.7%u/3.1%s), remote/receiver 0.0% (0.0%u/0.0%s)
Mac-mini-Late-2012.local:  
Mac-mini-Late-2012.local:  iperf Done.
satokaz commented 3 years ago

ちなみに、Mac mini Late 2012 は、Oracle Solaris 11.4 が動作するので個人的に重宝しているマシン。

なぜか、過去に onnv として公開されていた source code から build した動く binary を作成できた。そして、それをずっと使っている。 Thunderbolt Ethernet も broadcom なので、同じ driver が attach する。 しかし、今は動く binary を build できない...

satokaz commented 3 years ago

Mac mini 2018 では、まぁ、そうだよねって感じで安心した

TCP:

kazus@Kazuyuki-no-Mac-mini-2018 ~ % iperf3 -c 192.168.222.9 -T `hostname` -V 
Kazuyuki-no-Mac-mini-2018.local:  iperf 3.9
Kazuyuki-no-Mac-mini-2018.local:  Kazuyuki-no-Mac-mini-2018.local:  Darwin Kazuyuki-no-Mac-mini-2018.local 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec  2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64 x86_64
Control connection MSS 8948
Kazuyuki-no-Mac-mini-2018.local:  Time: Wed, 27 Jan 2021 05:15:15 UTC
Kazuyuki-no-Mac-mini-2018.local:  Connecting to host 192.168.222.9, port 5201
Kazuyuki-no-Mac-mini-2018.local:        Cookie: w3fii54jni67vvj46jlksapfib27agosqmny
Kazuyuki-no-Mac-mini-2018.local:        TCP MSS: 8948 (default)
Kazuyuki-no-Mac-mini-2018.local:  [  5] local 192.168.222.20 port 49739 connected to 192.168.222.9 port 5201
Kazuyuki-no-Mac-mini-2018.local:  Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 seconds, 10 second test, tos 0
Kazuyuki-no-Mac-mini-2018.local:  [ ID] Interval           Transfer     Bitrate
Kazuyuki-no-Mac-mini-2018.local:  [  5]   0.00-1.00   sec  1.15 GBytes  9.89 Gbits/sec                  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   1.00-2.00   sec  1.15 GBytes  9.89 Gbits/sec                  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   2.00-3.00   sec  1.15 GBytes  9.89 Gbits/sec                  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   3.00-4.00   sec  1.15 GBytes  9.86 Gbits/sec                  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   4.00-5.00   sec  1.15 GBytes  9.87 Gbits/sec                  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   5.00-6.00   sec  1.15 GBytes  9.85 Gbits/sec                  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   6.00-7.00   sec  1.15 GBytes  9.89 Gbits/sec                  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   7.00-8.00   sec  1.15 GBytes  9.89 Gbits/sec                  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   8.00-9.00   sec  1.15 GBytes  9.88 Gbits/sec                  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   9.00-10.00  sec  1.15 GBytes  9.88 Gbits/sec                  
Kazuyuki-no-Mac-mini-2018.local:  - - - - - - - - - - - - - - - - - - - - - - - - -
Kazuyuki-no-Mac-mini-2018.local:  Test Complete. Summary Results:
Kazuyuki-no-Mac-mini-2018.local:  [ ID] Interval           Transfer     Bitrate
Kazuyuki-no-Mac-mini-2018.local:  [  5]   0.00-10.00  sec  11.5 GBytes  9.88 Gbits/sec                  sender
Kazuyuki-no-Mac-mini-2018.local:  [  5]   0.00-10.00  sec  11.5 GBytes  9.88 Gbits/sec                  receiver
Kazuyuki-no-Mac-mini-2018.local:  CPU Utilization: local/sender 37.7% (7.3%u/30.3%s), remote/receiver 25.7% (5.9%u/19.8%s)
Kazuyuki-no-Mac-mini-2018.local:  rcv_tcp_congestion newreno
Kazuyuki-no-Mac-mini-2018.local:  
Kazuyuki-no-Mac-mini-2018.local:  iperf Done.

UDP:

kazus@Kazuyuki-no-Mac-mini-2018 ~ % iperf3 -c 192.168.222.9 -T `hostname` -V -u 
Kazuyuki-no-Mac-mini-2018.local:  iperf 3.9
Kazuyuki-no-Mac-mini-2018.local:  Kazuyuki-no-Mac-mini-2018.local:  Darwin Kazuyuki-no-Mac-mini-2018.local 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec  2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64 x86_64
Control connection MSS 8948
Setting UDP block size to 8948
Kazuyuki-no-Mac-mini-2018.local:  Time: Wed, 27 Jan 2021 05:16:13 UTC
Kazuyuki-no-Mac-mini-2018.local:  Connecting to host 192.168.222.9, port 5201
Kazuyuki-no-Mac-mini-2018.local:        Cookie: rdbus2slyfraabpxonfj52yhvm736s3dwpwr
Kazuyuki-no-Mac-mini-2018.local:        Target Bitrate: 1048576
Kazuyuki-no-Mac-mini-2018.local:  [  5] local 192.168.222.20 port 57754 connected to 192.168.222.9 port 5201
Kazuyuki-no-Mac-mini-2018.local:  Starting Test: protocol: UDP, 1 streams, 8948 byte blocks, omitting 0 seconds, 10 second test, tos 0
Kazuyuki-no-Mac-mini-2018.local:  [ ID] Interval           Transfer     Bitrate         Total Datagrams
Kazuyuki-no-Mac-mini-2018.local:  [  5]   0.00-1.00   sec   131 KBytes  1.07 Mbits/sec  15  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   1.00-2.00   sec   131 KBytes  1.07 Mbits/sec  15  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   2.00-3.00   sec   122 KBytes  1.00 Mbits/sec  14  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   3.00-4.00   sec   131 KBytes  1.07 Mbits/sec  15  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   4.00-5.00   sec   131 KBytes  1.07 Mbits/sec  15  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   5.00-6.00   sec   122 KBytes  1.00 Mbits/sec  14  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   6.00-7.00   sec   131 KBytes  1.07 Mbits/sec  15  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   7.00-8.00   sec   131 KBytes  1.07 Mbits/sec  15  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   8.00-9.00   sec   122 KBytes  1.00 Mbits/sec  14  
Kazuyuki-no-Mac-mini-2018.local:  [  5]   9.00-10.00  sec   131 KBytes  1.07 Mbits/sec  15  
Kazuyuki-no-Mac-mini-2018.local:  - - - - - - - - - - - - - - - - - - - - - - - - -
Kazuyuki-no-Mac-mini-2018.local:  Test Complete. Summary Results:
Kazuyuki-no-Mac-mini-2018.local:  [ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
Kazuyuki-no-Mac-mini-2018.local:  [  5]   0.00-10.00  sec  1.25 MBytes  1.05 Mbits/sec  0.000 ms  0/147 (0%)  sender
Kazuyuki-no-Mac-mini-2018.local:  [  5]   0.00-10.00  sec  1.25 MBytes  1.05 Mbits/sec  8146569.805 ms  0/147 (0%)  receiver
Kazuyuki-no-Mac-mini-2018.local:  CPU Utilization: local/sender 2.9% (0.7%u/2.2%s), remote/receiver 0.0% (0.0%u/0.0%s)
Kazuyuki-no-Mac-mini-2018.local:  
Kazuyuki-no-Mac-mini-2018.local:  iperf Done.
satokaz commented 3 years ago

MacBook Pro 16 + Thunderbolt 3 to 10 Gigabit Ethernet RJ45 LAN Adapter と X1109A-Z の iperf3

TCP:

kazus@MacBook-Pro-16 ~ % iperf3 -c 192.168.222.9 -T `hostname` -V      
MacBook-Pro-16.local:  iperf 3.9
MacBook-Pro-16.local:  MacBook-Pro-16.local:  Darwin MacBook-Pro-16.local 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec  2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64 x86_64
Control connection MSS 8948
MacBook-Pro-16.local:  Time: Sun, 17 Jan 2021 08:01:39 UTC
MacBook-Pro-16.local:  Connecting to host 192.168.222.9, port 5201
MacBook-Pro-16.local:        Cookie: oyvp63em6z37ouevs6ao36pfakdgzl4em6nv
MacBook-Pro-16.local:        TCP MSS: 8948 (default)
MacBook-Pro-16.local:  [  5] local 192.168.222.100 port 55869 connected to 192.168.222.9 port 5201
MacBook-Pro-16.local:  Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 seconds, 10 second test, tos 0
MacBook-Pro-16.local:  [ ID] Interval           Transfer     Bitrate
MacBook-Pro-16.local:  [  5]   0.00-1.00   sec  1.14 GBytes  9.78 Gbits/sec                  
MacBook-Pro-16.local:  [  5]   1.00-2.00   sec  1.14 GBytes  9.79 Gbits/sec                  
MacBook-Pro-16.local:  [  5]   2.00-3.00   sec  1.14 GBytes  9.79 Gbits/sec                  
MacBook-Pro-16.local:  [  5]   3.00-4.00   sec  1.14 GBytes  9.80 Gbits/sec                  
MacBook-Pro-16.local:  [  5]   4.00-5.00   sec  1.15 GBytes  9.86 Gbits/sec                  
MacBook-Pro-16.local:  [  5]   5.00-6.00   sec  1.14 GBytes  9.82 Gbits/sec                  
MacBook-Pro-16.local:  [  5]   6.00-7.00   sec  1.14 GBytes  9.81 Gbits/sec                  
MacBook-Pro-16.local:  [  5]   7.00-8.00   sec  1.14 GBytes  9.80 Gbits/sec                  
MacBook-Pro-16.local:  [  5]   8.00-9.00   sec  1.14 GBytes  9.79 Gbits/sec                  
MacBook-Pro-16.local:  [  5]   9.00-10.00  sec  1.14 GBytes  9.77 Gbits/sec                  
MacBook-Pro-16.local:  - - - - - - - - - - - - - - - - - - - - - - - - -
MacBook-Pro-16.local:  Test Complete. Summary Results:
MacBook-Pro-16.local:  [ ID] Interval           Transfer     Bitrate
MacBook-Pro-16.local:  [  5]   0.00-10.00  sec  11.4 GBytes  9.80 Gbits/sec                  sender
MacBook-Pro-16.local:  [  5]   0.00-10.00  sec  11.4 GBytes  9.80 Gbits/sec                  receiver
MacBook-Pro-16.local:  CPU Utilization: local/sender 37.7% (6.1%u/31.6%s), remote/receiver 30.2% (6.3%u/24.0%s)
MacBook-Pro-16.local:  rcv_tcp_congestion newreno
MacBook-Pro-16.local:  
MacBook-Pro-16.local:  iperf Done.
kazus@MacBook-Pro-16 ~ %

UDP:

kazus@MacBook-Pro-16 ~ % iperf3 -c 192.168.222.9 -T `hostname` -V -u
MacBook-Pro-16.local:  iperf 3.9
MacBook-Pro-16.local:  MacBook-Pro-16.local:  Darwin MacBook-Pro-16.local 20.2.0 Darwin Kernel Version 20.2.0: Wed Dec  2 20:39:59 PST 2020; root:xnu-7195.60.75~1/RELEASE_X86_64 x86_64
Control connection MSS 8948
Setting UDP block size to 8948
MacBook-Pro-16.local:  Time: Sun, 17 Jan 2021 08:02:10 UTC
MacBook-Pro-16.local:  Connecting to host 192.168.222.9, port 5201
MacBook-Pro-16.local:        Cookie: 76tpdh2iy3tdsaoeqd7gk2zvw3j2dzgx2fcb
MacBook-Pro-16.local:        Target Bitrate: 1048576
MacBook-Pro-16.local:  [  5] local 192.168.222.100 port 55654 connected to 192.168.222.9 port 5201
MacBook-Pro-16.local:  Starting Test: protocol: UDP, 1 streams, 8948 byte blocks, omitting 0 seconds, 10 second test, tos 0
MacBook-Pro-16.local:  [ ID] Interval           Transfer     Bitrate         Total Datagrams
MacBook-Pro-16.local:  [  5]   0.00-1.00   sec   131 KBytes  1.07 Mbits/sec  15  
MacBook-Pro-16.local:  [  5]   1.00-2.00   sec   131 KBytes  1.07 Mbits/sec  15  
MacBook-Pro-16.local:  [  5]   2.00-3.00   sec   122 KBytes  1.00 Mbits/sec  14  
MacBook-Pro-16.local:  [  5]   3.00-4.00   sec   131 KBytes  1.07 Mbits/sec  15  
MacBook-Pro-16.local:  [  5]   4.00-5.00   sec   131 KBytes  1.07 Mbits/sec  15  
MacBook-Pro-16.local:  [  5]   5.00-6.00   sec   122 KBytes  1.00 Mbits/sec  14  
MacBook-Pro-16.local:  [  5]   6.00-7.00   sec   131 KBytes  1.07 Mbits/sec  15  
MacBook-Pro-16.local:  [  5]   7.00-8.00   sec   131 KBytes  1.07 Mbits/sec  15  
MacBook-Pro-16.local:  [  5]   8.00-9.00   sec   122 KBytes  1.00 Mbits/sec  14  
MacBook-Pro-16.local:  [  5]   9.00-10.00  sec   131 KBytes  1.07 Mbits/sec  15  
MacBook-Pro-16.local:  - - - - - - - - - - - - - - - - - - - - - - - - -
MacBook-Pro-16.local:  Test Complete. Summary Results:
MacBook-Pro-16.local:  [ ID] Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
MacBook-Pro-16.local:  [  5]   0.00-10.00  sec  1.25 MBytes  1.05 Mbits/sec  0.000 ms  0/147 (0%)  sender
MacBook-Pro-16.local:  [  5]   0.00-10.00  sec  1.25 MBytes  1.05 Mbits/sec  8142295.842 ms  0/147 (0%)  receiver
MacBook-Pro-16.local:  CPU Utilization: local/sender 1.9% (0.4%u/1.5%s), remote/receiver 0.1% (0.0%u/0.0%s)
MacBook-Pro-16.local:  
MacBook-Pro-16.local:  iperf Done.