From mboxrd@z Thu Jan 1 00:00:00 1970 From: TooMeeK Subject: Re: Possible to reach more than 1Gbit to VM? Date: Thu, 21 Jul 2011 15:51:06 +0200 Message-ID: <4E282ECA.9080202@o2.pl> References: <4E282E4C.2040400@o2.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: KVM list Return-path: Received: from moh1-ve3.go2.pl ([193.17.41.134]:37532 "EHLO moh1-ve3.go2.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750802Ab1GUNvK (ORCPT ); Thu, 21 Jul 2011 09:51:10 -0400 Received: from moh1-ve3.go2.pl (unknown [10.0.0.134]) by moh1-ve3.go2.pl (Postfix) with ESMTP id 34D2B9F003B for ; Thu, 21 Jul 2011 15:51:09 +0200 (CEST) Received: from unknown (unknown [10.0.0.74]) by moh1-ve3.go2.pl (Postfix) with SMTP for ; Thu, 21 Jul 2011 15:51:09 +0200 (CEST) In-Reply-To: <4E282E4C.2040400@o2.pl> Sender: kvm-owner@vger.kernel.org List-ID: I still cannot belive this. This is test under bonding (round-robind) and bridging (bond0 -> br0 to expose VM to LAN) From VM Debian with one Virtio NIC to Debian Hypervisor I have (1, 2 and 3 connections at once): user@vhost:~$ iperf -c 10.0.0.250 ------------------------------------------------------------ Client connecting to 10.0.0.250, TCP port 5001 TCP window size: 16.0 KByte (default) ------------------------------------------------------------ [ 3] local 10.0.0.248 port 50679 connected with 10.0.0.250 port 5001 [ ID] Interval Transfer Bandwidth *[ 3] 0.0-10.0 sec 1.65 GBytes 1.42 Gbits/sec* user@vhost:~$ iperf -c 10.0.0.250 -P 2 ------------------------------------------------------------ Client connecting to 10.0.0.250, TCP port 5001 TCP window size: 16.0 KByte (default) ------------------------------------------------------------ [ 4] local 10.0.0.248 port 50681 connected with 10.0.0.250 port 5001 [ 3] local 10.0.0.248 port 50680 connected with 10.0.0.250 port 5001 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.0 sec 831 MBytes 696 Mbits/sec [ 3] 0.0-10.0 sec 828 MBytes 694 Mbits/sec *[SUM] 0.0-10.0 sec 1.62 GBytes 1.39 Gbits/sec* user@vhost:~$ iperf -c 10.0.0.250 -P 3 ------------------------------------------------------------ Client connecting to 10.0.0.250, TCP port 5001 TCP window size: 16.0 KByte (default) ------------------------------------------------------------ [ 5] local 10.0.0.248 port 54269 connected with 10.0.0.250 port 5001 [ 4] local 10.0.0.248 port 54268 connected with 10.0.0.250 port 5001 [ 3] local 10.0.0.248 port 54267 connected with 10.0.0.250 port 5001 [ ID] Interval Transfer Bandwidth [ 5] 0.0-10.0 sec 528 MBytes 443 Mbits/sec [ 4] 0.0-10.0 sec 540 MBytes 453 Mbits/sec [ 3] 0.0-10.0 sec 553 MBytes 464 Mbits/sec *[SUM] 0.0-10.0 sec 1.58 GBytes 1.36 Gbits/sec* And from Hypervisor to that VM I have: user@hypervisor:~$ iperf -c 10.0.0.248 ------------------------------------------------------------ Client connecting to 10.0.0.248, TCP port 5001 TCP window size: 16.0 KByte (default) ------------------------------------------------------------ [ 3] local 10.0.0.250 port 35318 connected with 10.0.0.248 port 5001 [ ID] Interval Transfer Bandwidth *[ 3] 0.0-10.0 sec 2.40 GBytes 2.06 Gbits/sec* user@hypervisor:~$ iperf -c 10.0.0.248 -P 2 ------------------------------------------------------------ Client connecting to 10.0.0.248, TCP port 5001 TCP window size: 16.0 KByte (default) ------------------------------------------------------------ [ 4] local 10.0.0.250 port 35320 connected with 10.0.0.248 port 5001 [ 3] local 10.0.0.250 port 35319 connected with 10.0.0.248 port 5001 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.0 sec 1.09 GBytes 933 Mbits/sec [ 3] 0.0-10.0 sec 1.34 GBytes 1.15 Gbits/sec *[SUM] 0.0-10.0 sec 2.43 GBytes 2.08 Gbits/sec* user@hypervisor:~$ iperf -c 10.0.0.248 -P 3 ------------------------------------------------------------ Client connecting to 10.0.0.248, TCP port 5001 TCP window size: 16.0 KByte (default) ------------------------------------------------------------ [ 3] local 10.0.0.250 port 35323 connected with 10.0.0.248 port 5001 [ 5] local 10.0.0.250 port 35322 connected with 10.0.0.248 port 5001 [ 4] local 10.0.0.250 port 35321 connected with 10.0.0.248 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 827 MBytes 693 Mbits/sec [ 5] 0.0-10.0 sec 841 MBytes 705 Mbits/sec [ 4] 0.0-10.0 sec 823 MBytes 690 Mbits/sec *[SUM] 0.0-10.0 sec 2.43 GBytes 2.09 Gbits/sec* And this is just AMD Phenom II X2 550 @ 3.1 GHz. Xeon's probably can do much more... Where is the trick to get raw 2Gbits/sec from LAN to VM? Maybe direct attach NICs to VM and then bond them? Regards, Tom