Use a directory hierarchy. Even if the filesystem handles a flat structure effectively, userspace programs will choke on tens of thousands of files in a single directory. For example 'ls' will try to lexically sort its output (very slowly) unless given the command-line option not to do so. Sent from my iPad On May 7, 2012, at 3:58 AM, Hubert Kario <hka@xxxxxxxxxx> wrote: > I'm not sure about limits to size of directory, but I'd guess that going over > few tens of thousands of files in single flat directory will have speed > penalties -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
