ADSM-L

Re: Maximum number of files in a directory ?

1999-07-22 08:35:48
Subject: Re: Maximum number of files in a directory ?
From: Richard Sims <rbs AT BU DOT EDU>
Date: Thu, 22 Jul 1999 08:35:48 -0400
>Is it because of the number of files in the directory?
>Is there a limitation?

Old issue that keeps coming up...
Conventional directories are simply flat, sequential files which contain
a list of file names which cross-reference to the physical data on the
disk.  As primitive data structures, directories impede performance, as
lookups are serial, take time, and involve lockouts as the directory may
be updated.  As everyone finds, on multiple operating systems, the more
files you have in a directory, the worse the performance for anything in
your operating system going after files in that directory.

The gross rule of thumb is that about 1000 files is about all that is
realistic in a directory.  Use subdirectories to create a topology which
is akin to an equilateral triangle for best performance.
     Richard Sims, BU
<Prev in Thread] Current Thread [Next in Thread>