From: Jim Paris <jim@jtan.com>
To: Jon Fairbairn <jon.fairbairn@cl.cam.ac.uk>
Cc: kvm@vger.kernel.org
Subject: Re: Poor network performance with cable modem assigned to guest
Date: Sat, 29 Aug 2009 13:03:41 -0400 [thread overview]
Message-ID: <20090829170341.GA26226@psychosis.jim.sh> (raw)
In-Reply-To: <wf3a7brn0d.fsf@calligramme.charmers>
Jon Fairbairn wrote:
> Brian Jackson <iggy@theiggy.com> 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
next prev parent reply other threads:[~2009-08-29 17:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-28 18:14 Poor network performance with cable modem assigned to guest Jon Fairbairn
2009-08-28 18:35 ` Brian Jackson
2009-08-29 9:24 ` Jon Fairbairn
2009-08-29 17:03 ` Jim Paris [this message]
2009-09-12 7:51 ` Jon Fairbairn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090829170341.GA26226@psychosis.jim.sh \
--to=jim@jtan.com \
--cc=jon.fairbairn@cl.cam.ac.uk \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).