From owner-freebsd-arch Mon Oct 15 15:26:46 2001 Delivered-To: freebsd-arch@freebsd.org Received: from mrout1.yahoo.com (mrout1.yahoo.com [216.145.54.171]) by hub.freebsd.org (Postfix) with ESMTP id 76F9737B401; Mon, 15 Oct 2001 15:26:40 -0700 (PDT) Received: from yahoo-inc.com (zoot.corp.yahoo.com [216.145.52.89]) by mrout1.yahoo.com (8.11.6/8.11.6/y.out) with ESMTP id f9FMQYf75082; Mon, 15 Oct 2001 15:26:34 -0700 (PDT) Message-ID: <3BCB629A.ACF72517@yahoo-inc.com> Date: Mon, 15 Oct 2001 15:26:34 -0700 From: Doug Barton X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: Matt Dillon Cc: Matthew Jacob , Peter Wemm , cvs-committers@FreeBSD.ORG, freebsd-arch@FreeBSD.ORG Subject: Re: cvs commit: src/sbin/newfs newfs.8 newfs.c References: <20011015124636.I29828-100000@wonky.feral.com> <200110152126.f9FLQE956721@earth.backplane.com> Content-Type: multipart/mixed; boundary="------------452C775F06A8B39928947702" Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. --------------452C775F06A8B39928947702 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit What do you guys think of the attached patch? If this is such an important issue, it should be documented. I for one am glad I saw this discussion, because I'm looking at creating a custom file system for about 300,000 files that are 400k or smaller. I'm looking to improve file I/O performance, so I thought a smaller frag size might get things packed in tighter... Doug --------------452C775F06A8B39928947702 Content-Type: text/plain; charset=us-ascii; name="newfs.8.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="newfs.8.diff" Index: newfs.8 =================================================================== RCS file: /home/ncvs/src/sbin/newfs/newfs.8,v retrieving revision 1.43 diff -u -r1.43 newfs.8 --- newfs.8 2001/10/04 12:24:18 1.43 +++ newfs.8 2001/10/15 22:21:39 @@ -111,6 +111,9 @@ .It Fl b Ar block-size The block size of the file system, in bytes. It must be a power of 2. The default size is 8192 bytes, and the smallest allowable size is 4096 bytes. +The optimal block:fragment ratio is 8:1. +Other ratios are possible, but are not recommended, and may produce +unpredictable results. .It Fl c Ar #cylinders/group The number of cylinders per cylinder group in a file system. The default is to compute the maximum allowed by the other parameters. This value is --------------452C775F06A8B39928947702-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message