What could be reasons for my rsync, which is syncing two remote servers through ssh, to slow down over time like this? It keeps happening. How to check what is the bottleneck?

  • Eager Eagle@lemmy.world
    link
    fedilink
    English
    arrow-up
    30
    ·
    edit-2
    2 years ago

    Bandwidth (disk and network) is just one metric. Could it be an increase in number of IOPS due to syncing several small files?

  • Unyieldingly@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    2 years ago

    Use a VPN to check for a bottleneck, my ISP will cap my downloads from Steam to 10MB/s with a shitty VPN i get 25+MB/s.

  • CbtB@lemmynsfw.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    If there is latency look at optimization around your tcp window scaling settings.

  • sbonds@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    I’ve had some luck establishing the bottleneck using strace on both the sender side and receiver side. This will show if the sending rsync is waiting on local reads or remote writes and if the receiving rsync is waiting on network reads or local writes.

    This helps find the specific resources to check.

  • NeoNachtwaechter@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    11
    ·
    edit-2
    2 years ago

    Humans slow down over time. Computers slow down over time.

    Since we don’t know any more details, I put my $.02 on a cheap plastic router that wants to get rebooted sometimes.