All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Peter Lieven <pl@dlhnet.de>
Cc: Stefan Hajnoczi <stefanha@gmail.com>,
	Peter Lieven <lieven-lists@dlhnet.de>,
	Jan Kiszka <jan.kiszka@web.de>,
	Dietmar Maurer <dietmar@proxmox.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] slow virtio network with vhost=on and multiple cores
Date: Tue, 13 Nov 2012 18:46:04 +0200	[thread overview]
Message-ID: <20121113164603.GA788@redhat.com> (raw)
In-Reply-To: <9C6C6934-ABF0-4BC2-A412-3E8B3DB59F81@dlhnet.de>

On Tue, Nov 13, 2012 at 05:35:55PM +0100, Peter Lieven wrote:
> 
> Am 13.11.2012 um 17:33 schrieb Michael S. Tsirkin:
> 
> > On Tue, Nov 13, 2012 at 06:22:56PM +0200, Michael S. Tsirkin wrote:
> >> On Tue, Nov 13, 2012 at 12:49:03PM +0100, Peter Lieven wrote:
> >>> 
> >>> On 09.11.2012 19:03, Peter Lieven wrote:
> >>>> Remark:
> >>>> If i disable interrupts on CPU1-3 for virtio the performance is ok again.
> >>>> 
> >>>> Now we need someone with deeper knowledge of the in-kernel irqchip and the
> >>>> virtio/vhost driver development to say if this is a regression in qemu-kvm
> >>>> or a problem with the old virtio drivers if they receive the interrupt on
> >>>> different CPUs.
> >>> anyone?
> >> 
> >> Looks like the problem is not in the guest: I tried ubuntu guest
> >> on a rhel host, I got 8GB/s with vhost and 4GB/s without
> >> on a host to guest banchmark.
> >> 
> > 
> > Tried with upstream qemu on rhel kernel and that's even a bit faster.
> > So it's ubuntu kernel. vanilla 2.6.32 didn't have vhost at all
> > so maybe their vhost backport is broken insome way.
> 
> That might be. I think Dietmar was reporting that he had problems
> with Debian. They likely use the same back port.
> 
> Is it correct that with kernel_irqchip the IRQs are
> delivered to all vCPUs? Without kernel_irqchip (in qemu-kvm 1.0.1
> for instance) they where delivered only to vCPU 0. This scenario
> was working.
> 
> Peter

You need to look at how MSI tables are programmed to check if it's
OK - guest can program MSI to do it like that. pciutils does not
do this unfortunately so you'll have to write a bit of C code if you
want to do this.

-- 
MST

  reply	other threads:[~2012-11-13 16:43 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-05 11:51 [Qemu-devel] slow virtio network with vhost=on and multiple cores Dietmar Maurer
2012-11-05 12:36 ` Stefan Hajnoczi
2012-11-05 15:01   ` Dietmar Maurer
2012-11-06  6:12   ` Dietmar Maurer
2012-11-06  7:46     ` Peter Lieven
2012-11-06  7:51       ` Dietmar Maurer
2012-11-06  9:01       ` Dietmar Maurer
2012-11-06  9:26         ` Jan Kiszka
2012-11-06  9:46           ` Dietmar Maurer
2012-11-06 10:12             ` Jan Kiszka
2012-11-06 11:24               ` Dietmar Maurer
2012-11-08  9:39                 ` Jan Kiszka
2012-11-08 10:55                   ` Peter Lieven
2012-11-08 12:03                   ` Dietmar Maurer
2012-11-08 15:02                     ` Peter Lieven
2012-11-09  5:55                       ` Dietmar Maurer
2012-11-09 17:27                         ` Peter Lieven
2012-11-09 17:51                           ` Peter Lieven
2012-11-09 18:03                             ` Peter Lieven
2012-11-13 11:44                               ` Peter Lieven
2012-11-13 11:49                               ` Peter Lieven
2012-11-13 16:22                                 ` Michael S. Tsirkin
2012-11-13 16:21                                   ` Peter Lieven
2012-11-13 16:26                                     ` Michael S. Tsirkin
2012-11-13 16:27                                       ` Peter Lieven
2012-11-13 16:59                                         ` Dietmar Maurer
2012-11-13 17:03                                         ` Michael S. Tsirkin
2012-11-13 16:33                                   ` Michael S. Tsirkin
2012-11-13 16:35                                     ` Peter Lieven
2012-11-13 16:46                                       ` Michael S. Tsirkin [this message]
2012-11-13 17:03                                     ` Dietmar Maurer
2012-11-13 17:07                                       ` Michael S. Tsirkin
2012-11-13 17:38                                         ` Dietmar Maurer
2012-11-15 18:26                                           ` Peter Lieven
2012-11-16 10:44                                             ` Dietmar Maurer
2012-11-16 11:00                                               ` Alexandre DERUMIER
2012-12-03 11:23                                                 ` Peter Lieven
2012-12-09 18:38                                                   ` Alexandre DERUMIER
2013-03-14  9:22                                                     ` Davide Guerri
2013-03-14 10:43                                                       ` Alexandre DERUMIER
2013-03-14 17:50                                                         ` Michael S. Tsirkin
2013-03-14 18:15                                                           ` Davide Guerri
2013-03-14 18:21                                                             ` Peter Lieven
2013-03-14 23:04                                                               ` Davide Guerri
2013-03-15  7:23                                                                 ` Peter Lieven
2013-03-17  9:08                                                                   ` Michael S. Tsirkin
2013-03-18  9:50                                                                     ` Alexandre DERUMIER
2013-03-18  9:53                                                                       ` Michael S. Tsirkin
2013-03-25 13:34                                                                         ` Peter Lieven
2012-11-19 13:49                                     ` Peter Lieven
2012-11-06  6:48   ` Dietmar Maurer

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=20121113164603.GA788@redhat.com \
    --to=mst@redhat.com \
    --cc=dietmar@proxmox.com \
    --cc=jan.kiszka@web.de \
    --cc=lieven-lists@dlhnet.de \
    --cc=pl@dlhnet.de \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.