同一 USB 千兆网卡,为何在 OSX 下速度只能发挥 70%?

2018-03-11 22:42:46 +08:00
 zer
Bus 001 Device 004: ID 0bda:8153 Realtek Semiconductor Corp. USB 10/100/1000 LAN  Serial: 001000001

通过 iPerf 测速的结果只有 650~700Mbps,但在另外一台 Win 主机上可以达到 950Mbps 以上,基本达到了千兆的速度。 我尝试排除程序干扰,卸载了 Little Snitch、关闭其他应用,重置 PRAM 后,速度依旧如此。 求解

iperf -u -c 10.0.0.101 -b 1000M -t 10 -i 1
------------------------------------------------------------
Client connecting to 10.0.0.101, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 9.00 KByte (default)
------------------------------------------------------------
[  4] local 10.0.0.24 port 58162 connected with 10.0.0.101 port 5001
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0- 1.0 sec  79.3 MBytes   665 Mbits/sec
[  4]  1.0- 2.0 sec  79.2 MBytes   664 Mbits/sec
[  4]  2.0- 3.0 sec  78.3 MBytes   657 Mbits/sec
[  4]  3.0- 4.0 sec  78.1 MBytes   655 Mbits/sec
[  4]  4.0- 5.0 sec  78.0 MBytes   654 Mbits/sec
[  4]  5.0- 6.0 sec  78.4 MBytes   657 Mbits/sec
[  4]  6.0- 7.0 sec  78.0 MBytes   654 Mbits/sec
[  4]  7.0- 8.0 sec  78.0 MBytes   655 Mbits/sec
[  4]  8.0- 9.0 sec  78.3 MBytes   657 Mbits/sec
[  4]  9.0-10.0 sec  78.3 MBytes   657 Mbits/sec
[  4]  0.0-10.0 sec   784 MBytes   658 Mbits/sec
[  4] Sent 559112 datagrams
[  4] Server Report:
[  4]  0.0-10.0 sec   782 MBytes   656 Mbits/sec   0.196 ms  952/559111 (0.17%)
[  4]  0.0-10.0 sec  1 datagrams received out-of-order
6757 次点击
所在节点    macOS
21 条回复
ptyfork
2018-03-25 08:55:59 +08:00
@zer 上面都告诉你了,是 iperf 的在 mac 上实现有问题,跟硬件没有一毛钱关系,loopback 都达不到速度。换 iperf3。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/437071

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX