LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 07-08-2004, 11:09 PM   #1
aig
LQ Newbie
 
Registered: Jun 2004
Location: Watertown, NY
Distribution: Gentoo Linux (Stage 1)
Posts: 5

Rep: Reputation: 0
Maximum Number of Directory Entries & Performance


Hi Everyone,

I was wondering if anyone knows if or what the maximum number of directory entries is on an ext3 filesystem. Is this a static value or calculated?

What happens to the read/write performance of a partition as the amount of directory entries increases?

I ask because I'm working with a team to develop a digital archive that will eventually hold thousands of assets. Thanks.

~AIG
 
Old 07-09-2004, 08:36 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Inodes are calculated, the number of inodes you are left with depend on:

- Partition size,
- blocksize,
- bytes/inode ratio.

Beside the partition size, most of the time you do not alter blocksize and b/i ration. Changing these can be a good idea if you already know if files written to this partition are small/big.
I.e. lots of files with a small size (say 2k) and a 'large' blocksize (say 8k) will have a 'negative' result because for every file written (2k) a size of 8K (blocksize) is allocated on disk. You cannot access the 6K that's 'empty'.

Take a look at the manpage for mke2fs for available options.

The number of inodes do not degrade the performance. If partitons are very large there could be a sligth decrease in performance due to the 'travel' the head(s) needs to do.

Besides inodes, there are a lot more things you need to think of when tuning a box. Here are just 2:
- Can hardware do simultanious reads/writes (ide/scsi/controller),
- I/O intens or CPU intens,

Some links that could be of interrest:
http://www.nyx.net/~sgjoen/disk.html
http://www.psc.edu/networking/perf_tune.html
http://edocs.bea.com/wls/docs81/perform/HWTuning.html

Hope this helps.

Last edited by druuna; 07-09-2004 at 08:37 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maximum number of files in a directory neranjana General 14 05-13-2010 02:33 PM
Maximum number of folders in slackware cereal83 Slackware 3 11-23-2005 09:24 PM
Maximum number of contacts in GAIM duffmckagan Linux - Software 7 08-01-2005 02:02 PM
What's the maximum number of users on Linux? Kaj Linux - Newbie 5 11-29-2004 03:35 AM
maximum number of HDs gr00ve Linux - Hardware 2 09-05-2004 07:43 AM


All times are GMT -5. The time now is 02:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration