From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:36814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBNcG-0000Zi-2L for qemu-devel@nongnu.org; Fri, 01 Mar 2013 05:55:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBNcA-0001Ma-PH for qemu-devel@nongnu.org; Fri, 01 Mar 2013 05:55:04 -0500 Received: from mail-wg0-f44.google.com ([74.125.82.44]:53464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBNcA-0001Lk-JE for qemu-devel@nongnu.org; Fri, 01 Mar 2013 05:54:58 -0500 Received: by mail-wg0-f44.google.com with SMTP id dr12so2302803wgb.35 for ; Fri, 01 Mar 2013 02:54:57 -0800 (PST) Date: Fri, 1 Mar 2013 11:54:54 +0100 From: Stefan Hajnoczi Message-ID: <20130301105454.GB575@stefanha-thinkpad.redhat.com> References: <512270C4.3090401@dachary.org> <20130225125056.GB3202@stefanha-thinkpad.redhat.com> <20130226164530.GF8662@stefanha-thinkpad.redhat.com> <20130228144304.GC18389@stefanha-thinkpad.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Block I/O optimizations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Abel Gordon Cc: Kevin Wolf , Anthony Liguori , "Michael S. Tsirkin" , qemu-devel , Paolo Bonzini , Loic Dachary , Asias He On Thu, Feb 28, 2013 at 08:20:08PM +0200, Abel Gordon wrote: > Stefan Hajnoczi wrote on 28/02/2013 04:43:04 PM: > > I think extending and tuning the existing mechanisms is the way to go. > > I don't see obvious advantages other than reducing context switches. > > Maybe it is worth checking... > We did experiments using vhost-net and vhost-blk. We measured and compared > the traditional model (kernel thread per VM/virtual device) to the > shared-thread model with fine-grained I/O scheduling (single kernel thread > used to serve multiple VMs). We noticed improvements up-to 2.5x > in throughput and almost half the latency when running up-to 14 VMs. Can you post patches? Also, I wonder if you have time to do a presentation/discussion session so we can get the ball rolling and more people exposed to your approach. There is a weekly QEMU Community Call which we can use as the forum. The reason I have been skeptical is that prototyping radical changes often involves rewriting or bypassing code. These "accidental" changes can impact performance too. We need to understand where to attribute the performance improvements. Stefan