From owner-freebsd-fs Wed Oct 2 10:40:45 1996 Return-Path: owner-fs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA23657 for fs-outgoing; Wed, 2 Oct 1996 10:40:45 -0700 (PDT) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA23647; Wed, 2 Oct 1996 10:40:39 -0700 (PDT) Received: (from root@localhost) by dyson.iquest.net (8.7.5/8.6.9) id MAA01329; Wed, 2 Oct 1996 12:40:10 -0500 (EST) From: John Dyson Message-Id: <199610021740.MAA01329@dyson.iquest.net> Subject: Re: vnode and cluster read-ahead To: dfr@render.com (Doug Rabson) Date: Wed, 2 Oct 1996 12:40:10 -0500 (EST) Cc: dyson@freebsd.org, phk@critter.tfs.com, heo@cslsun10.sogang.ac.kr, freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org In-Reply-To: from "Doug Rabson" at Oct 2, 96 06:21:13 pm Reply-To: dyson@freebsd.org X-Mailer: ELM [version 2.4 PL24 ME8] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-fs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > You could maintain a number of 'pending readahead' structures indexed by > vnode and block number. Each call to cluster_read would check for a > pending readahead by hashing. For efficiency, keep a pointer to the last > readahead structure used by cluster_read in the vnode in place of the > existing in-vnode readahead data. Should be no slower than the current > system for single process reads and it saves 4 bytes per vnode :-). > Pretty cool idea. I am remembering now that this deficiency in our read ahead code is well known. This might be something really good for 2.3 or 3.1 :-). (Unless someone else wants to implement it -- hint hint :-)). John