From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,1ec31da3fc1981bc X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2004-02-27 17:52:39 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!news.cpqcorp.net!53ab2750!not-for-mail From: Bob Harris Newsgroups: comp.unix.tru64 Subject: Re: No of files in a directory (performance) References: User-Agent: MT-NewsWatcher/3.3b1 (PPC Mac OS X) Message-ID: Date: Sat, 28 Feb 2004 01:41:44 GMT NNTP-Posting-Host: 16.115.198.137 X-Complaints-To: abuse@HP.com X-Trace: news.cpqcorp.net 1077932504 16.115.198.137 (Fri, 27 Feb 2004 17:41:44 PST) NNTP-Posting-Date: Fri, 27 Feb 2004 17:41:44 PST Organization: Hewlett-Packard Company Xref: archiver1.google.com comp.unix.tru64:11252 In article , 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