From owner-freebsd-hackers Sun Jun 6 7:52:29 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from sol (cs1-gw.cs.binghamton.edu [128.226.171.72]) by hub.freebsd.org (Postfix) with SMTP id 32ECA14EDF for ; Sun, 6 Jun 1999 07:52:27 -0700 (PDT) (envelope-from zzhang@cs.binghamton.edu) Received: from localhost (zzhang@localhost) by sol (SMI-8.6/8.6.9) with SMTP id KAA08566; Sun, 6 Jun 1999 10:40:02 -0400 Date: Sun, 6 Jun 1999 10:40:01 -0400 (EDT) From: Zhihui Zhang To: Farshid Eslami Cc: freebsd-hackers@freebsd.org Subject: Re: allocate file blocks contiguously In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > For more info about maxcontig, you can refer to the well-known > paper of McKusic et al about Fast File System. It is a parameter > that is hardware dependent. You can't get performance just by > increasing its value. Unfortunately, I don't have on-line version > of that paper. > > > --Farshid > > On Wed, 2 Jun 1999, Zhihui Zhang wrote: > > > > > In FFS, there is a parameter called maxcontig (default to 16) that > > determines the number of blocks we can allocate contiguously for a single > > file. What is its optimal value? I mean, if we allocate ALL the data > > blocks of a very big file contiguously, will its I/O performance be > > improved greatly? It seems to me this number may also be limited by > > system buffering capability (MAXPHYS?) and underlying hardware controller. > > Can anyone give me some hints on the choice of the value of maxcontig? > > I read the paper at http://docs.FreeBSD.org/44doc/, which is basically the same as in the 4.4 BSD book (p276). My feeling is that if we allocate ALL the data blocks of a big file contiguously, this will lead to "too much localization" as described in the paper (or the book). However, this may be good for this big file if the system buffering capability and hardware allow it (at the cost of other files?) Regards, Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message