Re: Large number of files in a directory

From: JOSEPH KREMBLAS (JKREMBLAS@REDHEARTGIFTS.COM)
Date: Sat Mar 27 2004 - 17:43:00 EST


Couple of questions:

        (1) Is this a local filesystem or an NFS-mounted directory?

        (2) What type of I/O requests are typically performed on the
files? Write? Read-Only? Read-Write?
        (3) What are you managing so many files in the first place?
        (4) Are you running AIX? LVM?
        (5) Are the files random files or user-generated files?
        (6) What's the business purpose of the files?

 -----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
Wesley Joyce
Sent: Saturday, March 27, 2004 1:45 PM
To: aix-l@Princeton.EDU
Subject: Re: Large number of files in a directory

Create a JFS2 based file system.

also try defragfs

At 03:00 PM 3/27/2004, you wrote:

Hello,<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" />

 We are experiencing a performance degradation when we have to manage a
directory with a large number of files (say, 20,000). I suppose this
happens because the file system has to make a linear lookup into the
directory to find a file name.

 Is there anything to tune to improve performance?

 Thanks

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.644 / Virus Database: 412 - Release Date: 3/26/2004


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:46 EDT