From nemesis!uhclem@fw.ast.com  Tue Nov 28 21:29:58 1995
Received: from ast.com (irvine.ast.com [165.164.128.2])
          by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id VAA12102
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 28 Nov 1995 21:29:54 -0800
Received: from fw.ast.com by ast.com with SMTP id AA05077
  (5.67b/IDA-1.5 for <FreeBSD-gnats-submit@freebsd.org>); Tue, 28 Nov 1995 21:31:21 -0800
Received: from nemesis by fw.ast.com with uucp
	(Smail3.1.29.1 #4) id m0tKeYC-00008VC; Tue, 28 Nov 95 22:55 CST
Received: by nemesis.lonestar.org (Smail3.1.27.1 #20)
	id m0tKeEM-000CQ2C; Tue, 28 Nov 95 22:34 WET
Message-Id: <m0tKeEM-000CQ2C@nemesis.lonestar.org>
Date: Tue, 28 Nov 95 22:34 WET
From: uhclem%nemesis@fw.ast.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: Install skimps on inodes and newfs default is wrong FDIV041
X-Send-Pr-Version: 3.2

>Number:         849
>Category:       misc
>Synopsis:       Install skimps on inodes and newfs default is wrong FDIV041
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jkh
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 28 21:30:06 PST 1995
>Closed-Date:    Sun Jun 16 06:22:00 PDT 1996
>Last-Modified:  Sun Jun 16 06:30:14 PDT 1996
>Originator:     Frank Durda IV
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
Burmashave
>Environment:

FreeBSD 2.1-RELEASE (or STABLE?)

>Description:

During installation a 500 Meg partition was created to hold a news
spool that had previously existed on the drive that was a 450 Meg.
During the restore, it was found the files would not all fit (out of
inodes).

It appears that the installation is invoking newfs with -i 4096, which
produces one inode for every 8 blocks.  So on a 500Meg partition, only
61,437 inodes were created.

In 1.1.5.1 (don't know about 2.0.x), the installation as it was
ran newfs with NO parameters, which produced roughly 220,000 inodes.

In 2.1.0, the man page for newfs says:
	"-i number of bytes per inode.  The default is to create an
	    inode for each 2048 bytes of data space."
and that description matches the action seen in 1.1.5.1.
However, in 2.1.0, newfs behaves as though the default has been
changed to 4096, yielding only 122,877 inodes in the above example.

Here are some tests:

	      1K Total  Used	Avail	Iused	Ifree		Cyl groups	
newfs no parms	496367	1	456656	1	122877		16
newfs -i 1024	452735	1	416515	1	471037		11 *
newfs -i 2048 	481007	1	442525	1	245757		16
newfs -i 4096	496367	1	456656	1	122877		16
newfs -i 8192	504047	1	463722	1	61437		16

* newfs generates a warning about not getting as many cylinder groups.

>How-To-Repeat:

On a partition you don't care about, compare the inode count set by
install vs what you get with the various settings shown above.

>Fix:
	
1.	Fix install to not pass -i 8192 or make the parameter a settable
	parameter on each partition.  This doesn't appear to be an
	option now.

2.	Fix newfs so that the default is 2048 so it matches previous
	behavior and the manpage.
	

*END*

>Release-Note:
>Audit-Trail:

From: "Jordan K. Hubbard" <jkh@time.cdrom.com>
To: uhclem%nemesis@fw.ast.com
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: misc/849: Install skimps on inodes and newfs default is wrong FDIV041 
Date: Tue, 28 Nov 1995 22:48:35 -0800

 > 1.	Fix install to not pass -i 8192 or make the parameter a settable
 > 	parameter on each partition.  This doesn't appear to be an
 > 	option now.
 
 But it is a settable parameter?
 
 > 2.	Fix newfs so that the default is 2048 so it matches previous
 > 	behavior and the manpage.
 
 Agreed, will do.
 
 						Jordan
Responsible-Changed-From-To: freebsd-bugs->jkh 
Responsible-Changed-By: scrappy 
Responsible-Changed-When: Sun Jun 2 13:29:24 PDT 1996 
Responsible-Changed-Why:  
sysinstall related...? 
State-Changed-From-To: open->closed 
State-Changed-By: jkh 
State-Changed-When: Sun Jun 16 06:22:00 PDT 1996 
State-Changed-Why:  
This problem is what the newfs parameter selection was included to deal with. 
>Unformatted:
