Solved

Linux: Red Hat Fedora Core 4: Directory Limit

Posted on 2006-10-19
3
247 Views
Last Modified: 2013-12-06
I know this question has been asked before but I could find no definitive answer...

I have a dedicated server setup by a hosting company.

I wrote a program that dumps up to 8 files in a directory. The files are no more than 100k each. Some dirs have more, some less. I reached about 2000 subdirectories in a directory when I was unable to write any more data. I had to purge part of the directory to write new data.

Is there a 'default' directory or file count limit for this OS?
0
Comment
Question by:Bob-Villa
3 Comments
 
LVL 14

Expert Comment

by:ygoutham
ID: 17771862
i think the number of subdirectories runs much higher than 2000. the number should be somewhere in the region of 32k to 64k. am not sure on this.  read somewhere that is the number supported by a "ext2".  but since we are now in ext3/reiser the number should only be higher.

i could also be wrong.  it might also be files + sub-dir = 32k.  i hope that the disk had sufficient space left???

goutham
0
 
LVL 43

Accepted Solution

by:
ravenpl earned 125 total points
ID: 17771868
> Is there a 'default' directory or file count limit for this OS?
There is no such limit. It's only performance limit.

But there is a limit on number of files per whole filesystem. You can check the limit and current usage with
df -i

Also, what was the errormessage while file creation failed?
0
 
LVL 1

Author Comment

by:Bob-Villa
ID: 17798682
it is ext3. with your hints was able to find more info. Split up the directories into 4 subs and everything worked out fine. Thanks.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now