From owner-freebsd-arch@FreeBSD.ORG Thu Nov 10 01:03:53 2011 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 835E91065678 for ; Thu, 10 Nov 2011 01:03:53 +0000 (UTC) (envelope-from peter@wemm.org) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 42E1E8FC0C for ; Thu, 10 Nov 2011 01:03:53 +0000 (UTC) Received: by ggnk3 with SMTP id k3so3308135ggn.13 for ; Wed, 09 Nov 2011 17:03:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wemm.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=pwYm3aNitmzAeAEK3+m9sd9Td2lPTVoSs3yFFwSiUfg=; b=47fOdyvyDlPKhQEBSqfa6k+T1Och1a9+xYNhC+ouswr6uDuu+/Vm/EaNo5VdwG4gXS DUhDdCMwQfdb2MivLdvGTOyuhDt7SjaZbs+L6rQZYJyC+hd4lYsu65JpPuWpcV8m0mxQ MgZ/WbbHUgtsmfNR1lzXRB7ECiQF/RFkIZ/lo= MIME-Version: 1.0 Received: by 10.50.189.231 with SMTP id gl7mr5762438igc.44.1320886626152; Wed, 09 Nov 2011 16:57:06 -0800 (PST) Received: by 10.50.186.233 with HTTP; Wed, 9 Nov 2011 16:57:06 -0800 (PST) In-Reply-To: <201111080800.32717.jhb@freebsd.org> References: <201110281426.00013.jhb@freebsd.org> <4EB2C9DD.9090606@FreeBSD.org> <20111104160319.GD6110@elvis.mu.org> <201111080800.32717.jhb@freebsd.org> Date: Wed, 9 Nov 2011 16:57:06 -0800 Message-ID: From: Peter Wemm To: John Baldwin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Bruce Cran , Ed Schouten , Jilles Tjoelker , Alfred Perlstein , arch@freebsd.org, freebsd-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: Thu, 10 Nov 2011 01:03:53 -0000 On Tue, Nov 8, 2011 at 5:00 AM, John Baldwin wrote: > On Friday, November 04, 2011 12:03:20 pm Alfred Perlstein wrote: >> * John Baldwin [111103 19:38] wrote: >> > On 11/2/11 1:20 PM, Alfred Perlstein wrote: >> > >* John Baldwin =A0[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 fo= llow >> > >>>>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=3DMS_= 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. =A0I'll just go with >> > >>posix_fadvise() for now. =A0Interesting that HP lets you OR together >> > >>two policies (so you can say both "I will access this file sequentia= lly >> > >>and with noreuse"). >> > > >> > >Makes sense for gzip/tar. >> > >> > Ehh, quite possibly not for something that generic. =A0I think you onl= y >> > want to do this if you have very specific knowledge about your access >> > pattern, and I do not think they are generically applicable. >> >> You often spend time untarring the same tarball over and over >> in your workflow John? > > No, but many people will do a 'tar tvf' of a file after they generate it. > Would be rather silly to force that to go to disk every time, especially = given > tar's format where it does not have a header like zip so you have to read= the > whole darn thing for a 'tar tvf'. Did 'tar tvf' stop seeking and doing random seek/reads for raw tar files? I know it can't do this for a stream compressed file and there's no choice but to read it all. --=20 Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com; KI6FJV "All of this is for nothing if we don't go to the stars" - JMS/B5 "If Java had true garbage collection, most programs would delete themselves upon execution." -- Robert Sewell