Hi,
while comparing European S3 providers for our Seafile Pro 13.0.28 server (Go fileserver) we noticed that single-file upload speed via SeaDrive depends on one thing only: how fast the S3 backend acknowledges a block.
Measurements (PUT of 8 MiB objects = Seafile block size, from a Hetzner VM, same harness for all):
- IONOS (eu-central): 13–16 MB/s with 1 connection, 92 MB/s with 8, 171 MB/s with 16
- Hetzner Object Storage: 54 MB/s with 1 connection, 246 MB/s with 8, 416 MB/s with 16
At IONOS, sending 8 MiB takes ≈ 140 ms, the 200 OK comes ≈ 480 ms later. Bandwidth is not the limit, the acknowledgement per request is – and it scales almost linearly with parallel connections.
Why only SeaDrive is affected (from the sources):
- SeaDrive (
seadrive-fuse,src/http-tx-mgr.c): 3 upload threads, but each takes a whole file and sends its blocks sequentially over one connection. The fileserver writes each block to S3 before it answers (sync_api.go,putSendBlockCB), so the backend sees one request in flight per file. - Desktop sync client (
daemon/http-tx-mgr.c): 3 threads per block, so three blocks of the same file are in flight at once. - Web upload: temp file first, then indexing writes blocks to S3 with
max_indexing_threadsin parallel.
So with IONOS a large file goes at ≈ 13–16 MB/s via SeaDrive (≈ 70 s per GB), but roughly 3× that via the sync client or the browser.
Proposal: let SeaDrive send the blocks of one file over a few parallel connections, like the sync client already does (3 per file), ideally configurable (upload_block_threads in seadrive.conf). The server needs no change, it already handles concurrent block PUTs from the sync client. Neutral on low-latency backends, roughly 3× faster single-file uploads on most non-hyperscaler EU providers. If the macOS daemon shares the transfer code with seadrive-fuse, this looks like a contained change in http-tx-mgr.c. Happy to test a build on macOS and report numbers.
Environment: Seafile Pro 13.0.28, Go fileserver, S3 backend, SeaDrive 3.0.27 on macOS 27.0.1 (MacBook Pro 16", M1 Pro). Provider numbers and SeaDrive behaviour are measured; the sync-client figure is derived from the code, not benchmarked.
Thank you very much!