Moving multiple files within a share is very slow = SMB/BTRFS file fast clone enabled?

  • Hi


    When I do this with a Windows-hosted share the move operation is pretty much instant. However when I do the same move operation within an OMV-hosted share on BTRFS it takes a long time. It doesn't appear to be copying the file to/from the client since the NIC util doesn't appreciably increase. iperf3 to/from the OMV box is >800Mbps i.e. as expected for GigE.


    The Explorer progress bar looks odd too:
    - there is no file transfer speed indicated

    - 'Time remaining' permanently says "Calculating"

    - it seems to be doing the entire file move operation in multiple file batches, since the 'Items remaining' count cycles though multiple iterations of increasing, decreasing, increasing etc.

    AD_4nXd3NTWZQALXWeM3P9HfeieVok6rs66wa4FuFpFu57uPcnareXLLvo1axMo86dylqy_gTQonJdz_v9ef_3oaC6_Ib7EjTg15H-DCg3NwayHA9VzDdq7svKEmuL7e33J6k3CXCXg4?key=bAVHT7jUzwvFtVCdI7fFFphp


    All rather odd. In case it's relevant I note that BTRFS has an option called "file fast clone" that SMB supports but I've no idea how that option may be set.


    Any ideas how to diagnose this?

  • AFAIK the term "file fast clone" is used by Synology in connection with their non-std implementation of BTRFS. On OMV there is nothing to set as CIFS/SMB shares are configured to use the SAMBA "vfs-btrfs" object under the hood ( https://www.samba.org/samba/do…man-html/vfs_btrfs.8.html) so already supports so-called "clone copy" (a.k.a BTRFS cp --reflink ).


    IIRC, Reflinking files can cross subvolumes on the same filesystem but not cross between different filesystems. So whether you benefit from this depends on how your BTRFS backed shared folders are set up .

  • Tx for the info. I tested file moves within shares on BTRF and NTFS on another OMV system and they were indeed very quick, confirming what you said.


    So at first it appeared that the issue seemed to be related to OMV on my RPi. Though its drive is connected via a USB dock the normal file perf has been fine. So I pulled the drive out and connected it via SATA to my Xeon OMV server - and the intra-share file move perf problem is still present! Ho hum.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!