this post was submitted on 17 Jan 2024
46 points (89.7% liked)

Selfhosted

60426 readers
249 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

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?

top 11 comments
sorted by: hot top controversial new old
[–] nevalem@programming.dev 34 points 2 years ago

You aren't giving us enough information to even speculate the answer. Are these Enterprise grade servers in a datacenter? Are these home made servers with consumer or low grade hardware you're calling servers? Are they in the same datacenter or do they go out to the Internet? What exists between the hops on the network? Is the latency consistent? What is the quality of both sides of the connection? Fiber? Wi-Fi? Mobile? Satellite?

Does it drop too nothing or just settle into a constant slower speed? What have you tried to trouble shoot? Is it only rsync or do other tests between the hosts show the same behavior?

Give us more and you might get some help. If these hosts are Linux I would start with iperf to do a more scientific test. And report to us some more info.

[–] eager_eagle@lemmy.world 30 points 2 years ago* (last edited 2 years ago) (1 children)

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

[–] Tangent5280@lemmy.world 1 points 2 years ago

yeah this is what i thought too. proliferation of small files.

[–] mvirts@lemmy.world 15 points 2 years ago (1 children)

It's always the disk cache

[–] eager_eagle@lemmy.world 10 points 2 years ago (1 children)

At ~5GB per HOUR? I don't think so

[–] surewhynotlem@lemmy.world 4 points 2 years ago

It's the floppy disk cache

[–] Unyieldingly@lemmy.world 8 points 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.

[–] Amity_Noceda@lemmy.world 8 points 2 years ago

Could be ISP throttling, at least that's my experience with cross-country data transfer

[–] CbtB@lemmynsfw.com 1 points 2 years ago

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

[–] sbonds@lemmy.world 1 points 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.