* Max number of files in a Directory?
@ 1993-07-13 15:32 Steve Johns
1993-07-14 11:36 ` James F. Dunham
1993-07-14 19:23 ` Gary Rice - x6322
0 siblings, 2 replies; 5+ messages in thread
From: Steve Johns @ 1993-07-13 15:32 UTC (permalink / raw)
What is the maximum number of files (not versions) allowed under VMS in a
directory on a Files-11 disk?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Max number of files in a Directory?
1993-07-13 15:32 Max number of files in a Directory? Steve Johns
@ 1993-07-14 11:36 ` James F. Dunham
1993-07-14 16:58 ` Charles Mattair
1993-07-14 19:23 ` Gary Rice - x6322
1 sibling, 1 reply; 5+ messages in thread
From: James F. Dunham @ 1993-07-14 11:36 UTC (permalink / raw)
|>
|>What is the maximum number of files (not versions) allowed under VMS in a
|>directory on a Files-11 disk?
|>
Technically there is no limit, although other volume constraits may prevent
you from adding another entry to an exisiting directory.
If the current directory file is full, a new contiguous one must be allocated.
This new directory file must be equal to the current size, plus room for
new records. If there is not enough contigous disk space available, or
the volume's file header is full or you have exceeded your disk quota the
file creation operation will not succeed.
Other reasons are related to directory file corruption, caused by bad media,
inconsistant directories cause by system or disk failures while a directory
update was in progress, even some disk-defraggers have been known to cause
problems.
An ANALYZE/DISK will show any directory inconsistencies, adding /REPAIR should
fix them.
--
James F. Dunham
OpenVMS Engineering
Digital Equipment Corporation I / S / O
110 Spit Brook Road ( ) ( ) ( ) ( )
Nashua, NH 03062 /
dunham@star.enet.dec.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Max number of files in a Directory?
1993-07-14 11:36 ` James F. Dunham
@ 1993-07-14 16:58 ` Charles Mattair
0 siblings, 0 replies; 5+ messages in thread
From: Charles Mattair @ 1993-07-14 16:58 UTC (permalink / raw)
In article <1993Jul14.113624.8344@e2big.mko.dec.com> dunham@star.enet.dec.com writes:
>
>|>
>|>What is the maximum number of files (not versions) allowed under VMS in a
>|>directory on a Files-11 disk?
>|>
>
>Technically there is no limit, although other volume constraits may prevent
>you from adding another entry to an exisiting directory.
>
<this is being written based on experiences several years ago - if I'm
wrong, no flames, just corrections>
However, there is a practical limit - how long do you want to wait on
directory operations. As the directory gets very large, certain operations,
most notoriously file deletions can take an exceeeeeeeedingly long time.
As an experiment, we tried to see how many 9.3 files you could stuff in
a directory (at the time, there was a 1024 block limit to a directory)
so I created a stupid shell^H^H^H^H^H DCL proc to create 0 length files
until VMS blew it out. I don't remember the number created but it was
a respectable number.
The rub came when deleting this mess. DEL/NOLOG *.*.*.... Delete would
remove each file from the directory in sequence and empty the first
directory block. It (RMS/XQP ?) would recognize the empty block and
copy the remaining n-1 blocks down and truncate the directory. This
went on for - I think - 11 hours.
Our recommendation to our customers was keep the size down.
--
Charles Mattair (until 16 July - work) mattair@synercom.hounix.org
<standard.disclaimer>
In a mature society, "civil servant" is semantically equivalent to
"civil master." - Robert Heinlein, _The Notebooks of Lazarus Long_
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Max number of files in a Directory?
1993-07-13 15:32 Max number of files in a Directory? Steve Johns
1993-07-14 11:36 ` James F. Dunham
@ 1993-07-14 19:23 ` Gary Rice - x6322
1993-07-14 22:57 ` oberman
1 sibling, 1 reply; 5+ messages in thread
From: Gary Rice - x6322 @ 1993-07-14 19:23 UTC (permalink / raw)
In article <JOHNS.93Jul13113229@cuba.gsfc.nasa.gov>, johns@cuba.gsfc.nasa.gov (Steve Johns) writes:
> What is the maximum number of files (not versions) allowed under VMS in a
> directory on a Files-11 disk?
I'm not sure that an absolute number exists. However, DEC STRONGLY suggests
that if the size of the directory file itself exceeds 1024 block, you
will have LOADS OF PROBELSM.
Personally, I have found that if the number of files in a directory gets
above 500 or so, accessing the files slows down MARKEDLY. For example, I
am currently deleting the contents of a directory. It started with about
6000 files in it. I am now at 4 hours and still deleting (on a VAX 4000-500).
Gary Rice
RICEG@UG.EDS.COM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Max number of files in a Directory?
1993-07-14 19:23 ` Gary Rice - x6322
@ 1993-07-14 22:57 ` oberman
0 siblings, 0 replies; 5+ messages in thread
From: oberman @ 1993-07-14 22:57 UTC (permalink / raw)
In Article <1993Jul14.122318.1@wildr.ug.eds.com>
system@wildr.ug.eds.com (Gary Rice - x6322) writes:
>In article <JOHNS.93Jul13113229@cuba.gsfc.nasa.gov>, johns@cuba.gsfc.nasa.gov (Steve Johns) writes:
>> What is the maximum number of files (not versions) allowed under VMS in a
>> directory on a Files-11 disk?
>
>I'm not sure that an absolute number exists. However, DEC STRONGLY suggests
>that if the size of the directory file itself exceeds 1024 block, you
>will have LOADS OF PROBELSM.
Sorry, but the directory cache has a limit of 128 blocks per directory, not
1024. So if a DIR/SIZ *.DIR shows any directory larger than 128, you lose and
the slowdown is significant!
I would guess that this means about 1000 files, probably a bit less. It depends
on the length of the file names and the amount of empty space from deleted
files. Each file requires 12 bytes plus the number of characters in the file
name with extension. The "." counts.
Also, deleted files DON'T immediately give back their space from the directory.
The empty space accumulates at the end of each block. I'm not sure how smart
the file system is at combining mostly epty blocks, but I'm pretty sure that it
won't unless both are less than half full.
R. Kevin Oberman Lawrence Livermore National Laboratory
Internet: koberman@llnl.gov (510) 422-6955
Disclaimer: Being a know-it-all isn't easy. It's especially tough when you
don't know that much. But I'll keep trying. (Both)
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1993-07-14 22:57 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-07-13 15:32 Max number of files in a Directory? Steve Johns
1993-07-14 11:36 ` James F. Dunham
1993-07-14 16:58 ` Charles Mattair
1993-07-14 19:23 ` Gary Rice - x6322
1993-07-14 22:57 ` oberman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox