LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-08-2006, 09:36 AM   #1
dunocom
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
number of files in linux system in one directory


i run a wiki related project at duno and i was wondering how many directories with entries i can have
in one single directory. Or should i design this differently?

thank you for your advice.
 
Old 12-08-2006, 01:13 PM   #2
LiamFromLeeds
Member
 
Registered: Dec 2006
Distribution: Arch
Posts: 44

Rep: Reputation: 15
I think the number of files you can have is limited to the number of inodes your filesystem supports and is on mount point by mount point basis. For ext2 I believe the limit is 10^18 and for reiser 2^32 (thats what wikipedia reckons anyway !!) I guess the point is that you're very unlikely to hit the limit.

Having said that, I've found that directories that have very large numbers of files in become diffecult to manage. Commands like 'ls' stop working becuase you have to many arguments and other commands take a long time to complete. I would therefore suggest trying to keep the number of files down to the hundreds rather than the thousands. Obviously this is just my opinion
 
Old 12-08-2006, 01:15 PM   #3
jxi
Member
 
Registered: Feb 2003
Location: Richmond VA
Distribution: Slackware 11 -- CentOS 4.4
Posts: 115

Rep: Reputation: 15
what file system? something tells me reiserfs is best for what you're doing, in which case look at:
http://www.namesys.com/faq.html

(Link thanks to this thread):
http://www.linuxquestions.org/questi...d.php?t=254706
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Number of files in directory bullium Linux - General 13 08-31-2011 08:50 AM
Maximum number of files in a directory neranjana General 14 05-13-2010 01:33 PM
Upper limit on number files in a directory? Peufelon Linux - Desktop 1 10-15-2006 01:34 AM
finding number of files in a directory pantera Programming 2 08-20-2004 10:17 AM
finding the number of files in each directory ridertech Programming 1 06-02-2004 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration