From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregory Haskins Subject: Re: Bandwith limitation with KVM VMs Date: Mon, 03 Aug 2009 23:01:30 -0400 Message-ID: <4A77A48A.1060606@gmail.com> References: <20090803163205.GJ23503@defiant.freesoftware.org> <4A7715CC.7030901@gmail.com> <20090804011742.GL23503@defiant.freesoftware.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigB9E1BC3A0D22B4A2382EDCB9" To: dbareiro@gmx.net, KVM General Return-path: Received: from mail-qy0-f196.google.com ([209.85.221.196]:57152 "EHLO mail-qy0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753067AbZHDDBd (ORCPT ); Mon, 3 Aug 2009 23:01:33 -0400 Received: by qyk34 with SMTP id 34so3435800qyk.33 for ; Mon, 03 Aug 2009 20:01:33 -0700 (PDT) In-Reply-To: <20090804011742.GL23503@defiant.freesoftware.org> Sender: kvm-owner@vger.kernel.org List-ID: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB9E1BC3A0D22B4A2382EDCB9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Daniel Bareiro wrote: > Hi Gregory. >=20 > On Monday, 03 August 2009 12:52:28 -0400, > Gregory Haskins wrote: >=20 >>> I have a KVM VM that it has installed a MRTG on the network >>> interface and that it doesn't register more than 10 Mbps, seeming >>> that per moments it is saturated in this value. >>> >>> Has KVM some bandwidth limitation of the virtualized network >>> interfaces? In such case, exists some way to increase that >>> limitation? >=20 >> There is no set artificial limit afaict, though there are a large >> number of factors that can affect performance. Of course, everything >> has an ultimate ceiling (KVM included) but I have found this limit in >> KVM to be orders of magnitude faster than 10Mbps. Properly tuned, >> you should easily be able to saturate a GE link at line rate, or even >> 4Gbps-5Gpbs of a 10GE link. >=20 >> However, since you are only hitting 10Mb/s now, there is ton of >> headroom left even on upstream KVM so you might find it to be >> satisfactory as is, once you address the current bottleneck in your >> setup. >> >> Things to check: What linkspeed does the host see to the next hop? >> How much bandwidth does the host see to the same end-point? What is >> your overall topology, especially for the VM (are you using -net tap, >> etc). What MTU are you using. Etc. >=20 > It draws attention that when executing 'cfgmaker' from MRTG server > against the IP of the VM, it returns max speed of 1250 kBytes/s, that > is to say 10 Mbps: >=20 > sparky:~# /usr/bin/cfgmaker --global 'WorkDir: /tmp' --global \=20 > 'Options[_]: bits,growright' xxxxxxxxxxxxxx@10.1.0.42 > [...] > MaxBytes[10.1.0.42_2]: 1250000 >=20 >=20 > But nevertheless from within of the VM I see the following thing: >=20 > aps2:~# ethtool eth0 > Settings for eth0: > Supported ports: [ TP MII ] > Supported link modes: 10baseT/Half 10baseT/Full > 100baseT/Half 100baseT/Full > Supports auto-negotiation: Yes > Advertised link modes: 10baseT/Half 10baseT/Full > 100baseT/Half 100baseT/Full > Advertised auto-negotiation: Yes > Speed: 100Mb/s > Duplex: Full > Port: MII > PHYAD: 32 > Transceiver: internal > Auto-negotiation: on > Supports Wake-on: pumbg > Wake-on: d > Current message level: 0x00000007 (7) > Link detected: yes >=20 >=20 > do you think that can give some indication? Hmm.. I am not familiar with MRTG/cfgmaker, but from your ethtool output I suspect you are not using virtio. How do you launch the guest? Have you actually run something like netperf or an rsync to see what type of bandwidth you actually get? Perhaps this is just the mrtg tool getting confused about the actual interface capabilities. -Greg --------------enigB9E1BC3A0D22B4A2382EDCB9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkp3pIoACgkQP5K2CMvXmqEc9QCfa9jhaamBcAdGiuYk8B32EB+w IAQAn21ihOFhgQY9kpLm/ho0iyq0h71k =VVdS -----END PGP SIGNATURE----- --------------enigB9E1BC3A0D22B4A2382EDCB9--