Re: Re: File limit inside a single directory

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

 



Thanks guys. I was afraid of having a couple 100K (at most). The server support team told me not to have more than 10 to 20K. There seems to be a misconception (for me and people from the CMS) about the 32K subdirectory limit, but this ins't for files/folders within a single directory but rather nested directories like /1/2/3.../32000

Again, many thanks!
 

Gesendet: Freitag, 13. Februar 2015 um 01:55 Uhr
Von: "Andreas Dilger" <adilger@xxxxxxxxx>
An: "Eric Sandeen" <sandeen@xxxxxxxxxx>
Cc: "suntrop@xxxxxx" <suntrop@xxxxxx>, "linux-ext4@xxxxxxxxxxxxxxx" <linux-ext4@xxxxxxxxxxxxxxx>
Betreff: Re: File limit inside a single directory
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