Local rsync and cp is very slow compared to SMB

  • Hello there!


    I am doing some testing of OMV before using it as my main NAS OS. The hardware is an ODROID HC1 with a 2.5" WD SATA drive.


    I am having a strange issue (at least it seems strange to me). I was testing the USB Backup plugin and the speeds were very underwhelming. Backing up a 5 GB share took roughly 15 minutes, equating a transfer rate of around 5 MB/s. I suspected that the problem might be related to the plugin itself, and therefore did some tests using plain rsync and cp to transfer files between the internal SATA drive and an attached USB thumb drive. The results are still disappointing:



    As you can see, it starts out great. Then (I guess) some kind of write buffer gets filled up and performance takes a dive... It is almost as if it was buffering the transfer on the SD card that I use for OMV itself, although I think that I've been able to rule that option out by monitoring the disk usage during transfer.


    My initial reaction was that this was just down to poor USB performance of the HC1 itself, but when I transfer files over the network to/from an SMB share on the thumb drive, I get reasonable USB 2 speed (~25 MB/s).


    Any ideas?



    Sorry If this thread went into the wrong forum category! Feel free to move it :)

    • Offizieller Beitrag

    What filesystem are you using on the HDD and the thumb drive? If any is NTFS, FAT32 or exFAT (windows native filesystems), then try with EXT4 or some other Linux native filesystem. Seriously!


    Also remember that the USB port in the HC1 is USB2, not USB3. Use it for removable backup media. Don't use it for a shared folder on a data drive. Get a bigger HDD instead.

    Be smart - be lazy. Clone your rootfs.
    OMV 5: 9 x Odroid HC2 + 1 x Odroid HC1 + 1 x Raspberry Pi 4

  • I was using BTRFS for the HDD and ext4 for the flash drive. Changed to ext4 on both and there is a noticeable difference. Transfers from USB to HDD now running at more than 20 MB/s and to the flash drive at ~10 MB/s, which is acceptable (although still somewhat disappointing).


    Seems like there was quite a performance penalty when transferring from one type of file system to another...


    Also, the USB port will of course only be used for offline backups. The SMB share was just for testing.


    Anyway, thanks for the suggestion!




    Edit:
    After some additional testing, it seems that the present ~10 MB/s cap is due to the USB 2 performance of the flash drive. So I guess that we could say, with quite certainty, that my initial problem was due to using two different file systems, and that I will probably experience full USB 2 speed as long as the drives involved are fast enough.


    Will try to remember to post an update once I get hold of a faster external drive.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!