Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Inode allocation in AdvFS
@ 1996-10-18  4:00 Ollivier Robert
  1996-10-19  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
  0 siblings, 1 reply; 3+ messages in thread
From: Ollivier Robert @ 1996-10-18  4:00 UTC (permalink / raw)



Hi everyone,

I have a 1.6 GB AdvFS filesystem and ``df -ki gives'' the following:

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.

Is there a way to get a more decent allocation policy ?

I've read newfs(8) but the ``-i'' only applies to UFS. Did I miss something
somewhere ?

Regards,
-- 
Ollivier ROBERT   -=- Eurocontrol EEC/TS -=-   Ollivier.Robert@eurocontrol.fr




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Inode allocation in AdvFS
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Rollow - Dr. File System's Home for Wayward Inodes. @ 1996-10-19  4:00 UTC (permalink / raw)




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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Inode allocation in AdvFS
  1996-10-19  4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
@ 1996-10-20  4:00   ` Tim Hespe
  0 siblings, 0 replies; 3+ messages in thread
From: Tim Hespe @ 1996-10-20  4:00 UTC (permalink / raw)



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).




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1996-10-20  4:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox