操作系统:Fedora 32 内核版本:5.6.14-300.fc32.x86_64
我有一个板载 NIC,我无法获得 600MB 的总 ISP 速度提供商,几个月前这对我有用:
我做了一个速度测试:
我得到的结果:上下各230左右....
我打电话给 ISP 并发送了技术。在装有 Windows 的笔记本电脑中,他们验证速度为 600mb
我说嗯。我的板载网卡不见了,所以我决定再买一个:
TP-LINK TG-3269 千兆位 PCI 网络适配器并将其添加到 PCI 插槽
同样的结果,我没有得到我想要的结果:
这是一些终端输出:
lspci
02:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8169 PCI Gigabit Ethernet Controller (rev 10)
sudo lspci -v
02:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8169 PCI Gigabit Ethernet Controller (rev 10)
Subsystem: Realtek Semiconductor Co., Ltd. RTL8169/8110 Family PCI Gigabit Ethernet NIC
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 20, NUMA node 0
I/O ports at de00 [size=256]
Memory at fdeff000 (32-bit, non-prefetchable) [size=256]
Expansion ROM at fdf00000 [virtual] [disabled] [size=128K]
Capabilities: [dc] Power Management version 2
Kernel driver in use: r8169
Kernel modules: r8169
sudo mii-tool enp2s6
enp2s6: negotiated 1000baseT-HD flow-control, link ok
sudo mii-tool -v enp2s6
enp2s6: negotiated 1000baseT-HD flow-control, link ok
product info: vendor 00:07:32, model 17 rev 3
basic mode: autonegotiation enabled
basic status: autonegotiation complete, link ok
capabilities: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
advertising: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
link partner: 1000baseT-HD 1000baseT-FD 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD flow-control
ethtool -S enp2s6
NIC statistics:
tx_packets: 678698
rx_packets: 1674292
tx_errors: 0
rx_errors: 0
rx_missed: 1352
align_errors: 0
tx_single_collisions: 0
tx_multi_collisions: 0
unicast: 1673746
broadcast: 546
multicast: 0
tx_aborted: 0
tx_underrun: 0
bat /sys/class/net/enp2s6/speed
1 │ 1000
bat /sys/class/net/enp2s6/duplex
1 │ full
ip add show
2: enp2s6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 60:e3:27:04:42:17 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.155/24 brd 192.168.0.255 scope global dynamic noprefixroute enp2s6
valid_lft 80510sec preferred_lft 80510sec
inet6 fe80::a431:45ad:da43:453/64 scope link noprefixroute
valid_lft forever preferred_lft forever
sudo ethtool enp2s6
Settings for enp2s6:
Port: MII
PHYAD: 0
Transceiver: external
Supports Wake-on: pumbg
Wake-on: d
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
我没有想法了......
- 其余的位在哪里?
- 是我的机器吗?
- 这里发生了什么?
致以问候,并提前致谢...
答案1
cat /sys/class/net/enp2s6/duplex
1 │ full
根据您拥有全双工链路,那么 1000baseT-HD 是显示的问题mii-tool
。
rx_missed: 1352
这似乎解释了您面临的问题,丢失的接收数据包导致重新传输。也许你的系统很慢。您可以尝试启用 rx 中断合并,例如
ethtool -C enp2s6 rx-usecs 200