From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,caadcb121e776239 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-07-14 16:16:11 PST Path: gmd.de!newsserver.jvnc.net!howland.reston.ans.net!agate!ames!koriel!lll-winken.llnl.gov!usenet From: oberman@ptavv.llnl.gov Newsgroups: comp.sys.dec Subject: Re: Max number of files in a Directory? Date: Wed, 14 Jul 93 22:57:00 GMT Organization: Lawrence Livermore National Laboratory Message-ID: <2222vd$jtk@lll-winken.llnl.gov> References: ,<1993Jul14.122318.1@wildr.ug.eds.com> NNTP-Posting-Host: ptavv.llnl.gov In Article <1993Jul14.122318.1@wildr.ug.eds.com> system@wildr.ug.eds.com (Gary Rice - x6322) writes: >In article , 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)