Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • Last Modified:

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

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
piedad
Asked:
piedad
1 Solution
 
edgarchisholmCommented:
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
 
piedadAuthor Commented:
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now