From owner-freebsd-fs Thu Sep 5 01:20:49 1996 Return-Path: owner-fs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA00980 for fs-outgoing; Thu, 5 Sep 1996 01:20:49 -0700 (PDT) Received: from ccs.sogang.ac.kr (ccs.sogang.ac.kr [163.239.1.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id BAA00975 for ; Thu, 5 Sep 1996 01:20:45 -0700 (PDT) Received: from cslsun10.sogang.ac.kr by ccs.sogang.ac.kr (8.7.5/Sogang) id RAA07954; Thu, 5 Sep 1996 17:16:34 +0900 (KST) Received: from localhost by cslsun10.sogang.ac.kr (4.1/SMI-4.1) id AA19864; Thu, 5 Sep 96 17:18:02 KST Date: Thu, 5 Sep 1996 17:18:02 +0900 (KST) From: Heo Sung-Gwan X-Sender: heo@cslsun10 To: freebsd-fs@FreeBSD.ORG Subject: Questions about cluster read buffer cache Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-fs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, I have some questions about cluster read-ahead buffer cache. When a file is read sequentially, one cluster is always prefetched that is not requested yet. At least vp->v_ralen blocks are already in buffer. If the difference between the most recently accessed block and the most recently prefetched block is greater than vp->v_ralen, next cluster is read ahead into buffer. During reading a file sequentially the value of vp->v_ralen is 7. Why is it? And if the blocks in a cluster is requested before the completion of asynchronous read-ahead of the cluster, how is this situation handled? Which part of vfs_cluster.c does handle this? -- Heo Sung-Gwan O.S. Lab. Dept. of Computer Science, Sogang University, Seoul, Korea. E-mail: heo@oslab.sogang.ac.kr