From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2xuU-0001ty-Q8 for qemu-devel@nongnu.org; Fri, 04 Jul 2014 03:28:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X2xuN-0000jd-3e for qemu-devel@nongnu.org; Fri, 04 Jul 2014 03:27:54 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X2xuM-0000iK-Rx for qemu-devel@nongnu.org; Fri, 04 Jul 2014 03:27:47 -0400 Message-ID: <53B6576B.7040304@redhat.com> Date: Fri, 04 Jul 2014 09:27:39 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1404406760-22981-1-git-send-email-pbonzini@redhat.com> <53B64EE6.4000705@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.1?!?] AioContext: speed up aio_notify List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Ming Lei Cc: Kevin Wolf , Stefan Hajnoczi , qemu-devel , Stefan Hajnoczi Il 04/07/2014 09:23, Ming Lei ha scritto: > I think it is good and better to go to 2.1, and it should save lots of > write syscall. > > Also should regression be caused, the per thread trick may be > resorted to, which should be simple. If we have the "right" solution (which we do, unlike the plug/unplug case), and the benefit is there but limited, I don't see a reason to rush another patch in 2.1. Some reasonable level of performance degradation or increased host CPU utilization was expected in 2.1; of course 40% is not reasonable. > With multi virtqueue's coming for virtio-blk, it should save more, and I > also plan to use the improved qemu bh to help merge requests from > multi queue, without introducing extra notifier. But virtio-blk multiqueue is 2.2 material, and so is coalescing of irqfd writes. I think Kevin or Stefan should queue this patch (with the smp_mb optimization, IMHO) for block-next. Paolo