Max. number of Files in Directory
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 ?
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
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
Nothing seems obviously wrong except for the not clean status. Is the partition actually being mounted?
Yes, the drive is mounted. And we are able to create 85 files. I can see them on the drive.
after the test.
Just out of curiosity post the output of the command (as root)
|All times are GMT -5. The time now is 06:04 AM.|