From owner-freebsd-hackers Fri May 16 11:02:28 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id LAA11138 for hackers-outgoing; Fri, 16 May 1997 11:02:28 -0700 (PDT) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id LAA11084; Fri, 16 May 1997 11:01:26 -0700 (PDT) Received: (from root@localhost) by dyson.iquest.net (8.8.5/8.6.9) id MAA02020; Fri, 16 May 1997 12:58:01 -0500 (EST) From: "John S. Dyson" Message-Id: <199705161758.MAA02020@dyson.iquest.net> Subject: Re: mmap() In-Reply-To: <199705161744.KAA17629@phaeton.artisoft.com> from Terry Lambert at "May 16, 97 10:44:41 am" To: terry@lambert.org (Terry Lambert) Date: Fri, 16 May 1997 12:58:01 -0500 (EST) Cc: dyson@FreeBSD.ORG, james@westongold.com, freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > Okay!!! Firstly, the FFS FS dependent VOP_GETPAGES does do read-aheads iff > > the object is marked with MADV_SEQUENTIAL. Secondly, it would be fairly > > easy to detect sequential behavior automatically. Right now, there are > > much bigger fish to fry!!! :-) (The reason that it is in the FS dependent > > code, is that it is only optional that one uses the cluster read ahead > > code on a per filesystem basis.) It is likely that the FFS dependent > > VOP_GETPAGES code will work with other filesystem types (perhaps with > > minor mods.) > > It seems to me that the OBJ_SEQUENTIAL blocks the VOP_GETPAGE() caller > until all pages have been faulted, instead of asynchronously doing the > pages following the requested page, and returing immediately for the > requested page. This would introduce "bursty" behaviour, as sequential > access would incur a large latence for every read-ahead trigger. > The read-ahead isn't blocked for in that case. It only waits for the blocks that have been explicitly requested. John