From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36679 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PuJH3-0008MG-Kj for qemu-devel@nongnu.org; Tue, 01 Mar 2011 01:41:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PuJH1-0003NB-Uj for qemu-devel@nongnu.org; Tue, 01 Mar 2011 01:41:32 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PuJH1-0003My-MN for qemu-devel@nongnu.org; Tue, 01 Mar 2011 01:41:31 -0500 Date: Tue, 1 Mar 2011 12:11:11 +0530 From: Amit Shah Subject: Re: [Qemu-devel] [PATCH (resend, rebase) 3/3] virtio-serial: Enable ioeventfd Message-ID: <20110301063947.GH8326@amit-x200.redhat.com> References: <0948831a888a7047d9e1ce945197a0210c922b1b.1298891447.git.amit.shah@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu list On (Mon) 28 Feb 2011 [15:28:49], Stefan Hajnoczi wrote: > On Mon, Feb 28, 2011 at 11:12 AM, Amit Shah wrot= e: > > Enable ioeventfd for virtio-serial devices by default. =A0Commit > > 25db9ebe15125deb32958c6df74996f745edf1f9 lists the benefits of using > > ioeventfd. > > > > Copying a file from guest to host over a virtio-serial channel didn't > > show much difference in time or io_exit rate. >=20 > The cost of enabling ioeventfd is one eventfd file descriptor and KVM > in-kernel device slot per virtqueue. The current maximum number per > VM is 200, this is a kernel limit in > include/linux/kvm_host.h:NR_IOBUS_DEVS. >=20 > Do you really want to use ioeventfd for virtio-serial? Perhaps this > is more useful for high-frequency device interfaces. I guess virtio-serial is being used heavily -- by almost all guest agents nowadays. The primary use-case, though, is not for high-bandwidth communication. This setting could be default off, it didn't show any difference in my test run, but depends on what people who use it see and think. Amit