windows复制群晖共享的文件,在万兆的网络下,一直是260M左右,远达不到万兆的速度,以前使用6.2的时候好像修改一下MTU值到9000就提速了,这次同样设置后却没有效果.
SSH连接群晖后,ifconfig查看网络状态
eth0 Link encap:Ethernet HWaddr 00:0C:29:6A3:E6
UP BROADCAST RUNNING SLAVE MULTICAST MTU:9000 Metric:1
RX packets:18409436 errors:0 dropped:0 overruns:0 frame:0
TX packets:17702049 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:45733304703 (42.5 GiB) TX bytes:77601516059 (72.2 GiB)
lo Link encapocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:356646 errors:0 dropped:0 overruns:0 frame:0
TX packets:356646 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:131244410 (125.1 MiB) TX bytes:131244410 (125.1 MiB)
ovs_eth0 Link encap:Ethernet HWaddr 00:0C:29:6A3:E6
inet addr:192.168.0.123 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe6a:d3e6/64 Scopeink
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4785901 errors:0 dropped:0 overruns:0 frame:0
TX packets:4103298 errors:35 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:44779355268 (41.7 GiB) TX bytes:76672092248 (71.4 GiB)
可以看到eth0已经设置mtu为9000了,但ovs_eth0却是1500
经研究,这个接口是因为安装VMM虚拟机自动创建的open-Vswitch接口,ovs接口代替原网络接口处理数据,所以MTU任然是1500
使用命令修改mtu,修改后无效
ifconfig ovs_eth0 mtu 9000
查看ovs虚拟网桥信息,发现网桥下有好几个设备,好像每个虚拟机都有一个
root@qh:~# ovs-vsctl show
4a997038-c2d7-4753-97ef-932db72a8fe6
Bridge "ovs_eth0"
Port "ovs_eth0"
Interface "ovs_eth0"
type: internal
Port "tap021132295519"
Interface "tap021132295519"
Port "tap02113224cc58"
Interface "tap02113224cc58"
Port "tap021132219aae"
Interface "tap021132219aae"
Port "eth0"
Interface "eth0"
把每个带tap的接口都设置成MTU 9000后,ovs_eth0自动变成了MTU 9000
ifconfig tap021132219aae mtu 9000
再访问共享文件,速度达到800M左右,接近万兆,基本达到目的了.
|
|