Skip to contentSkip to conversation

virtual machines network goes 100Mbit when interface is Gbit

DISCUSSION Miguel Araujo 4 participants 7 messages Mar 14, 2008 – Apr 11, 2008 KVM

lore
Share & tools
lore
#0 lore raw

Hello all,

I'm testing the last kvm version, 62. I was doing an iperf benchmark to test the network performance in a Feisty virtual machine and I got values surround 100Mbits when my card is actually 1Gbit. The testing environment is conformed by 2 machines, both with Gbit interfaces. The vm in kvm is running in server mode, the other (not virtualized one) is the client. The vm interface is going to a bridge called br0. Ethtool says the interface is running 100Mbits but it doesn't let me change the speed or any other parameter in the vm.

I can't either change tap0 parameters in kvm host. ¿Is anyone having the same issue?¿am I forgetting something?

Thanks for your time in advanced,
Miguel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#1 lore raw

What emulated nic are you using? I think only the e1000 emulated nic supports 1 GB.

Quoted 17 lines · Miguel Araujo

Hello all,

I'm testing the last kvm version, 62. I was doing an iperf benchmark to test the network performance in a Feisty virtual machine and I got values surround 100Mbits when my card is actually 1Gbit. The testing environment is conformed by 2 machines, both with Gbit interfaces. The vm in kvm is running in server mode, the other (not virtualized one) is the client. The vm interface is going to a bridge called br0. Ethtool says the interface is running 100Mbits but it doesn't let me change the speed or any other parameter in the vm.

I can't either change tap0 parameters in kvm host. ¿Is anyone having the same issue?¿am I forgetting something?

Thanks for your time in advanced,
Miguel

Quoted 9 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

#2 lore raw

Hello,
I'm not sure if I understand you. Do you mean that the physical
network cards should be e1000 or that the virtual machines must somehow emulate e1000 network cards?

As I understand Miguel's post, he is finding an issue with the
bridge's speed (two virtual machines running on the same physical machine are limited to 100 Mbps between themselves).

Best regards,
Víctor

Quoted 44 lines · Haydn Solomon

What emulated nic are you using? I think only the e1000 emulated nic supports 1 GB.

Quoted 17 lines · Miguel Araujo

Hello all,

I'm testing the last kvm version, 62. I was doing an iperf benchmark to test the network performance in a Feisty virtual machine and I got values surround 100Mbits when my card is actually 1Gbit. The testing environment is conformed by 2 machines, both with Gbit interfaces. The vm in kvm is running in server mode, the other (not virtualized one) is the client. The vm interface is going to a bridge called br0. Ethtool says the interface is running 100Mbits but it doesn't let me change the speed or any other parameter in the vm.

I can't either change tap0 parameters in kvm host. ¿Is anyone having the same issue?¿am I forgetting something?

Thanks for your time in advanced,
Miguel

Quoted 10 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Signature · 17 lines
Víctor Abeytua García

-----------
Socio Consultor
Nosys AJjV S.L.
Networked Open SYStems
Tecnologías de la Información - Seguridad

C/ Isla Graciosa 2, Loft 18
28700 San Sebastián de los Reyes
Madrid (Spain)

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
#3 lore raw

Hello all,

Thanks for your answer Haydn, but I did not understand the issue too. Victor has explained my problem clearly, is kvm uncapable of running the bridge at 1GBit if it is not a e1000 network card?

Thanks a lot in advanced,
Miguel

Quoted 9 lines

Hello,
I'm not sure if I understand you. Do you mean that the physical
network cards should be e1000 or that the virtual machines must somehow emulate e1000 network cards?

As I understand Miguel's post, he is finding an issue with the
bridge's speed (two virtual machines running on the same physical machine are limited to 100 Mbps between themselves).

Quoted 45 lines

Best regards,
Víctor

Quoted 36 lines · Haydn Solomon

What emulated nic are you using? I think only the e1000 emulated nic supports 1 GB.

Quoted 9 lines · Miguel Araujo

Hello all,

I'm testing the last kvm version, 62. I was doing an iperf benchmark to test the network performance in a Feisty virtual machine and I got values surround 100Mbits when my card is actually 1Gbit. The testing environment is conformed by 2 machines, both with Gbit interfaces. The vm in kvm is running in server mode, the other (not virtualized one) is the client. The vm interface is going to a bridge called br0. Ethtool says the interface is running 100Mbits but it doesn't let me change the speed or any other parameter in the vm.

I can't either change tap0 parameters in kvm host. ¿Is anyone having the same issue?¿am I forgetting something?

Thanks for your time in advanced,
Miguel

Quoted 11 lines

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

#4 lore raw
Quoted 3 lines

Thanks for your answer Haydn, but I did not understand the issue too. Victor has explained my problem clearly, is kvm uncapable of running the bridge at 1GBit if it is not a e1000 network card?

Hey Miguel,

what Haydn meant was to force qemu to *emulate* a e1000 NIC instead of the default RTL8139. That emulation is done by qemu in userspace and has absolutely nothing to do with your physical NIC por the bridge. Chosing a NIC is done with the "model=" parameter.
kvm -net nic,model=e1000

Even better performance-wise would be to use the new virtio interface which paravirtualizes your physical NIC instead of emulating one. For that, use:
kvm -net nic,model=virtio

Of course you'll need to install the corresponding drivers in your guest. The e1000 should be supported in every guest and for the virtio interface there are windows guest drivers (see the kvm-announce mailing list for that) as well as linux guest drivers included in kernel 2.6.25 upwards.

By the way: This is good stuff f you're interested in hard disk performance, too: http://kvm.qumranet.com/kvmwiki/Virtio

Felix

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

#5 lore raw

See also
http://www.linux-kvm.com/content/tip-how-setup-windows-guest-paravirtual-network-drivers

Quoted 32 lines · Felix Leimbach
Quoted 3 lines

Thanks for your answer Haydn, but I did not understand the issue too. Victor has explained my problem clearly, is kvm uncapable of running the bridge at 1GBit if it is not a e1000 network card?

Hey Miguel,

what Haydn meant was to force qemu to *emulate* a e1000 NIC instead of the default RTL8139. That emulation is done by qemu in userspace and has absolutely nothing to do with your physical NIC por the bridge. Chosing a NIC is done with the "model=" parameter.
kvm -net nic,model=e1000

Even better performance-wise would be to use the new virtio interface which paravirtualizes your physical NIC instead of emulating one. For that, use:
kvm -net nic,model=virtio

Of course you'll need to install the corresponding drivers in your guest. The e1000 should be supported in every guest and for the virtio interface there are windows guest drivers (see the kvm-announce mailing list for that) as well as linux guest drivers included in kernel 2.6.25 upwards.

By the way: This is good stuff f you're interested in hard disk performance, too: http://kvm.qumranet.com/kvmwiki/Virtio

Felix

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.

Quoted 7 lines

http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace

_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

#6 lore raw

Hello again,

I want to thank you for the information given. Now I understand what you mean, I'm going to test virtio drivers with the last kernel possible. Thanks a lot.

Regards,
Miguel

Quoted 41 lines · Haydn Solomon

See also

http://www.linux-kvm.com/content/tip-how-setup-windows-guest-paravirtual-network-drivers

Quoted 1 line · On Thu, Apr 3, 2008 at 10:54 AM, Felix Leimbach <[email protected]…

Thanks for your answer Haydn, but

I did not understand the issue too.

> Victor has explained my problem clearly, is kvm uncapable of running

> the bridge at 1GBit if it is not a e1000 network card?

Hey Miguel,

what Haydn meant was to force qemu to *emulate* a e1000 NIC instead of the default RTL8139. That emulation is done by qemu in userspace and has absolutely nothing to do with your physical NIC por the bridge.
Chosing a NIC is done with the "model=" parameter.
kvm -net nic,model=e1000

Even better performance-wise would be to use the new virtio interface which paravirtualizes your physical NIC instead of emulating one.
For that, use:
kvm -net nic,model=virtio

Of course you'll need to install the corresponding drivers in your guest. The e1000 should be supported in every guest and for the virtio interface there are windows guest drivers (see the kvm-announce mailing list for that) as well as linux guest drivers included in kernel 2.6.25 upwards.

By the way: This is good stuff f you're interested in hard disk performance, too: http://kvm.qumranet.com/kvmwiki/Virtio

Felix

Quoted 12 lines

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
kvm-devel mailing list [email protected] <mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel