Possible to reach more than 1Gbit to VM?
A message that is not in the archive (sent off-list or not yet received): [email protected]
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