Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

912 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

16 Experts available now in Live!

Get 1:1 Help Now