LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-18-2006, 03:39 AM   #1
Nr18
LQ Newbie
 
Registered: Jul 2006
Location: Wormer
Distribution: CentOS, Mac OS X
Posts: 15

Rep: Reputation: 0
Partition limitations


Hi,

I have a EXT3 partition with a resource directory and in that directory ar a lot of file's and it's groing each and every day.

Now is my question is there a limit on linux partitions like you can only store x amount of files in one directory?

Thanx,

Nr18
 
Old 07-18-2006, 03:49 AM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
i think ext3 can handle that just fine, i think there is a limit on file size (large single files) there is a new version of the extended file system in the works (ext4) that makes handleing files better.

i have some accounting software and instead of letting the database file get too large i made 12 directories (folders) and named them for each month of the year and every month i put the database file in its correct directory and start a new one, next year i will make another 12 and put them in another directory named 2007, another benefit is the software i use runs better without having a huge single file to deal with.
 
Old 07-18-2006, 04:37 AM   #3
Nr18
LQ Newbie
 
Registered: Jul 2006
Location: Wormer
Distribution: CentOS, Mac OS X
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Okie
i think ext3 can handle that just fine, i think there is a limit on file size (large single files) there is a new version of the extended file system in the works (ext4) that makes handleing files better.

i have some accounting software and instead of letting the database file get too large i made 12 directories (folders) and named them for each month of the year and every month i put the database file in its correct directory and start a new one, next year i will make another 12 and put them in another directory named 2007, another benefit is the software i use runs better without having a huge single file to deal with.
Thanx Okie,

i've only got file's of 2 a 3 mb so the size won't be the problem. i'm worried about the amount of file's in a single directory but by your reaction i think that won't be the problem!

https://www.redhat.com/archives/ext3.../msg00227.html
http://en.wikipedia.org/wiki/Ext3

For the people how want to now more

Last edited by Nr18; 07-18-2006 at 04:58 AM.
 
Old 07-18-2006, 05:06 AM   #4
jf.vdbosch
LQ Newbie
 
Registered: Feb 2006
Location: Netherlands
Distribution: Mint 17 mate
Posts: 18

Rep: Reputation: 0
You should look up the amount of free nodes on the partition.

df -i /target

That (besides diskspace) limits the amount of files that can be created on a partition.

Regards, Hans.
 
Old 07-18-2006, 06:18 AM   #5
Nr18
LQ Newbie
 
Registered: Jul 2006
Location: Wormer
Distribution: CentOS, Mac OS X
Posts: 15

Original Poster
Rep: Reputation: 0
I've got this:
Code:
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/md2             14745600  368537 14377063    3% /
so how many file's can i store then? and is this for your total os? or is it for one directory?
 
Old 07-18-2006, 07:16 AM   #6
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
If it lists the amount of free inodes for the partition, then presumably the limitation will be for the partition. Note that the number of inodes limits the number of directories and files together. This seems unimportant in your case though since you seem to have far more files than directories.

The implication seems to be that you can have an unlimited number of files in a directory. There may be practical limits, though.
Quote:
> (9) In designing new systems, are there some useful guidelines
> about the maximum number of files that can exist in a single
> directory without significant performance loss?
> I am interested in ext2, ext3, and htree.

Non-htree gets awkward at a few thousand. htree appears to be OK up to
hundreds of thousands. Its practical scalability is unknown, really.
https://www.redhat.com/archives/ext3.../msg00061.html

I'm sure Google can tell you more.




The Wikipedia footnote says:
Quote:
The maximum number of inodes (and hence the maximum number of files and directories) is set when the file system is created. If V is the volume size in blocks, then the default number of inodes is given by V/2^{13}, and the minimum by V/2^{23}. The default was deemed sufficient for most applications.
By default your system would therefore have V/2^{13}, implying that you have a volume size of 14745600 * 2^{13} = 120,795,955,200 blocks. That seems like rather a lot.
 
Old 07-19-2006, 07:12 AM   #7
jf.vdbosch
LQ Newbie
 
Registered: Feb 2006
Location: Netherlands
Distribution: Mint 17 mate
Posts: 18

Rep: Reputation: 0
The number of inodes is determined when you create a filesystem on a partition.
inodes are used for files and directories (which are also files).
Thus the amount of inodes applies to the entire partition.

If you are planning on using large numbers of files, why not use reiserfs?
It is said that reiserfs is faster when it comes to large numbers of files.

Regards, Hans.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Traffic Limitations Equin Linux - Software 3 08-16-2005 02:06 PM
new user limitations Longinus Linux - Newbie 1 04-22-2004 03:02 AM
fedora limitations jdlin Fedora 5 03-22-2004 03:58 PM
mount point limitations in an extended partition code404 Linux - General 5 12-06-2002 02:33 PM
Partition limitations? x^n Linux - Newbie 1 05-11-2002 07:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:18 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