From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:43191) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVf2c-0007TQ-UM for qemu-devel@nongnu.org; Tue, 06 Nov 2012 04:01:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TVf2V-0004AE-MG for qemu-devel@nongnu.org; Tue, 06 Nov 2012 04:01:50 -0500 Received: from www.maurer-it.com ([213.129.239.114]:39388 helo=proxmox.maurer-it.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TVf2V-00049x-C5 for qemu-devel@nongnu.org; Tue, 06 Nov 2012 04:01:43 -0500 From: Dietmar Maurer Date: Tue, 6 Nov 2012 09:01:37 +0000 Message-ID: <24E144B8C0207547AD09C467A8259F75577EC2E1@lisa.maurer-it.com> References: <24E144B8C0207547AD09C467A8259F75577D5BE5@lisa.maurer-it.com> <24E144B8C0207547AD09C467A8259F75577E90B9@lisa.maurer-it.com> In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Qemu-devel] slow virtio network with vhost=on and multiple cores List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Lieven , "jan.kiszka@siemens.com" Cc: Stefan Hajnoczi , "qemu-devel@nongnu.org" , "Michael S. Tsirkin" OK, bisect point me to this commit: # git bisect bad 7d37d351dffee60fc7048bbfd8573421f15eb724 is the first bad commit commit 7d37d351dffee60fc7048bbfd8573421f15eb724 Author: Jan Kiszka Date: Thu May 17 10:32:39 2012 -0300 virtio/vhost: Add support for KVM in-kernel MSI injection =20 Make use of the new vector notifier to track changes of the MSI-X configuration of virtio PCI devices. On enabling events, we establish the required virtual IRQ to MSI-X message route and link the signaling eventfd file descriptor to this vIRQ line. That way, vhost-generated interrupts can be directly delivered to an in-kernel MSI-X consumer lik= e the x86 APIC. =20 Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity :040000 040000 1734ddc60cd8a85c7187e93e5a4c02e6d7706cf8 f417e63a684f3b92f5f= f35d256962a2490890f00 M hw This obviously breaks vhost when using multiple cores. > -----Original Message----- > From: Peter Lieven [mailto:lieven-lists@dlhnet.de] > Sent: Dienstag, 06. November 2012 08:47 > To: Dietmar Maurer > Cc: Stefan Hajnoczi; qemu-devel@nongnu.org; Michael S. Tsirkin > Subject: Re: [Qemu-devel] slow virtio network with vhost=3Don and multipl= e > cores >=20 > Dietmar Maurer wrote: > >> > ./x86_64-softmmu/qemu-system-x86_64 -smp sockets=3D1,cores=3D2 -m > 512 - > >> hda > >> > debian-squeeze-netinst.raw -netdev > >> > type=3Dtap,id=3Dnet0,ifname=3Dtap111i0,vhost=3Don -device > >> > virtio-net-pci,netdev=3Dnet0,id=3Dnet0 > >> > > >> > Downloading a larger file with wget inside the guest will show the > >> problem. > >> Speed drops from 100MB/s to 15MB/s. > >> > > >> > Can someone reproduce that bug? Any ideas how to fix that? > >> > >> Which exact QEMU are you using: qemu or qemu-kvm? Distro package or > >> from source? Any patches applied? > > > > I just tested with latest sources from > > git://git.qemu-project.org/qemu.git > > > > ./x86_64-softmmu/qemu-system-x86_64 -smp sockets=3D1,cores=3D2 -m 512 - > hda > > debian-squeeze-netinst.raw -netdev > > type=3Dtap,id=3Dnet0,ifname=3Dtap111i0,vhost=3Don -device > > virtio-net-pci,netdev=3Dnet0,id=3Dnet0 --enable-kvm > > > > got incredible bad performance - can't you reproduce the problem? >=20 > I have seen a similar problem, ...