From: t.hespe@unsw.edu.au (Tim Hespe)
Subject: Re: Inode allocation in AdvFS
Date: 1996/10/20 [thread overview]
Message-ID: <54f235$8kj@mirv.unsw.edu.au> (raw)
In-Reply-To: 549kd6$gt8@nntpd2.cxo.dec.com
alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for
Wayward Inodes.) wrote:
>In article <547m6l$cp7@polaris.eurocontrol.fr>, Ollivier.Robert@eurocontrol.fr (Ollivier Robert) writes:
>>
>>spare_domain#spare 1645640 32 1640784 0% 4 5589656 0% /spare
>>
>>Why does it have 5.5 _millions_ of inodes ? Even with an allocation policy
>>of 512 bytes per inodes, that's too much.
>AdvFS dynamically allocates the on-disk data structure that passes
>for an inode. To the best of my knowledge there are only two things
>that will create that many:
>1. Need. A some point in its life, the file system needed that many
> or close to that many. Space for the inode-like data structure
> is allocated in large contiguous extends. The smallest likely
> extent is 1 MB. I don't know if there is a largest, beyond the
> limits of having enough space for it. However, when the space
> is extended, a new extent the size of the first is allocated.
> If that is very large (and historically there are reasons it
> could be) and only a few got used, you'd have a lot of wasted
> space.
>2. Pre-allocation & History lessons. AdvFS does lots of things very
> well. One thing it has never done well is support I/O loads that
> delete and create many small files. Such loads quickly fragment
> the free space and as the need for more inode-like data structures
> grows it becomes impossible to allocate them. The result is often
> a failure to create a file even though plenty of free space exists;
> just not contiguous free space. One common application that causes
> this sort of load is USENET News.
> One of the earliest recommended work-arounds to the problem was
> to pre-allocate empty files and then delete them when the domain
> was created. This would allocate the necessary extents when there
> was plenty of contiguous free space. People still ran out, but
> not as often.
>Assuming that df(1) is reporting the correct values, either #1 or #2
>is why you have so many of these data structures.
>>
>>Is there a way to get a more decent allocation policy ?
>Backup, recreate the file system and don't pre-allocate before
>you restore. However, if you think you might ever need that many
>files, give the process a second thought. As for the average file
>size being less than a sector; empty files need homes too...
>>
>>Ollivier ROBERT -=- Eurocontrol EEC/TS -=- Ollivier.Robert@eurocontrol.fr
>>
>>
>--
>Alan Rollow alan@nabeth.cxo.dec.com
Hi,
I tend to think that the value displayed by df is meaningless for
an Advfs file system. I base this on the fact that I just created a
file domain and a fileset and mounted the the fileset and df reports
that there are in excess of 6 million inodes available (on a filset
less than 2G in size).
prev parent reply other threads:[~1996-10-20 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-10-18 4:00 Inode allocation in AdvFS Ollivier Robert
1996-10-19 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-10-20 4:00 ` Tim Hespe [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox