lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 12 Feb 2015 13:35:45 -0600
From:	Eric Sandeen <sandeen@...hat.com>
To:	suntrop@....de, linux-ext4@...r.kernel.org
Subject: Re: File limit inside a single directory

On 2/12/15 1:16 PM, suntrop@....de 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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ