Re: File limit inside a single directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



We started to have problems in our testing around 15M entries in one directory (depends on hashing, add/remove cycles), but 10-12M entries is probably safe unless the filenames are long (e.g. above 32 chars). 

Cheers, Andreas

> On Feb 12, 2015, at 12:35, Eric Sandeen <sandeen@xxxxxxxxxx> wrote:
> 
>> On 2/12/15 1:16 PM, suntrop@xxxxxx wrote:
>> Hello, i’m using a CMS which puts many files inside a single
>> directory. I’m wondering what the maximum number of files is which
>> can reside inside said directory. Is there a number which should not
>> be exceeded on account of performance reasons e.g. Is there a
>> difference between ext3 and ext4?
>> 
>> Thanks!
> 
> for htree directories, you will be limited by the max size of the tree, which currently is of limited depth.  That limit then depends on block size and filename lengths.
> 
> for 4k blocks, and 40 char names, you max out at around 20 million directory entries, if my old spreadsheet is still correct.
> 
> That limit is the same for ext3 and ext4.
> 
> performance-wise, to be honest, I'm not sure.  how many inodes are you talking about?
> 
> -Eric
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux