Re: Filestore directory splitting (ZFS/FreeBSD)

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

 



On Tue, 18 Apr 2017, Willem Jan Withagen wrote:
> Hi,
> 
> I'm running some alrger tests with ceph-fuse on FreeBSD, and noticed
> that I start to run into directory splitting I think?
> I just Rsynced my full src and ports tree into it, which is like >
> 1.000.000 small files.
> At least I saw a rather large number of directories with relatively few
> files in them.
> 
> I know from UFS that large directories used to be a problem, although
> some of the issues on FreeBSD have been fixed long ago.
> 
> So can anybody explain the rationale behind this process and give a bit
> of a feeling why we start splitting at 320 files??

It actually has little to do with the underlying file system's ability to 
handle large directories.  Ceph needs to do object enumeration in sorted 
order (based on the [g]hobject_t sort order) and readdir return entries in 
a semi-random order based on how the fs is implemented.  We keep 
directories smallish so that we can list the whole directory, sort in 
memory, and then return the correct result.

sage


> FreeBSD's filestore runs of ZFS, and From waht I've seen thusfar is that
> ZFS has a different (better) behaviour with large directories.
> (I once ended up with > 1.000.000 security cam pictures in one
> directory, and that still was sort of workable.)
> 
> So has there been any testing to quatify the settings? And how would I
> be able to determine if ZFS deserves better/larger settings?
> 
> --WjW
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" 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 ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux