Link to home
Start Free TrialLog in
Avatar of RonaldMundell
RonaldMundell

asked on

Number of files in directory

Hi

I am currently working on a product where I am importing files into a database. The files are being placed in that directory faster than I can import it. If the files go past a couple of thousands say 2000, then the system slows down, thus I need to know if there are a max number of files per directory is before the performance will be affected. I need to know what the max value of files is.

I am currently running on Solaris 8. System hardware: 2gigs of Ram, dual P3 800Mhz Intel system
Avatar of ahoffmann
ahoffmann
Flag of Germany image

AFAIK there is no way to compute the **exact** amount of files allowed.
This depends on the filesystem, and the parameters used when it was created. The most important parameter is the number of inodes.
Use something like following to get the used parameters:

     mkfs -m /dev/dsk/c0t3d0s7

Then have a look at the nbpi= parameter, and check in the mkfs or newfs man-page how to interprete this value.
ASKER CERTIFIED SOLUTION
Avatar of chris_calabrese
chris_calabrese

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RonaldMundell
RonaldMundell

ASKER

Hi All

I have not forgotten you. I am out of the office until friday. Then I will look at this.

Thank you
No comment has been added lately, so it's time to clean up this Topic Area.
I will leave a recommendation for this question in the Cleanup topic area as follows:

- Answered by chris_calabrese

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster
Cleanup Volunteer
Per recommendation, force-accepted.

Netminder
EE Admin