Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iperf3 Windows带宽比linux慢得多_Linux_Windows_Performance_Bandwidth_Iperf3 - Fatal编程技术网

iperf3 Windows带宽比linux慢得多

iperf3 Windows带宽比linux慢得多,linux,windows,performance,bandwidth,iperf3,Linux,Windows,Performance,Bandwidth,Iperf3,我遇到了一个非常奇怪的问题。 我有两台服务器,一台运行redhat Linux server 7 64位,另一台运行Windows server 2012 64位。两个服务器硬件规格完全相同: Xeon 2.6Ghz CPU x 2, total 32 logical core 96GB ddr4 memory 1Gb dual port network card 2TB hard disk, the RAID configuration is also same. 当我在两台机器上运行ipe

我遇到了一个非常奇怪的问题。 我有两台服务器,一台运行redhat Linux server 7 64位,另一台运行Windows server 2012 64位。两个服务器硬件规格完全相同:

Xeon 2.6Ghz CPU x 2, total 32 logical core
96GB ddr4 memory
1Gb dual port network card
2TB hard disk, the RAID configuration is also same.
当我在两台机器上运行iperf3时,结果非常不同。 在Linux上,结果是:**

$iperf3 -s

$iperf3 -c localhost
Connecting to host localhost, port 5201
[  4] local ::1 port 46996 connected to ::1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  4.29 GBytes  36.9 Gbits/sec    0    703 KBytes
[  4]   1.00-2.00   sec  4.75 GBytes  40.8 Gbits/sec    0    703 KBytes
[  4]   2.00-3.00   sec  4.66 GBytes  40.0 Gbits/sec    0    767 KBytes
[  4]   3.00-4.00   sec  4.67 GBytes  40.1 Gbits/sec    0    767 KBytes
[  4]   4.00-5.00   sec  4.49 GBytes  38.6 Gbits/sec    0   1.37 MBytes
[  4]   5.00-6.00   sec  4.57 GBytes  39.3 Gbits/sec    0   1.37 MBytes
[  4]   6.00-7.00   sec  4.54 GBytes  39.0 Gbits/sec    0   1.37 MBytes
[  4]   7.00-8.00   sec  4.68 GBytes  40.2 Gbits/sec    0   1.37 MBytes
[  4]   8.00-9.00   sec  4.75 GBytes  40.8 Gbits/sec    0   1.37 MBytes
[  4]   9.00-10.00  sec  4.60 GBytes  39.6 Gbits/sec    0   1.37 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  46.0 GBytes  39.5 Gbits/sec    0             sender
[  4]   0.00-10.00  sec  46.0 GBytes  39.5 Gbits/sec                  receiver
iperf3.exe -s

iperf3.exe -c localhost
Connecting to host localhost, port 5201
[  4] local ::1 port 11042 connected to ::1 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   477 MBytes  4.00 Gbits/sec
[  4]   1.00-2.00   sec   486 MBytes  4.08 Gbits/sec
[  4]   2.00-3.00   sec   555 MBytes  4.66 Gbits/sec
[  4]   3.00-4.00   sec   569 MBytes  4.77 Gbits/sec
[  4]   4.00-5.00   sec   571 MBytes  4.79 Gbits/sec
[  4]   5.00-6.00   sec   584 MBytes  4.90 Gbits/sec
[  4]   6.00-7.00   sec   590 MBytes  4.95 Gbits/sec
[  4]   7.00-8.00   sec   590 MBytes  4.95 Gbits/sec
[  4]   8.00-9.00   sec   599 MBytes  5.03 Gbits/sec
[  4]   9.00-10.00  sec   598 MBytes  5.01 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  5.49 GBytes  4.71 Gbits/sec                  sender
[  4]   0.00-10.00  sec  5.49 GBytes  4.71 Gbits/sec                  receiver

iperf Done.
在Windows上,结果是:**

$iperf3 -s

$iperf3 -c localhost
Connecting to host localhost, port 5201
[  4] local ::1 port 46996 connected to ::1 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  4.29 GBytes  36.9 Gbits/sec    0    703 KBytes
[  4]   1.00-2.00   sec  4.75 GBytes  40.8 Gbits/sec    0    703 KBytes
[  4]   2.00-3.00   sec  4.66 GBytes  40.0 Gbits/sec    0    767 KBytes
[  4]   3.00-4.00   sec  4.67 GBytes  40.1 Gbits/sec    0    767 KBytes
[  4]   4.00-5.00   sec  4.49 GBytes  38.6 Gbits/sec    0   1.37 MBytes
[  4]   5.00-6.00   sec  4.57 GBytes  39.3 Gbits/sec    0   1.37 MBytes
[  4]   6.00-7.00   sec  4.54 GBytes  39.0 Gbits/sec    0   1.37 MBytes
[  4]   7.00-8.00   sec  4.68 GBytes  40.2 Gbits/sec    0   1.37 MBytes
[  4]   8.00-9.00   sec  4.75 GBytes  40.8 Gbits/sec    0   1.37 MBytes
[  4]   9.00-10.00  sec  4.60 GBytes  39.6 Gbits/sec    0   1.37 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  46.0 GBytes  39.5 Gbits/sec    0             sender
[  4]   0.00-10.00  sec  46.0 GBytes  39.5 Gbits/sec                  receiver
iperf3.exe -s

iperf3.exe -c localhost
Connecting to host localhost, port 5201
[  4] local ::1 port 11042 connected to ::1 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   477 MBytes  4.00 Gbits/sec
[  4]   1.00-2.00   sec   486 MBytes  4.08 Gbits/sec
[  4]   2.00-3.00   sec   555 MBytes  4.66 Gbits/sec
[  4]   3.00-4.00   sec   569 MBytes  4.77 Gbits/sec
[  4]   4.00-5.00   sec   571 MBytes  4.79 Gbits/sec
[  4]   5.00-6.00   sec   584 MBytes  4.90 Gbits/sec
[  4]   6.00-7.00   sec   590 MBytes  4.95 Gbits/sec
[  4]   7.00-8.00   sec   590 MBytes  4.95 Gbits/sec
[  4]   8.00-9.00   sec   599 MBytes  5.03 Gbits/sec
[  4]   9.00-10.00  sec   598 MBytes  5.01 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  5.49 GBytes  4.71 Gbits/sec                  sender
[  4]   0.00-10.00  sec  5.49 GBytes  4.71 Gbits/sec                  receiver

iperf Done.
为什么Windows这么慢?有人有同样的问题吗?
如何提高Windows带宽性能

这种行为对我的项目影响极大,使用相同的套接字代码,Windows的吞吐量只有Linux的1/3


非常感谢。

请尝试将TCP窗口大小8.00 KB(默认值)增加到至少64k。见下文:


希望有帮助。

这与编程无关。也许你应该在超级用户社区问这个问题。你试过用Linux引导Windows机器吗?可能存在硬件差异,尽管不应该存在。Linux和Windows在每台服务器上运行,测试在本地主机上运行,Linux和Windows未连接。我正在使用TCP套接字进行IPC,我看到的是完全相同的事情,数字与您的相似。我希望社区更支持这个问题,因为它与系统架构设计有关——在Linux上运行良好的设计可能无法在Windows上运行,因为TCP带宽限制。我已经尝试在Windows注册表中增加TCP窗口大小,但重新启动后,结果仍然相同。TCP窗口大小是否会影响本地主机测试?如果它没有解决您的问题,为什么您会接受这个答案?