Received: from eggs.gnu.org ([2001:4830:134:3::10]:56040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN10x-0006MR-Jz for qemu-devel@nongnu.org; Tue, 12 Jul 2016 12:58:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bN10t-0002gY-F7 for qemu-devel@nongnu.org; Tue, 12 Jul 2016 12:58:30 -0400 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]:35928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bN10t-0002gU-74 for qemu-devel@nongnu.org; Tue, 12 Jul 2016 12:58:27 -0400 Received: by mail-lf0-x241.google.com with SMTP id 33so1574811lfw.3 for ; Tue, 12 Jul 2016 09:58:26 -0700 (PDT) Sender: Paolo Bonzini References: <1467045468-25709-1-git-send-email-stefanha@redhat.com> <20160628094222.GD2798@stefanha-x1.localdomain> <60c4eaef-cc41-3510-644a-b3023a6e493c@redhat.com> From: Paolo Bonzini Message-ID: Date: Tue, 12 Jul 2016 18:58:22 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] linux-aio: keep processing events if MAX_EVENTS reached List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Roman Penyaev Cc: Kevin Wolf , Stefan Hajnoczi , qemu-devel , Stefan Hajnoczi On 12/07/2016 18:34, Roman Penyaev wrote: > On Tue, Jul 12, 2016 at 4:59 PM, Paolo Bonzini wrote: >> On 12/07/2016 16:12, Roman Penyaev wrote: >>> But what is the most important thing here is, that reverting >>> "linux-aio: Cancel BH if not needed" brings these numbers: >>> >>> READ: io=56362MB, aggrb=1878.4MB/s, minb=1878.4MB/s, >>> maxb=1878.4MB/s, mint=30007msec, maxt=30007msec >>> WRITE: io=56255MB, aggrb=1874.8MB/s, minb=1874.8MB/s, >>> maxb=1874.8MB/s, mint=30007msec, maxt=30007msec >>> >>> So, it seems to me that "linux-aio: Cancel BH if not needed" introduces >>> regression. >> >> It's possible that this depends on the workload. But, thanks for >> measuring it. It's not a small effect (~5%). We should consider indeed >> reverting the patch. > > Without any doubts it depends. But I can't say that my fio config > is something special Yup, I wasn't expecting anything special. >>> - unsigned int n; >>> + unsigned int inqueue; >>> + unsigned int inflight; >> >> Please use in_queue (or queue_length) and in_flight. > > Yeah, but that was just a quick exercise. > If Stefan or you want this as a normal patch, I will resend > with all tweaks made. Yes, please do send it. Paolo