Solved

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

Posted on 2000-04-04
2
455 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

Gigs: Get Your Project Delivered by an Expert

Select from 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.

Question has a verified solution.

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

Suggested Solutions

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

813 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

18 Experts available now in Live!

Get 1:1 Help Now