From owner-freebsd-bugs Tue Nov 28 21:30:13 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA12149 for bugs-outgoing; Tue, 28 Nov 1995 21:30:13 -0800 Received: (from gnats@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id VAA12142 ; Tue, 28 Nov 1995 21:30:09 -0800 Resent-Date: Tue, 28 Nov 1995 21:30:09 -0800 Resent-Message-Id: <199511290530.VAA12142@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, "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" ; 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 ); 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: Date: Tue, 28 Nov 95 22:34 WET From: uhclem%nemesis@fw.ast.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/849: Install skimps on inodes and newfs default is wrong FDIV041 Sender: owner-bugs@freebsd.org Precedence: bulk >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: