From owner-freebsd-bugs Tue Nov 28 14:19:07 1995 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id OAA10493 for bugs-outgoing; Tue, 28 Nov 1995 14:19:07 -0800 Received: from hub.org (hub.org [199.166.238.138]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id OAA10483 for ; Tue, 28 Nov 1995 14:18:48 -0800 Received: (from scrappy@localhost) by hub.org (8.7.1/8.7.1) id RAA15072; Tue, 28 Nov 1995 17:16:31 -0500 (EST) Date: Tue, 28 Nov 1995 17:16:24 -0500 (EST) From: "Marc G. Fournier" To: Frank Durda IV cc: bugs@FreeBSD.ORG Subject: Re: newfs gets you fewer inodes these days. Why? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-bugs@FreeBSD.ORG Precedence: bulk On Tue, 28 Nov 1995, Frank Durda IV wrote: > I just installed 2.1 on a system that had a secondary 2GB SCSI that > had not been disklabeled and such since the 1.1.5.1 days. It > ran 2.0.5 that way without incident but I thought it would be nice > to get rid of all the moaning and complaining the 'slicer makes while > booting. Ha! > > After installation, I discovered that the partitions no longer > had sufficient inodes to hold the contents I needed to restore. > > The 1.1.5.1 filesystems were newfs'ed with default settings for > inodes back in the 1.1.5.1 days, so THE DEFAULTS WERE USED. Promise. > I was amazed at the time that I didn't have to tweak the values. > > As an example of what is happening, a 450Meg partition ended up with nearly > 210K inodes on 1.1.5.1, but on 2.1.0, it got 61438, even less than what > a SCO UNIX system would provide for the same size "divvy" (65520). > 61438 inodes was I got even with that partition a bit bigger (now 504Meg). > On a 2.1R system, /dev/sd1e was added to the system after installing: System 1K-blocks Used Avail Capacity iused ifree %iused Mounted on /dev/wd0a 29727 19148 8200 70% 911 6767 12% / /dev/wd0e 98479 79653 10947 88% 4599 26119 15% /usr /dev/wd0g 99887 16090 75806 18% 815 25039 3% /home /dev/sd1e 297423 117577 156052 43% 17732 59066 23% /usr/src /dev/sd0f 193215 145112 38442 79% 8042 41876 16% /usr/local /dev/sd0e 98479 60948 29652 67% 3342 27376 11% /usr/local/src /dev/wd0f 65663 43154 17255 71% 57 22981 0% /usr/local/src/Installed /dev/sd1f 181503 53229 113753 32% 11677 34401 25% /home/news/spool procfs 4 4 0 100% 46 134 26% /proc Notice that the number of I-nodes created on a 300Meg partition was over 75,000 I-nodes. In fact, as far back as I can remember (2years, min), file systems under BSDi, another *BSD variant, defaulted to a 4block-to-1inode ratio. Marc G. Fournier | POP Mail Telnet Acct DNS Hosting scrappy@hub.org | WWW Services Database Services | Knowledge, soon to be: | | Information and scrappy@ki.net | WWW: http://hub.org | Communications, Inc