From owner-freebsd-arch@FreeBSD.ORG Fri Nov 4 02:38:35 2011 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 064B01065672; Fri, 4 Nov 2011 02:38:35 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id CD6E98FC13; Fri, 4 Nov 2011 02:38:34 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 6143546B2A; Thu, 3 Nov 2011 22:38:34 -0400 (EDT) Received: from John-Baldwins-MacBook-Air.local (64-71-23-226.static.wiline.com [64.71.23.226]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 224858A02E; Thu, 3 Nov 2011 22:38:32 -0400 (EDT) Message-ID: <4EB2C9DD.9090606@FreeBSD.org> Date: Thu, 03 Nov 2011 10:05:33 -0700 From: John Baldwin User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Alfred Perlstein References: <201110281426.00013.jhb@freebsd.org> <201111011308.05204.jhb@freebsd.org> <4EB08740.8010601@cran.org.uk> <201111021136.12629.jhb@freebsd.org> <20111102202015.GQ6110@elvis.mu.org> In-Reply-To: <20111102202015.GQ6110@elvis.mu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Thu, 03 Nov 2011 22:38:33 -0400 (EDT) Cc: Bruce Cran , Ed Schouten , Jilles Tjoelker , arch@freebsd.org Subject: Re: [PATCH] fadvise(2) system call X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2011 02:38:35 -0000 On 11/2/11 1:20 PM, Alfred Perlstein wrote: > * John Baldwin [111102 11:05] wrote: >> On Tuesday, November 01, 2011 7:56:48 pm Bruce Cran wrote: >>> On 01/11/2011 17:08, John Baldwin wrote: >>>> I had found it via the web: http://linux.die.net/man/2/fadvise >>>> However, after further searching it appears to be stale (if you follow >>>> it's cross-reference to madvise(2), that page only has links to >>>> posix_fadvise() and not fadvise()). >>> >>> There's >>> http://www.speedware.com/HPe3000_resources/MPE_to_HP-UX_cross- >> reference/system_administration_cross-reference/cmd.html?cmdid=MS_1800 >>> for HP-UX ("*fadvise()* was derived by HP from the IEEE POSIX >>> 1003.1-2001 Standard"), though it also has posix_fadvise. >> >> Hmm, that one actually has an extra argument. I'll just go with >> posix_fadvise() for now. Interesting that HP lets you OR together >> two policies (so you can say both "I will access this file sequentially >> and with noreuse"). > > Makes sense for gzip/tar. Ehh, quite possibly not for something that generic. I think you only want to do this if you have very specific knowledge about your access pattern, and I do not think they are generically applicable. -- John Baldwin