Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030188AbXAZQCx (ORCPT ); Fri, 26 Jan 2007 11:02:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030559AbXAZQCw (ORCPT ); Fri, 26 Jan 2007 11:02:52 -0500 Received: from rtr.ca ([64.26.128.89]:1511 "EHLO mail.rtr.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030188AbXAZQCv (ORCPT ); Fri, 26 Jan 2007 11:02:51 -0500 Message-ID: <45BA2628.4030502@rtr.ca> Date: Fri, 26 Jan 2007 11:02:48 -0500 From: Mark Lord User-Agent: Thunderbird 1.5.0.9 (X11/20061206) MIME-Version: 1.0 To: Denis Vlasenko Cc: Michael Tokarev , Phillip Susi , Linus Torvalds , Viktor , Aubrey , Hua Zhong , Hugh Dickins , linux-kernel@vger.kernel.org, hch@infradead.org, kenneth.w.chen@in Subject: Re: O_DIRECT question References: <6d6a94c50701101857v2af1e097xde69e592135e54ae@mail.gmail.com> <45B90D19.60106@cfl.rr.com> <45B916F2.4070906@tls.msk.ru> <200701252211.39017.vda.linux@googlemail.com> In-Reply-To: <200701252211.39017.vda.linux@googlemail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 598 Lines: 15 You guys need to backup in this thread. Every example of O_DIRECT here could be replaced with calls to mmap(), msync(), and madvise() (or posix_fadvise). In addition to being at least as fast as O_DIRECT, these have the added benefit of using the page cache (avoiding reads for data already present, handling multiple users of the same data, etc..). - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/