Re: Infernalis, cephfs: difference between df and du

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

 






Gregory Farnum – Thu., 21. January 2016 4:02
On Wed, Jan 20, 2016 at 6:40 PM, Francois Lafont <flafdivers@xxxxxxx> wrote:
> Hi,
>
> On 19/01/2016 07:24, Adam Tygart wrote:
>> It appears that with --apparent-size, du adds the "size" of the
>> directories to the total as well. On most filesystems this is the
>> block size, or the amount of metadata space the directory is using. On
>> CephFS, this size is fabricated to be the size sum of all sub-files.
>> i.e. a cheap/free 'du -sh $folder'
>
> Ah ok, interesting. I have tested and I have noticed however that size
> of a directory is not updated immediately. For instance, if I change
> the size of the regular file in a directory (of cephfs) the size of the
> size doesn't change immediately after.

It's updated lazily so it's not instantaneous, but it should be pretty
fast. Probably within 30 seconds, and usually a lot less.
-Greg


I recently reported on this list an issue with tar reporting a file as changed[1], is this the same phenomenon?

Thomas HAMEL

1: http://article.gmane.org/gmane.comp.file-systems.ceph.user/26594

_______________________________________________
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