From: Nick Piggin Subject: Re: [PATCH][RFC] fast file mapping for loop Date: Thu, 10 Jan 2008 12:42:25 +1100 Message-ID: <200801101242.25671.nickpiggin@yahoo.com.au> References: <20080109085231.GE6650@kernel.dk> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, chris.mason@oracle.com, linux-fsdevel@vger.kernel.org To: Jens Axboe Return-path: Received: from smtp104.mail.mud.yahoo.com ([209.191.85.214]:22711 "HELO smtp104.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1753907AbYAJBms (ORCPT ); Wed, 9 Jan 2008 20:42:48 -0500 In-Reply-To: <20080109085231.GE6650@kernel.dk> Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Wednesday 09 January 2008 19:52, Jens Axboe wrote: > So how does it work? Instead of punting IO to a thread and passing it > through the page cache, we instead attempt to send the IO directly to the > filesystem block that it maps to. You told Christoph that just using direct-IO from kernel still doesn't give you the required behaviour... What about queueing the IO directly *and* using direct-IO? I guess it still has to go through the underlying filesystem, but that's probably a good thing. > loop maintains a prio tree of known > extents in the file (populated lazily on demand, as needed). Just a quick question (I haven't looked closely at the code): how come you are using a prio tree for extents? I don't think they could be overlapping?