From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)
Subject: Re: Limit on Number of Files in ADVFS?
Date: 1999/08/25 [thread overview]
Message-ID: <7q1jdt$5ck$1@nntpd.lkg.dec.com> (raw)
In-Reply-To: 7q1a1r$32c$1@fddinewz.oit.unc.edu
In article <7q1a1r$32c$1@fddinewz.oit.unc.edu>, frey@dove.bme.unc.edu (Eric Frey) writes:
>I have a 50 gb disk with a single advfs fileset on it and am storing lots
>of relatively small files on it. I have not file or disk size quotes set.
>However, I have found that when I get ~404000 files on it, I can create no
>more files despite the fact that I have some diskpace (~5 gb) left. I can
>find no place where this mentioned or can be set or changed. Is this correct?
I think the two most likely limits on the number of files that AdvFS
can create are space needed for file meta-data and the size of the
tag value/index. Since AdvFS has to pretend that it uses inodes for
the stat(2) system call, this last is probably a 32 bit value and
limited to 2,147,483,647 or 4,294,967,296 (with some values reserved
probably).
If AdvFS could use any old page for metadata, the number of files
would be limited by the leftover space and the amount of space
needed for each file. However, it isn't quite that simple. AdvFS
allocates file meta-data space dynamically. One of classic problems
for people running news servers is that when it extends this space
for new files, the space has to be contiguous. Since News quickly
fragments the free space, a common problem is the extension for new
files fails because there isn't enough contiguous space. The other
common problem related to this is that the particular data structure
apparently has a limited number of extents available. When all the
extents are used, it isn't possible to allocate more space for file
meta-data.
If you were creating the files all at once or files don't tend to
be deleted, I'd guess that the limited number of extents might be
the problem. If the file creations have happened over time and
files have been deleted as other files have been created, then
there might simply not be enough contiguous space.
You can use defragment for the fragmented free space side of the
problem. I don't know whether it conbines extents for the other
part of the problem. Some time in the V4 version stream, defragment
was included in the base system without the need for a license.
>Would it work to create another fset on the same fdmn? Thanks in advance.
I don't know whether the particular data structure are per-domain or
per-fileset. If per-domain a new file set probably wouldn't help.
A new volume might, but defragmentation is probably the best choice.
>
>
>
>=======================================================================
>Eric C. Frey
>Assistant Professor
>Department of Biomedical Engineering and Department of Radiology
>The University of North Carolina
>
--
Alan Rollow alan@nabeth.cxo.dec.com
next prev parent reply other threads:[~1999-08-25 4:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-08-25 4:00 Limit on Number of Files in ADVFS? Eric Frey
1999-08-25 4:00 ` Alan Rollow - Dr. File System's Home for Wayward Inodes. [this message]
1999-08-26 4:00 ` Bob Harris
[not found] ` <ericb-2708990307470001@x3066.resnet.cornell.edu>
1999-08-27 4:00 ` Bob Harris
1999-08-27 4:00 ` Serguei Patchkovskii
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