Are you running ‘ls’ or are you doing something like: 'getfattr -d -m 
ceph.dir.* /path/to/your/ceph/mount’ ?

—Lincoln

> On Sep 12, 2016, at 1:00 PM, Ilya Moldovan <il.moldo...@gmail.com> wrote:
> 
> Thanks, John
> 
> But why listing files in a directory with about a million files takes
> about 30 minutes?
> 
> Ilya Moldovan
> 
> 2016-09-08 20:59 GMT+03:00, Ilya Moldovan <il.moldo...@gmail.com>:
>> 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.
>> 
>> Thanks for the answers!
>> 
> _______________________________________________
> ceph-users mailing list
> ceph-users@lists.ceph.com
> http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to