From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felix Leimbach Subject: Re: virtual machines network goes 100Mbit when interface is Gbit Date: Thu, 03 Apr 2008 17:54:08 +0200 Message-ID: <47F4FDA0.8080100@gmx.net> References: <47DA819D.3050907@Nosys.net> <47DA9839.7080607@gmail.com> <47EB7DC8.5010804@Nosys.es> <47F4A31E.30501@Nosys.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0747635101==" Cc: lista kvm-devel , Victor Abeytua Garcia To: Miguel Araujo Return-path: In-Reply-To: <47F4A31E.30501@Nosys.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --===============0747635101== Content-Type: multipart/alternative; boundary="------------000503040805020005070302" This is a multi-part message in MIME format. --------------000503040805020005070302 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit > 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 --------------000503040805020005070302 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > 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
--------------000503040805020005070302-- --===============0747635101== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- 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 --===============0747635101== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel --===============0747635101==--