Solved

Linux: Red Hat Fedora Core 4: Directory Limit

Posted on 2006-10-19
3
256 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

691 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