Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 95 22:34 WET
From:      uhclem%nemesis@fw.ast.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   misc/849: Install skimps on inodes and newfs default is wrong FDIV041
Message-ID:  <m0tKeEM-000CQ2C@nemesis.lonestar.org>
Resent-Message-ID: <199511290530.VAA12142@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         849
>Category:       misc
>Synopsis:       Install skimps on inodes and newfs default is wrong FDIV041
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 28 21:30:06 PST 1995
>Last-Modified:
>Originator:     Frank Durda IV
>Organization:
Burmashave
>Release:        FreeBSD 2.1-STABLE i386
>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*

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0tKeEM-000CQ2C>