Re: CephFS and calculation of directory size

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

 



On Thu, Sep 8, 2016 at 6:59 PM, Ilya Moldovan <il.moldovan@xxxxxxxxx> wrote:
> Hello!
>
> How CephFS calculates the directory size? As I know there is two
> implementations:
>
> 1. Recursive directory traversal like in EXT4 and NTFS
> 2. Calculation of the directory size by the file system driver and save it
> as an attribute. In this case, the driver catches adding, deleting and
> editing files on the fly and changes the size of the directory. In this case
> there is no need recursive directory traversal.
>
> The directory which we are requesting a size can potentially contain
> thousands of files at different levels of nesting.
>
> Our components will call the the directory size using the POSIX API. The
> number of calls of this attribute is will be high and recursive directory
> traversal is not suitable for us.

CephFS does not calculate the recursive statistics (rstats) every time
you stat the directory -- accessing them is fast (although they are
updated a little bit lazily).

John

>
> Thanks for the answers!
>
> _______________________________________________
> ceph-users mailing list
> ceph-users@xxxxxxxxxxxxxx
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
>
_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux