今天我在我的“ubuntu server 20.04”服务器上安装了 10Gbit/s 网卡。但我没有看到我期望的性能。我安装的网卡是 asus xg-c100c,它是 base-t/RJ45 网卡。
我有一个网络连接,是的,它连接到一个支持 10Gbit/s 的设备(带有 SFP+ 到 RJ45 插头的 Unifi Dream Machine Pro)。
当我运行以下命令时,操作系统似乎也认为存在 10Gbit/s 连接:
~$ sudo lshw -C network
... (some other card are up here)
*-network
description: Ethernet interface
product: AQC107 NBase-T/IEEE 802.3bz Ethernet Controller [AQtion]
vendor: Aquantia Corp.
physical id: 0
bus info: pci@0000:01:00.0
logical name: enp1s0
version: 02
serial: 04:42:1a:3c:78:9b
size: 10Gbit/s
capacity: 10Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pciexpress pm msix msi vpd bus_master cap_list rom ethernet physical tp 100bt-fd 1000bt-fd 10000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=atlantic driverversion=2.4.3.0 duplex=full firmware=3.1.88 ip=10.0.0.111 latency=0 link=yes multicast=yes port=twisted pair speed=10Gbit/s
resources: irq:16 memory:b1440000-b144ffff memory:b1450000-b1450fff memory:b1000000-b13fffff memory:b1400000-b143ffff
和
~$ ethtool enp1s0
Settings for enp1s0:
Supported ports: [ TP ]
Supported link modes: 100baseT/Full
1000baseT/Full
10000baseT/Full
2500baseT/Full
5000baseT/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Supported FEC modes: Not reported
Advertised link modes: 100baseT/Full
1000baseT/Full
10000baseT/Full
2500baseT/Full
5000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 10000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Cannot get wake-on-lan settings: Operation not permitted
Current message level: 0x00000005 (5)
drv link
Link detected: yes
~$ networkctl
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 enp7s0 ether off unmanaged
3 enp1s0 ether routable configured
4 docker0 bridge routable unmanaged
6 veth2b97547 ether degraded unmanaged
7 br-cdecd710286b bridge routable unmanaged
10 vethb068640 ether degraded unmanaged
7 links listed.
我尝试对我的设置进行基准测试:
- 在两台独立的 Windows PC 上使用 Samba 启动复制,均达到约 55MB/s
- 在一台 Windows PC 上使用 samba 启动复制,同时在我的 MacBook 上启动 scp 命令,两者都达到相同的~55MB/s
我正在复制的内容位于三星 M.1 SSD 上。
我做错了什么吗?我需要更改操作系统才能处理 10Gbit/s 吗?
答案1
我找到了无法正常工作的原因,这真是令人伤心。对于那些遇到与我相同问题的人来说,UDM-PRO 有一个 10Gbit/s SFP+ 端口,但从 SFP+ 到 RJ45 端口的总线接口只有 1Gbit/s。以下是图表。