过去一周,我的服务器上传速度一直很慢。第一次出现这种情况时,重启网络服务可以解决速度慢的问题。之后,速度会在 24 到 72 小时内保持正常,然后再次变慢。今天,当我重启网络服务时,服务器挂了,我不得不手动重启服务器。
我运行的是 CentOS 6.5,带有最新的 OpenVZ 内核,因为该服务器用于托管 vps 服务器。如果我需要提供任何其他信息,请告诉我。我拥有该公司其他配置基本相同的服务器,这是唯一遇到此问题的服务器。该公司保证 100MB/s。当速度变慢时,我尝试从服务器下载测试文件时,速度约为 20 kb/s。
ethtool:
Settings for eth0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 2
Transceiver: internal
Auto-negotiation: on
MDI-X: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
dmesg |grep e1000e
[ 2.204393] e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
[ 2.204395] e1000e: Copyright(c) 1999 - 2013 Intel Corporation.
[ 2.204417] e1000e 0000:00:19.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
[ 2.204422] e1000e 0000:00:19.0: setting latency timer to 64
[ 2.204503] e1000e 0000:00:19.0: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode
[ 2.204531] e1000e 0000:00:19.0: irq 69 for MSI/MSI-X
[ 2.404296] e1000e 0000:00:19.0: eth0: registered PHC clock
[ 2.404299] e1000e 0000:00:19.0: eth0: (PCI Express:2.5GT/s:Width x1) f8:b1:56:b8:96:fe
[ 2.404300] e1000e 0000:00:19.0: eth0: Intel(R) PRO/1000 Network Connection
[ 2.404327] e1000e 0000:00:19.0: eth0: MAC: 10, PHY: 11, PBA No: 5041FF-0FF
[ 3.619389] e1000e 0000:00:19.0: irq 69 for MSI/MSI-X
[ 3.720105] e1000e 0000:00:19.0: irq 69 for MSI/MSI-X
[ 5.249001] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[ 5.249010] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[ 299.993906] e1000e: eth0 NIC Link is Down
[ 301.777634] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[ 301.777639] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[ 301.789655] e1000e: eth0 NIC Link is Down
[ 303.640797] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[ 303.640802] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[ 312.563531] e1000e: eth0 NIC Link is Down
[ 314.248255] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[ 314.248260] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[ 368.737532] e1000e: eth0 NIC Link is Down
[ 370.470445] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[ 370.470449] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[ 370.871902] e1000e: eth0 NIC Link is Down
[ 372.566629] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[ 372.566633] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[ 372.650533] e1000e: eth0 NIC Link is Down
[ 374.402633] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[ 374.402638] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[91265.671501] e1000e 0000:00:19.0: irq 69 for MSI/MSI-X
[91265.772193] e1000e 0000:00:19.0: irq 69 for MSI/MSI-X
[91269.900310] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[91269.900320] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[91298.315872] e1000e: eth0 NIC Link is Down
[91300.049356] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[91300.049373] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[91312.163795] e1000e: eth0 NIC Link is Down
[91313.835394] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[91313.835397] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[91315.412871] e1000e: eth0 NIC Link is Down
[91317.218629] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[91317.218641] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[91449.457109] e1000e 0000:00:19.0: irq 69 for MSI/MSI-X
[91449.557589] e1000e 0000:00:19.0: irq 69 for MSI/MSI-X
[91451.105209] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[91451.105213] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[91451.191593] e1000e: eth0 NIC Link is Down
[91452.905469] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[91452.905475] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
[91454.344927] e1000e: eth0 NIC Link is Down
[91456.040457] e1000e: eth0 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
[91456.040465] e1000e 0000:00:19.0: eth0: 10/100 speed: disabling TSO
网络状态
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 0 11192854 21 0 0 10035615 0 0 0 BMRU
lo 16436 0 1 0 0 0 1 0 0 0 LRU
venet0 1500 0 9972546 0 0 0 10747306 0 1 0 BOPRU
ifconfig eth0
eth0 Link encap:Ethernet HWaddr F8:B1:56:B8:96:FE
inet addr:xxxxxxxxxx Bcast:xxxxxxxxxx Mask:xxxxxxxxxx
inet6 addr: xxxxxxxxxx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11200159 errors:21 dropped:0 overruns:0 frame:11
TX packets:10043059 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6744462142 (6.2 GiB) TX bytes:4788632826 (4.4 GiB)
Interrupt:20 Memory:fbf00000-fbf20000