From: oberman@ptavv.llnl.gov
Subject: Re: Max number of files in a Directory?
Date: Wed, 14 Jul 93 22:57:00 GMT [thread overview]
Message-ID: <2222vd$jtk@lll-winken.llnl.gov> (raw)
In-Reply-To: 1993Jul14.122318.1@wildr.ug.eds.com
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)
prev parent reply other threads:[~1993-07-14 22:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 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