From: Bob Harris <harris@zk3.dec.com>
Subject: Re: No of files in a directory (performance)
Date: Sat, 28 Feb 2004 01:41:44 GMT [thread overview]
Message-ID: <harris-8A4C82.20384627022004@cacnews.cac.cpqcorp.net> (raw)
In-Reply-To: ff81d3b0.0402270129.205a3e@posting.google.com
In article <ff81d3b0.0402270129.205a3e@posting.google.com>,
paltskallen@hotmail.com (Fredrik) wrote:
> Hello!
>
> We have an application that creates and reads a lot of files.
> These files are splitted on 100 dirs. Currently there are ~70 000 files in
> each dir.
> Are there any limit that should be considered regarding to performance
> issues??
>
> Using advfs and san disks.
AdvFS in Tru64 UNIX v5.0 or later uses b-tree indexing for directory
access. While a huge directory does take slightly longer to create,
lookup, delete a file, it is _NOT_ linear. The performance is really
very good.
However, if you ask 'ls' to display all the files it will take a long
time to fetch all the files, then sort them, and then display them, but
if you use 'ls -f' it skips the sorting, which can make things faster.
Bob Harris
next prev parent reply other threads:[~2004-02-28 1:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-27 9:29 No of files in a directory (performance) Fredrik
2004-02-27 9:38 ` TyBreaker
2004-02-27 17:17 ` Peter da Silva
2004-02-28 1:41 ` Bob Harris [this message]
2004-03-03 15:26 ` Fredrik
2004-03-03 16:03 ` Bob Harris
2004-03-04 7:57 ` Fredrik
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