From owner-freebsd-arch@FreeBSD.ORG Fri Nov 4 17:19:58 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 ECEB3106566C; Fri, 4 Nov 2011 17:19:58 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9A01F8FC0C; Fri, 4 Nov 2011 17:19:58 +0000 (UTC) Received: by iabz21 with SMTP id z21so4427576iab.13 for ; Fri, 04 Nov 2011 10:19:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=l2OrSROLsIbeAZ105iOQX9ENmNbAgAey/+IpxKp4mYM=; b=O2DjuUpuirD1kpN1rOH86M0yUlrJR3ul1swlaPjtbUP4BIV2sxTR70BkgK4aAGyn1G unmSqRz650oWyxlhwBdShXpYr+mBZSpsbeGhhIh6mmmZJ5BOSRTzYWVzk21VySDR5Rld Pk7YGpg8K68c0vQN3BauHLxHdeMMA+DMEqBEA= Received: by 10.231.82.11 with SMTP id z11mr3847926ibk.77.1320427197227; Fri, 04 Nov 2011 10:19:57 -0700 (PDT) Received: from [10.55.5.15] (pos-ext.netapp.com. [198.95.226.40]) by mx.google.com with ESMTPS id jm11sm22926986ibb.1.2011.11.04.10.19.55 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 Nov 2011 10:19:56 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Garrett Cooper In-Reply-To: <20111104160319.GD6110@elvis.mu.org> Date: Fri, 4 Nov 2011 10:19:52 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: 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> <4EB2C9DD.9090606@FreeBSD.org> <20111104160319.GD6110@elvis.mu.org> To: Alfred Perlstein X-Mailer: Apple Mail (2.1084) Cc: Bruce Cran , Ed Schouten , Jilles Tjoelker , John Baldwin , 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 17:19:59 -0000 On Nov 4, 2011, at 9:03 AM, Alfred Perlstein wrote: > * John Baldwin [111103 19:38] wrote: >> 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()). >>>>>=20 >>>>> There's >>>>> http://www.speedware.com/HPe3000_resources/MPE_to_HP-UX_cross- >>>> = reference/system_administration_cross-reference/cmd.html?cmdid=3DMS_1800 >>>>> for HP-UX ("*fadvise()* was derived by HP from the IEEE POSIX >>>>> 1003.1-2001 Standard"), though it also has posix_fadvise. >>>>=20 >>>> 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"). >>>=20 >>> Makes sense for gzip/tar. >>=20 >> 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. >=20 > You often spend time untarring the same tarball over and over=20 > in your workflow John? This is starting to sound like something that libarchive / pkg_install = would benefit from (jkh pkg_install or pkgng). -Garrett=