From owner-freebsd-questions Tue Apr 2 0:28:16 2002 Delivered-To: freebsd-questions@freebsd.org Received: from catalyst.sasknow.net (catalyst.sasknow.net [207.195.92.130]) by hub.freebsd.org (Postfix) with ESMTP id 5CBFE37B405 for ; Tue, 2 Apr 2002 00:28:10 -0800 (PST) Received: from localhost (ryan@localhost) by catalyst.sasknow.net (8.11.6/8.11.6) with ESMTP id g328S5m15397; Tue, 2 Apr 2002 02:28:05 -0600 (CST) (envelope-from ryan@sasknow.com) X-Authentication-Warning: catalyst.sasknow.net: ryan owned process doing -bs Date: Tue, 2 Apr 2002 02:28:05 -0600 (CST) From: Ryan Thompson To: uwi mAn Cc: freebsd-questions@freebsd.org Subject: Re: out of inodes In-Reply-To: Message-ID: <20020402021824.U13694-100000@catalyst.sasknow.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG uwi mAn wrote to ryan@sasknow.com: > Well you see, I have two FreeBSD machines > > 1) 20 GB UFS {sole BSD} > I have ports [60,000 files, doesnt matter] there among other shit which > includes several web sites, etc... and I have NO problems. [19 GB full of > data in total] > > 2) 509 MB UFS slice [along with FAT32 on same hdd] > no matter how much space I dedicate to / slice, I run into same trouble > every time. [about 80 megs are being left on device when the error occurs] > Switching/resizing off/on swap doesnt help. Completely normal. The smaller the partition, the fewer inodes allocated. On a 19GB partition, you can have WAY more inodes than you know what to do with, typically. With the default settings of 4K per inode, a 19GB partition will have nearly 5M inodes available. I don't know of many people than have 5 million files. On a 509MB partition, you are much more likely to run out of inodes. 4K per inode becomes much more serious... you can have a maximum of about 130,000 inodes. > >Run 'df -i' to see the iused and ifree columns, which basically > >show you how many files you have created vs. how many files you can > >create, for each partition. To increase ifree, you must re-run > >newfs with a lower -i value. > > thanks Ryan, I'll try that. Anyway, what value would you recommend? The default is 4 * frag size (4K per inode). This means that your average file size must be greater than 4K if you want to utilize all of the SPACE on the drive without running out of inodes. You can double the amount of available inodes by using -i 2048. Quadruple with -i 1024. - Ryan -- Ryan Thompson Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message