From owner-freebsd-questions Sun Oct 18 13:00:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA01807 for freebsd-questions-outgoing; Sun, 18 Oct 1998 13:00:56 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from hermes.aston.ac.uk (hermes.aston.ac.uk [134.151.79.46]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id NAA01802 for ; Sun, 18 Oct 1998 13:00:50 -0700 (PDT) (envelope-from batziosa@helios.aston.ac.uk) Received: from tennis (sun.aston.ac.uk) [134.151.53.127] by hermes.aston.ac.uk with esmtp (Exim 1.82 #3) id 0zUz1a-0000Ip-00; Sun, 18 Oct 1998 21:01:58 +0100 X-Mailer: exmh version 2.0.2 2/24/98 To: Graeme Tait cc: questions@FreeBSD.ORG Subject: Re: Out of inodes with many small files on disk In-Reply-To: Your message of "Sun, 18 Oct 1998 14:47:57 PDT." <362A620D.33DC@echidna.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 18 Oct 1998 21:01:57 +0100 From: A BATZIOS Message-Id: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The thing is that on most file systems there is an inode for every 2K or every 4K. So, if you've filled your disk with 1K files (each of them needs it's own inode) and you have 1 inode every 2K then it would be safe to assume that you'll run out of inodes when filling half the disk. As far as I know, the only thing you can do is change your filesystem to use more inodes. I remember that I had a linux system once, set to 1 inode/512bytes or 1 inode/1K and I doubt that you can further reduce that. Be well! ~Alex > Hi, I have a situation where I want to more-or-less fill a disk with tiny files. > Most are a little under 1k, which I understand is the default minimum fragment > size. > > When I was expanding a gzipped archive of such files onto the destination drive, I > got the message "out of inodes". The disk concerned is ~500MB with a single > partition (/dev/wd1s1e in the df -ik listing below). The "out of inodes" condition > arose with about 50% of the disk occupied with the small files. The files are > stored in what I hope is a reasonably intelligent structure, like > > dir1/dir2/file > > with at most a few thousand files per dir2, and a few hundred dir2 per dir1. > > > What do I need to do to make it possible to fill the disk with such minimal-size > files? Will it be necessary to repartition the disk? > > How can I predict if I will run out of inodes before filling a disk (or partition > within a multi-partition disk). > > > Filesystem 1K-blocks Used Avail Capacity iused ifree %iused Mounted on > /dev/wd0s1a 31775 16705 12528 57% 936 6742 12% / > /dev/wd0s1f 277527 241099 14226 94% 19598 49520 28% /usr > /dev/wd0s1e 29727 1221 26128 4% 155 7523 2% /var > procfs 4 4 0 100% 37 143 21% /proc > /dev/wd1s1e 510575 297237 172492 63% 130558 0 100% /ddrive > > -- > Graeme Tait - Echidna > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message