Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: folkert <folkert@vanheusden.com>
Cc: kvm <kvm@vger.kernel.org>
Subject: Re: FAQ on linux-kvm.org has broken link
Date: Tue, 27 Aug 2013 09:31:04 +0200	[thread overview]
Message-ID: <20130827073104.GA24247@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <20130826195037.GA18231@belle.intranet.vanheusden.com>

On Mon, Aug 26, 2013 at 09:50:38PM +0200, folkert wrote:
> > 2. Get the system into the bad state and then do some deeper.  Start
> >    with outgoing ping, instrument guest driver and host vhost_net
> >    functions to see what the drivers are doing, inspect the transmit
> >    vring, etc.

Okay, it's time to understand what is going on at the virtio-net level.

You can check whether the host is being notified of packets ready to be
transmitted:

  (host)$ sudo perf probe --module vhost_net handle_tx
  (host)$ sudo perf record --pid 24306 -e probe:handle_tx -R
  [...attempt to transmit packets inside guest...]
  ^C
  (host)$ sudo perf script
       vhost-24305 24306 [000] 101120.817103: probe:handle_tx: (ffffffffa06fd6b0)

Here the qemu-kvm process was pid 24305 and the vhost kernel thread was
24306 (you can find out the correct pid to use using ps aux).  If your
host is only running the guest under test you can drop the pid argument
and replace it with -a.

If you see handle_tx probes firing on the host then the issue may be
with the vring or tap device.  If you do not see handle_tx probes firing
on the host, then the problem may be inside the guest.

Stefan

  reply	other threads:[~2013-08-27  7:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-30  1:18 FAQ on linux-kvm.org has broken link folkert
2013-07-30 12:25 ` Stefan Hajnoczi
2013-07-30 12:45   ` folkert
2013-07-30 20:45   ` folkert
2013-07-31  8:46     ` Stefan Hajnoczi
2013-08-02 11:37       ` folkert
2013-08-02 15:25         ` Stefan Hajnoczi
2013-08-02 18:06           ` folkert
2013-08-05 11:31             ` Stefan Hajnoczi
2013-08-05 20:59               ` folkert
2013-08-06  8:13                 ` Stefan Hajnoczi
2013-09-03 17:03                   ` folkert
2013-08-26 19:50               ` folkert
2013-08-27  7:31                 ` Stefan Hajnoczi [this message]
2013-10-29 17:18                   ` folkert
2013-11-01  9:52                     ` Stefan Hajnoczi

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=20130827073104.GA24247@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=folkert@vanheusden.com \
    --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