From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nu5OF-0006Ah-44 for qemu-devel@nongnu.org; Tue, 23 Mar 2010 10:47:31 -0400 Received: from [199.232.76.173] (port=37575 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nu5OE-0006AD-BD for qemu-devel@nongnu.org; Tue, 23 Mar 2010 10:47:30 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nu5OB-0002CA-Ms for qemu-devel@nongnu.org; Tue, 23 Mar 2010 10:47:30 -0400 Received: from e39.co.us.ibm.com ([32.97.110.160]:56256) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nu5OB-0002Bs-Co for qemu-devel@nongnu.org; Tue, 23 Mar 2010 10:47:27 -0400 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e39.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id o2NEdPGH017140 for ; Tue, 23 Mar 2010 08:39:25 -0600 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id o2NElF5t176140 for ; Tue, 23 Mar 2010 08:47:22 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o2NEl4Op017135 for ; Tue, 23 Mar 2010 08:47:05 -0600 Message-ID: <4BA8D476.8080003@us.ibm.com> Date: Tue, 23 Mar 2010 07:47:18 -0700 From: Badari Pulavarty MIME-Version: 1.0 References: <1269304444.7931.68.camel@badari-desktop> <20100323123916.GA24750@redhat.com> In-Reply-To: <20100323123916.GA24750@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [RFC] vhost-blk implementation List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org Michael S. Tsirkin wrote: > On Mon, Mar 22, 2010 at 05:34:04PM -0700, Badari Pulavarty wrote: > >> Write Results: >> ============== >> >> I see degraded IO performance when doing sequential IO write >> tests with vhost-blk compared to virtio-blk. >> >> # time dd of=/dev/vda if=/dev/zero bs=2M oflag=direct >> >> I get ~110MB/sec with virtio-blk, but I get only ~60MB/sec with >> vhost-blk. Wondering why ? >> > > Try to look and number of interrupts and/or number of exits. > > It could also be that you are overrunning some queue. > Yeah. > I don't see any exit mitigation strategy in your patch: > when there are already lots of requests in a queue, it's usually > a good idea to disable notifications and poll the > queue as requests complete. That could help performance. > Thanks for the suggestions. I will take a closer look. Thanks, Badari