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
Solved

Is there a limit to the number of directories/subdirectories/files in Unix?

Posted on 2000-04-04
2
456 Views
Last Modified: 2010-04-21
Is there a limit to the number of directories/subdirectories/files in Unix?  If so, what is it?
Is there a performance hit with more files in a directory?
0
Comment
Question by:piedad
2 Comments
 

Accepted Solution

by:
edgarchisholm earned 50 total points
ID: 2686273
Yes there is a limit to the number of files and subdirectories/directories.  It is the number of inodes allocated to a file system when that file system is created.  An inode maintains information about each file. Stuff like file permissions, link counts, owner, group ID, file size, access time, modification time etc... (up to 40 pieces of info). Typically you get about 128k inodes as a default in a linux system.  You can use df -i to check inode usage. Running out of inodes is akin to running out of disk space. With out a free inode you cannot create a file no matter how much physical disk space is available.
-ED
0
 

Author Comment

by:piedad
ID: 2686340
At 128k nodes, how many files or directories does this estimate to?  Does this apply to my entire UNIX installation?  If I use a virtually hosted machine, what are the implications?
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

839 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