intel x520 网卡收发速度不一致,帮分析分析 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
lifavor
V2EX    路由器

intel x520 网卡收发速度不一致,帮分析分析

  •  
  •   lifavor 2023-03-25 19:35:17 +08:00 2158 次点击
    这是一个创建于 1003 天前的主题,其中的信息可能已经有所发展或是发生改变。

    基本信息:

    状态 1

    PC: TL-NT521 aqc107 电口 RJ45 超六线

    NAS: TL-NT521F aqc107 光口,dac 铜缆

    交换机:QSW-M2108R-2C 威联通

    主板插槽:pcie 3.0*4 (x16 插槽,b660m 迫击炮第三槽)

    PC 与 NAS 使用 iperf3 测速一切正常

    状 2 只换 NAS 网卡

    NAS: intel x520 光口,dac 铜缆,读 10G, 写 3G 左右

    NAS: intel x520 光口,双 LC intel 兼容光模块,读 10G, 写 3G 左右

    PS:之前咸鱼买了张 x520 以为有问题,退了,现在又从淘宝买了个拆机卡,还是这样

    怀疑点:交换机有问题,光模块有问题,unraid 系统与 x520 兼容性,各位老铁分析分析

    E:\iperf-3.1.3-win64>iperf3.exe -c 192.168.50.113 -R Connecting to host 192.168.50.113, port 5201 Reverse mode, remote host 192.168.50.113 is sending [ 4] local 192.168.50.242 port 9307 connected to 192.168.50.113 port 5201 [ ID] Interval Transfer Bandwidth [ 4] 0.00-1.00 sec 1.02 GBytes 8.76 Gbits/sec [ 4] 1.00-2.00 sec 1.02 GBytes 8.80 Gbits/sec [ 4] 2.00-3.00 sec 1.02 GBytes 8.77 Gbits/sec [ 4] 3.00-4.00 sec 1.03 GBytes 8.89 Gbits/sec [ 4] 4.00-5.00 sec 1.01 GBytes 8.71 Gbits/sec [ 4] 5.00-6.00 sec 1.01 GBytes 8.66 Gbits/sec [ 4] 6.00-7.00 sec 1.02 GBytes 8.79 Gbits/sec [ 4] 7.00-8.00 sec 1.04 GBytes 8.89 Gbits/sec [ 4] 8.00-9.00 sec 1.01 GBytes 8.68 Gbits/sec [ 4] 9.00-10.00 sec 1.02 GBytes 8.74 Gbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth Retr [ 4] 0.00-10.00 sec 10.2 GBytes 8.77 Gbits/sec 3 sender [ 4] 0.00-10.00 sec 10.2 GBytes 8.77 Gbits/sec receiver iperf Done. E:\iperf-3.1.3-win64>iperf3.exe -c 192.168.50.113 Connecting to host 192.168.50.113, port 5201 [ 4] local 192.168.50.242 port 9311 connected to 192.168.50.113 port 5201 [ ID] Interval Transfer Bandwidth [ 4] 0.00-1.00 sec 384 MBytes 3.22 Gbits/sec [ 4] 1.00-2.01 sec 340 MBytes 2.81 Gbits/sec [ 4] 2.01-3.00 sec 346 MBytes 2.94 Gbits/sec [ 4] 3.00-4.00 sec 322 MBytes 2.70 Gbits/sec [ 4] 4.00-5.00 sec 378 MBytes 3.17 Gbits/sec [ 4] 5.00-6.00 sec 302 MBytes 2.53 Gbits/sec [ 4] 6.00-7.00 sec 441 MBytes 3.70 Gbits/sec [ 4] 7.00-8.00 sec 493 MBytes 4.14 Gbits/sec [ 4] 8.00-9.00 sec 352 MBytes 2.95 Gbits/sec [ 4] 9.00-10.00 sec 348 MBytes 2.92 Gbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth [ 4] 0.00-10.00 sec 3.62 GBytes 3.11 Gbits/sec sender [ 4] 0.00-10.00 sec 3.62 GBytes 3.11 Gbits/sec receiver 
    6 条回复    2023-03-26 21:07:27 +08:00
    bobryjosin
        1
    bobryjosin  
       2023-03-25 19:54:41 +08:00 via Android
    我的情况差不多,用 dac 直连 iperf3 多线程测速有时候单向能到满速,上传只能到 3-4Gbps 左右,有时候双向都是 5.9Gbps ,esxi 和 pve 下或者裸装 Ubuntu 都这样卡插到 x16 的槽位上也一样,感觉就是 x520 的问题
    lifavor
        2
    lifavor  
    OP
       2023-03-25 20:26:16 +08:00
    @bobryjosin 试了一下,多线程写能打满到 9.25 Gb (算 10 吧),这样来看还是这张卡的策略问题。6.18 弄张 x710 玩玩

    ```
    E:\iperf-3.1.3-win64>iperf3.exe -c 192.168.50.113 -P 5 -t 2
    Connecting to host 192.168.50.113, port 5201
    [ 4] local 192.168.50.242 port 11656 connected to 192.168.50.113 port 5201
    [ 6] local 192.168.50.242 port 11657 connected to 192.168.50.113 port 5201
    [ 8] local 192.168.50.242 port 11658 connected to 192.168.50.113 port 5201
    [ 10] local 192.168.50.242 port 11659 connected to 192.168.50.113 port 5201
    [ 12] local 192.168.50.242 port 11660 connected to 192.168.50.113 port 5201
    [ ID] Interval Transfer Bandwidth
    [ 4] 0.00-1.00 sec 209 MBytes 1.75 Gbits/sec
    [ 6] 0.00-1.00 sec 220 MBytes 1.84 Gbits/sec
    [ 8] 0.00-1.00 sec 225 MBytes 1.89 Gbits/sec
    [ 10] 0.00-1.00 sec 233 MBytes 1.95 Gbits/sec
    [ 12] 0.00-1.00 sec 225 MBytes 1.89 Gbits/sec
    [SUM] 0.00-1.00 sec 1.08 GBytes 9.32 Gbits/sec
    - - - - - - - - - - - - - - - - - - - - - - - - -
    [ 4] 1.00-2.00 sec 248 MBytes 2.08 Gbits/sec
    [ 6] 1.00-2.00 sec 247 MBytes 2.07 Gbits/sec
    [ 8] 1.00-2.00 sec 209 MBytes 1.76 Gbits/sec
    [ 10] 1.00-2.00 sec 187 MBytes 1.57 Gbits/sec
    [ 12] 1.00-2.00 sec 204 MBytes 1.71 Gbits/sec
    [SUM] 1.00-2.00 sec 1.07 GBytes 9.19 Gbits/sec
    - - - - - - - - - - - - - - - - - - - - - - - - -
    [ ID] Interval Transfer Bandwidth
    [ 4] 0.00-2.00 sec 457 MBytes 1.92 Gbits/sec sender
    [ 4] 0.00-2.00 sec 457 MBytes 1.92 Gbits/sec receiver
    [ 6] 0.00-2.00 sec 467 MBytes 1.96 Gbits/sec sender
    [ 6] 0.00-2.00 sec 467 MBytes 1.96 Gbits/sec receiver
    [ 8] 0.00-2.00 sec 434 MBytes 1.82 Gbits/sec sender
    [ 8] 0.00-2.00 sec 434 MBytes 1.82 Gbits/sec receiver
    [ 10] 0.00-2.00 sec 420 MBytes 1.76 Gbits/sec sender
    [ 10] 0.00-2.00 sec 419 MBytes 1.76 Gbits/sec receiver
    [ 12] 0.00-2.00 sec 429 MBytes 1.80 Gbits/sec sender
    [ 12] 0.00-2.00 sec 429 MBytes 1.80 Gbits/sec receiver
    [SUM] 0.00-2.00 sec 2.15 GBytes 9.25 Gbits/sec sender
    [SUM] 0.00-2.00 sec 2.15 GBytes 9.25 Gbits/sec receiver

    iperf Done.
    ```
    teky
        3
    teky  
       2023-03-26 12:29:53 +08:00 via iPhone
    aqc107 有兼容性问题,大坑,只有跟 aqc 之间才能跑满,两端都是 intel 或其他厂家没事
    lifavor
        4
    lifavor  
    OP
       2023-03-26 18:53:53 +08:00
    @fastcache 我这中间加的有交换机。你单线程就能跑满?
    teky
        5
    teky  
       2023-03-26 20:42:23 +08:00
    # aqc107 - switch - aqc107 ,intel - switch - intel , SMB copy 大文件,能跑满。
    # 一年多前的项目,客户买了几百块 aqc107 给 win10 用,反复测试 aqc107 在 win 下有问题,升级固件,换 n 个版本的驱动,都没用,服务器都不是 aqc ,后来跟网卡厂家协商加钱换了 intel 。
    # apple mac ,synology 都用过 aqc107 ,darwin/linux 好像没问题,新的芯片升级为 aqc113 ,没用过...
    lifavor
        6
    lifavor  
    OP
       2023-03-26 21:07:27 +08:00
    @fastcache

    微软和 intel 穿一条裤子,兼容性在 win 上确实更好一些。我目前用 aqc 107 就一个问题,打游戏丢包,本来很开心的换了万兆,smb 对拷 10 几 G 大文件都是 1.0+ GB/S ,没有出过问题。我过年(天冷,应该不是发热问题)特地用吃鸡游戏测试,每隔半小时必掉线一次,不知道咋回事,游戏的话可能 udp 包多,我发现现在的 8125BG 也丢包,一会就要连接一次,就板载的 221 这种 1g 的不丢包,诡异。过几天我用 iperf3 udp 再试一次

    x520 我在 2 楼多线程能打满,感觉还是网卡设置的策略问题。晚上翻 b 站又看的一条视频,说时 [中断节流] 的概念,x520 老卡,pcie 也是 2.0*8 的,大概估计是为了降低服务器 cpu 压力。

    [ref] 中断节流,b 站视频在第 27 秒
    https://www.intel.cn/content/www/cn/zh/support/articles/000005593/ethernet-products.html
    https://www.bilibili.com/video/BV12v411T7fW/?spm_id_from=333.337.search-card.all.click&vd_source=034e0c0cb9efcd3f60845338ac926d59
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     4256 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 26ms UTC 01:01 PVG 09:01 LAX 17:01 JFK 20:01
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86