KVM 客户机上的网络性能不佳

KVM 客户机上的网络性能不佳

我有一台专用服务器连接到 1000 Mbit 端口。但是,Debian 客户机的速度只有一半到四分之一:

在节点本身上(Linux 节点 2.6.32-279.9.1.el6.x86_64 #1 SMP Tue Sep 25 21:43:11 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux):

wget http://www.bbned.nl/scripts/speedtest/download/file1000mb.bin -O /dev/null
--2012-11-11 23:10:11--  http://www.bbned.nl/scripts/speedtest/download/file1000mb.bin
Resolving www.bbned.nl... 62.177.144.181
Connecting to www.bbned.nl|62.177.144.181|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1048576000 (1000M) [application/octet-stream]
Saving to: â/dev/nullâ

100%[====================================>] 1,048,576,000  100M/s   in 10s

2012-11-11 23:10:21 (100 MB/s) - â/dev/nullâ

在客户机上(Debian 6.0.5,x64:Linux debian 2.6.32-5-amd64 #1 SMP Sun Sep 23 10:07:46 UTC 2012 x86_64 GNU/Linux):

wget http://www.bbned.nl/scripts/speedtest/download/file1000mb.bin -O /dev/null
--2012-11-11 23:10:41--  http://www.bbned.nl/scripts/speedtest/download/file1000mb.bin
Resolving www.bbned.nl... 62.177.144.181
Connecting to www.bbned.nl|62.177.144.181|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1048576000 (1000M) [application/octet-stream]
Saving to: â/dev/nullâ

100%[=================================================================================================================================================================================================>] 1,048,576,000 16.5M/s   in 42s

2012-11-11 23:11:23 (23.8 MB/s) - â/dev/nullâ

我用虚拟NIC。我尝试了其他一些 NIC:e1000 和 Realtek 8139,但它们的结果更糟糕。

有人知道如何提高这些速度吗?

答案1

已修复:

service iptables stop
echo > /etc/sysconfig/iptables
service iptables start

似乎有一些 mangle iptable 规则。

相关内容