From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=40344 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2lmo-0005eX-Q3 for qemu-devel@nongnu.org; Mon, 04 Oct 2010 10:13:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2lcG-0003Vq-3b for qemu-devel@nongnu.org; Mon, 04 Oct 2010 10:02:09 -0400 Received: from e4.ny.us.ibm.com ([32.97.182.144]:57432) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2lcG-0003V7-0P for qemu-devel@nongnu.org; Mon, 04 Oct 2010 10:02:08 -0400 Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by e4.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id o94DkJ2D020560 for ; Mon, 4 Oct 2010 09:46:19 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o94E1j701941702 for ; Mon, 4 Oct 2010 10:01:45 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o94E1iUD004990 for ; Mon, 4 Oct 2010 11:01:45 -0300 Message-ID: <4CA9DE2A.5080309@linux.vnet.ibm.com> Date: Mon, 04 Oct 2010 09:01:14 -0500 From: Anthony Liguori MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCH] virtio: Use ioeventfd for virtqueue notify References: <1285855312-11739-1-git-send-email-stefanha@linux.vnet.ibm.com> <4CA862A7.2080302@redhat.com> <20101003135138.GA19775@redhat.com> <4CA89185.6070302@redhat.com> <20101003142828.GB19775@redhat.com> <4CA92B79.2030805@linux.vnet.ibm.com> <4CA98A8D.4000500@redhat.com> In-Reply-To: <4CA98A8D.4000500@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Steve Dobbelstein , Stefan Hajnoczi , kvm@vger.kernel.org, "Michael S. Tsirkin" , qemu-devel@nongnu.org, Khoa Huynh , sri@linux.vnet.ibm.com On 10/04/2010 03:04 AM, Avi Kivity wrote: > On 10/04/2010 03:18 AM, Anthony Liguori wrote: >> On 10/03/2010 09:28 AM, Michael S. Tsirkin wrote: >>> >>>> This is using eventfd as well. >>> Sorry, I meant irqfd. >> >> I've tried using irqfd in userspace. It hurts performance quite a >> bit compared to doing an ioctl so I would suspect this too. >> >> A last_used_idx or similar mechanism should help performance quite a >> bit on top of ioeventfd too. >> > > Any idea why? While irqfd does quite a bit of extra locking, it > shouldn't be that bad. Not really. It was somewhat counter intuitive. A worthwhile experiment might be to do some layering violations and have vhost do an irq injection via an ioctl and see what the performance delta is. I suspect it could give vhost a nice boost. Regards, Anthony Liguori