Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: Which file system
Date: 1996/09/04	[thread overview]
Message-ID: <50kefu$ds9@nntpd2.cxo.dec.com> (raw)
In-Reply-To: 50hmbu$f3n@decaxp.harvard.edu



In article <50hmbu$f3n@decaxp.harvard.edu>, ngeorge@scsun1.harvard.edu (Nikos George) writes:
>
>>>AdvFS is much more flexible than UFS, and doesn't need fscking [sic].
>>
>>But if you're planning to use the file-sys as a news-server, use UFS.
>
>Can you tell me why not, or point me to a document that explains it???

I don't know of any place that reasonably documents then, but it
somewhat widely known.

The Advanced File System dynamically allocates per-file data structures
expanding the space needed for these tables as necessary.  But, there
are two constraints on space for this table;

1.  A new extent to the table must be contiguous.

2.  There are a limited number of extents allowed.

Fortunately, the extent size is variable.  The -x option of addvol
and mkfdmn should describe the feature in some detail and various
versions of the release notes have minimally documented the
problem.  But, in order to support a very large number of files,
a very large extent size must be used.  As the extent size gets
larger, it becomes harder to find the necessary amount of
contiguous space.

Under the file creation/deletion load caused by News, the free
space is very quickly fragmented and large extents are harder than
usual to find.  Regular running of defragment may partly solve the
problem.

Even though a file system may appear to have a large amount of
free space, an attempt to extend the table of per-file data
structures could fail because there isn't enough contiguous
space.  Even if there is, it could also fail, because the last
extent has been used.

Another work-around to the problem is to pre-create a large
number of empty files and then delete them.  This will extend
the table while it is easy to allocate the space.  It also
takes a long time and there may still be surprises left.  A
file system shouldn't have surprises.

With UFS, you can tell in advance how many files can be stored
and adjust the file system creation parameters to ensure you
have enough.  You know when you're going to run out and if you're
willing to waste some space, you can arrange so that you can't
run out of inodes.


>/Nikos
>
--
Alan Rollow				alan@nabeth.cxo.dec.com




  reply	other threads:[~1996-09-04  4:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-08-30  4:00 Which file system Luc Marotte
1996-09-02  4:00 ` Peter Mayne
1996-09-02  4:00   ` Jonathan Chen
1996-09-03  4:00     ` Nikos George
1996-09-04  4:00       ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
1996-09-04  4:00     ` Steve Hancock
1996-09-05  4:00       ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
1996-09-08  4:00         ` Saul Tannenbaum
1996-09-09  4:00       ` Saul Tannenbaum
1996-09-12  4:00         ` Steve Hancock
1996-09-04  4:00 ` rp001ns
1996-09-06  4:00   ` Alan Rollow - Dr. File System's Home for Wayward Inodes.
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