Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030889AbXAZQxd (ORCPT ); Fri, 26 Jan 2007 11:53:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030875AbXAZQw6 (ORCPT ); Fri, 26 Jan 2007 11:52:58 -0500 Received: from mx27.mail.ru ([194.67.23.64]:23134 "EHLO mx27.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030882AbXAZQwU (ORCPT ); Fri, 26 Jan 2007 11:52:20 -0500 Message-ID: <45BA31B3.2020203@inbox.ru> Date: Fri, 26 Jan 2007 19:52:03 +0300 From: Viktor User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060212 Fedora/1.7.12-5 X-Accept-Language: en-us, ru, en MIME-Version: 1.0 To: Mark Lord CC: Denis Vlasenko , Michael Tokarev , Phillip Susi , Linus Torvalds , Aubrey , Hua Zhong , Hugh Dickins , linux-kernel@vger.kernel.org, hch@infradead.org 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> <45BA2628.4030502@rtr.ca> In-Reply-To: <45BA2628.4030502@rtr.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 718 Lines: 21 Mark Lord wrote: > 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). No. How about handling IO errors? There is no practical way for it with mmap(). > 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/