LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 10-24-2012, 09:09 AM   #1
oads-linux-user
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Rep: Reputation: Disabled
Question Max. number of Files in Directory


Hi all,

We are novice and learning a lot with this Linux.
We have 2.6.30 version of Linux on our system.
And we have ext2 drive (1TB) which is attached to this system.

Application which runs on this system creates a new file every minute and stores 240MB of data per minute in this file. We see that it creates 84 Files and after that it stops.

240MB * 84 = 19.2GB

Is this the limitation of the ext2 or is there something we are doing wrong ?

Thanks.
 
Old 10-24-2012, 09:42 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,694

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Welcome to LinuxQuestions

What distribution/version are you running? 2.6.30 is just the kernel.

Post the output of the command dumpe2fs /dev/hdxy (where hdxy is the actual device ID of your drive). When creating lots of small files the typical problem is running out of inodes. How many files already exist on the drive?

According to wikipedia the max number of files is 10^18 but it also states that the theoretical limit on the number of files in a directory is 1.3 × 10^20

Last edited by michaelk; 10-24-2012 at 09:47 AM.
 
Old 10-24-2012, 12:40 PM   #3
oads-linux-user
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Question

Hi Michael,
Thanks for the reply.
There are no files in drive. It is empty.

dumpe2fs 1.41.11 (14-Mar-2010)
Filesystem volume name: logger
Last mounted on: <not available>
Filesystem UUID: b87e98d5-4802-40d5-9a43-832d5ce809c7
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: ext_attr resize_inode dir_index filetype sparse_super large_file
Filesystem flags: signed_directory_hash
Default mount options: (none)
Filesystem state: not clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 61054976
Block count: 244190000
Reserved block count: 12209500
Free blocks: 230485972
Free inodes: 61054795
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 965
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8192
Inode blocks per group: 512
Filesystem created: Tue Oct 23 15:51:12 2012
Last mount time: Thu Jan 1 00:00:28 1970
Last write time: Thu Jan 1 22:09:35 1970
Mount count: 3
Maximum mount count: 35
Last checked: Tue Oct 23 15:51:12 2012
Check interval: 15552000 (6 months)
Next check after: Sun Apr 21 15:51:12 2013
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 28
Desired extra isize: 28
Default directory hash: half_md4
Directory Hash Seed: c2c829c0-9d41-fd08-18c1-72b84b2b95f7
 
Old 10-25-2012, 04:01 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,694

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Nothing seems obviously wrong except for the not clean status. Is the partition actually being mounted?
 
Old 10-25-2012, 08:24 AM   #5
oads-linux-user
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
Question

Yes, the drive is mounted. And we are able to create 85 files. I can see them on the drive.
after the test.

Thanks
 
Old 10-25-2012, 08:50 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,694

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Just out of curiosity post the output of the command (as root)
fdisk -l
 
  


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
max number of files that can be stored in a file system Marty21 Linux - Kernel 8 01-14-2009 08:29 AM
PAM not working to set max number of files jmain_314159 Linux - General 0 05-16-2007 10:55 AM
how do you determine the max number files can be stored in a single directory on the genux33 Linux - General 2 12-13-2005 05:40 PM
SAMBA 3.04 - Max Files Per Directory? soopafresh Linux - Networking 0 11-29-2004 08:44 PM
max number of files on ext2 ext3? tim1235 Linux - Newbie 5 10-17-2004 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 11:06 AM.

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