Solved

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

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

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
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.

757 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

17 Experts available now in Live!

Get 1:1 Help Now