[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <206078.1621264018@warthog.procyon.org.uk>
Date: Mon, 17 May 2021 16:06:58 +0100
From: David Howells <dhowells@...hat.com>
To: "Theodore Ts'o" <tytso@....edu>,
Andreas Dilger <adilger.kernel@...ger.ca>,
"Darrick J. Wong" <djwong@...nel.org>, Chris Mason <clm@...com>
cc: dhowells@...hat.com, linux-ext4@...r.kernel.org,
linux-xfs@...r.kernel.org, linux-btrfs@...r.kernel.org,
linux-cachefs@...hat.com, linux-fsdevel@...r.kernel.org
Subject: How capacious and well-indexed are ext4, xfs and btrfs directories?
Hi,
With filesystems like ext4, xfs and btrfs, what are the limits on directory
capacity, and how well are they indexed?
The reason I ask is that inside of cachefiles, I insert fanout directories
inside index directories to divide up the space for ext2 to cope with the
limits on directory sizes and that it did linear searches (IIRC).
For some applications, I need to be able to cache over 1M entries (render
farm) and even a kernel tree has over 100k.
What I'd like to do is remove the fanout directories, so that for each logical
"volume"[*] I have a single directory with all the files in it. But that
means sticking massive amounts of entries into a single directory and hoping
it (a) isn't too slow and (b) doesn't hit the capacity limit.
David
[*] What that means is netfs-dependent. For AFS it would be a single volume
within a cell; for NFS, it would be a particular FSID on a server, for
example. Kind of corresponds to a thing that gets its own superblock on the
client.
Powered by blists - more mailing lists