dragonscave.space is one of the many independent Mastodon servers you can use to participate in the fediverse.
A fun, happy little Mastodon/Glitch instance.

Server stats:

242
active users

Public

I hate the way doing large #rclone syncs from slow cloud providers slows my entire #debian machine to a crawl, but because of the way iowait works and how rclone works, I don't think there's a good way around it? Has anyone found anything I missed?

Public

@fastfinge possibly use a ram disk as the local end? haven't tried it though

Public

@ireneista Isn't the issue caused by how slow the remote end is, though? Because Rclone is pretending to be a filesystem, so the kernel slows IO down because it's constantly waiting for data from rclone. So writing to disc isn't the actual bottleneck.

Public

@fastfinge @ireneista I can't put my finger on why, but this doesn't sound quite right. If you're syncing data down from a remote with the sync command, that's just a bulk download as many apps carry out. Why would your wider system delay I/O because of an expectation of some files being written to? And I didn't follow the "pretending to be a filesystem" bit.

Public

@jscholes @ireneista So my understanding is that rclone mounts the cloud using fuse, then treats it as a virtual filesystem. So when sync is touching files to get time/date/size etc, you get high iowait, slowing the entire system.

Public

@fastfinge That's what `rclone mount` does, not `rclone sync`. If you're using the latter, you can tweak it quite a bit, including telling it to sequence checks, transfers then deletions, instead of mixing them all together. If you're using the former to sync your files, I wouldn't. @ireneista

Public

@jscholes @ireneista I'm using rclone sync to move a little over 900 gigs, of files between 20 kb and 5 mb in size. It's nowhere near maxing out CPU, bandwidth, or memory. But it brings the server to its knees anyway. Anything other than rclone that wants to do any IO takes multiple seconds.

Public

@jscholes Nope! Debian 12 directly installed on a server right here beside me. It's on 3 gig symmetrical fiber, with 64 gigs of ram, and a quad-core AMD CPU.

Public

@fastfinge Interesting. What's the Rclone command line invocation you're using?

Public

@jscholes rclone sync --interactive icloud /Family/backups:/mnt/backups

Public

@jscholes The destination disc is a solid state NVME drive.

Public

@fastfinge You mentioned it's a quad core CPU, but do you know how many threads it has?

Public

@jscholes I do not. At least, not off the top of my head.

Public

@jscholes However, I do know that stuff that doesn't need to read or write to the filesystem is just fine. Like, there's no lag typing into SSH. But if I try to write to a file, then there is.

Quiet public

@fastfinge @jscholes What happens if you tell it to use idle I/O priority? ionice -c 3 rclone sync

Public

@fastfinge Is this an initial sync, or an update to a previous one? And if the latter, do you happen to remember if the slowdowns happened when initially downloading the files to an empty local destination?

Public

@jscholes This is initial. Destination started off completely empty.

Public

@jscholes Also, apparently I was wrong about the CPU. according to lscpu:
Thread(s) per core: 2
Core(s) per socket: 6
Socket(s): 1