From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Paris Subject: Re: Poor network performance with cable modem assigned to guest Date: Sat, 29 Aug 2009 13:03:41 -0400 Message-ID: <20090829170341.GA26226@psychosis.jim.sh> References: <200908281335.13684.iggy@theiggy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Jon Fairbairn Return-path: Received: from b.jim.sh ([75.150.123.26]:51549 "EHLO psychosis.jim.sh" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752012AbZH2RJt (ORCPT ); Sat, 29 Aug 2009 13:09:49 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Jon Fairbairn wrote: > Brian Jackson writes: > > > On Friday 28 August 2009 01:14:42 pm Jon Fairbairn wrote: > >> I'm experimenting with a virtual router. I did this a few years ago with > >> Xen and it worked well enough, but then fedora changed and it stopped > >> working, so I gave up for a while. Now I have a machine that supports > >> hardware virtualisation, I thought I'd try again. > >> > >> The setup was done through virt-manager. The network between the host > >> and guest is a virtual bridge. What I've been trying to do is to assign > >> a USB cable modem to the guest, > > > > > > This is probably your problem here. KVM only emulates a usb1.1 > > controller, > > that shouldn't be a problem as the cable modem is only a usb 1.1 device. > > > and from all reports, it doesn't really do that very well. > > Not very well? We're talking about a factor of *FIFTY* slow down here. > If I'd implemented the driver in a 1980s lazy functional language I > would have only expected a factor of ten :-P ;-). > > > There have been numerous reports of poor performance even for a usb1.1 > > device. You should check the archives to see if there was ever any > > kind of tips or resolution to some of those problems. > > I had a look, but I couldn't find anything helpful. Maybe I'm searching > for the wrong things? I don't have any specific answers, but you might be able to get some more info by uncomenting the "//#define DEBUG" in kvm's usb-linux.c. You might also try capturing the USB traffic (e.g. with wireshark) both in the host with the modem connected directly, and in the guest with the modem passed through, to see if there are any differences other than speed (packet sizes, etc). Also try comparing the "lsusb -vvv" output in both guest and host? -jim