From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753260AbcAVPkI (ORCPT ); Fri, 22 Jan 2016 10:40:08 -0500 Received: from mail.anarazel.de ([217.115.131.40]:40783 "EHLO mail.anarazel.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751033AbcAVPkG (ORCPT ); Fri, 22 Jan 2016 10:40:06 -0500 X-Greylist: delayed 484 seconds by postgrey-1.27 at vger.kernel.org; Fri, 22 Jan 2016 10:40:05 EST Date: Fri, 22 Jan 2016 16:31:55 +0100 From: Andres Freund To: Dave Chinner Cc: Benjamin LaHaise , linux-aio@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-mm@kvack.org, Alexander Viro , Andrew Morton , Linus Torvalds Subject: Re: [PATCH 07/13] aio: enabled thread based async fsync Message-ID: <20160122153155.GF4961@awork2.anarazel.de> References: <80934665e0dd2360e2583522c7c7569e5a92be0e.1452549431.git.bcrl@kvack.org> <20160112011128.GC6033@dastard> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160112011128.GC6033@dastard> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2016-01-12 12:11:28 +1100, Dave Chinner wrote: > On Mon, Jan 11, 2016 at 05:07:23PM -0500, Benjamin LaHaise wrote: > > Enable a fully asynchronous fsync and fdatasync operations in aio using > > the aio thread queuing mechanism. > > > > Signed-off-by: Benjamin LaHaise > > Signed-off-by: Benjamin LaHaise > > Insufficient. Needs the range to be passed through and call > vfs_fsync_range(), as I implemented here: > > https://lkml.org/lkml/2015/10/28/878 FWIW, I finally started to play around with this (or more precisely https://lkml.org/lkml/2015/10/29/517). There were some prerequisite changes in postgres required, to actually be able to benefit, delaying things. First results are good, increasing OLTP throughput considerably. It'd also be rather helpful to be able to do sync_file_range(SYNC_FILE_RANGE_WRITE) asynchronously, i.e. flush without an implied barrier. Currently this blocks very frequently, even if there's actually IO bandwidth available. Regards, Andres