Lore bulk transfer underutilizes long-fat-network (LFN) paths
Context
First, thanks for Lore! Very cool project.
I've been evaluating Lore for large transfers over long-fat networks (LFN) as this is a common challenge for multi-national studios and/or distributed (remote first) game developers.
I've been testing with two well-resourced cloud VMs, London <-> Sydney (265 ms RTT), over the public internet.
My interest is how close Lore gets to the available bandwidth on a high RTT path.
What I'm seeing is that the default transfer leaves most of the path unused and the limit isn't the link or the client.
Good deployment architecture and scale can mitigate this however it is costly and can be burdensome.
Studios will often self-host (one central server) or have a few staff members / consultants that live internationally and deploying infrastructure just for them is an issue.
What I measured
- Binary: stock
lore 0.8.5-nightlywith no modifications - Payload: a single 2 GiB file.
- Method: wall-clock + kernel NIC byte counters for goodput/overhead;
mpstatfor CPU. Average (median) of 5× per direction, 5× for the iperf reference;net.core.{r,w}mem_max = 256 MiBon both ends.
Link ceiling (iperf3 TCP):
| parallel TCP streams | download | upload |
|---|---|---|
| 1 | 104 Mbps | 104 Mbps |
| 8 | 759 Mbps | 824 Mbps |
| 16 | 1474 Mbps | 1540 Mbps |
Lore, default settings:
| goodput (median of 5) | wire overhead | client CPU idle (4 vCPU) | sha256 | |
|---|---|---|---|---|
download (clone) |
~324 Mbps | ~7% | ~88% | 5/5 |
upload (commit) |
~347 Mbps | ~6–15% | ~86% | 5/5 |
Second environment: my residential workstation (remote contributor in Brisbane w/ 500/50 Mbps line), stock OS settings, to a single central server (London, ~294 ms RTT):
| goodput (median of 5) | % of line | wire overhead | sha256 | |
|---|---|---|---|---|
| download (2 GiB) | ~152 Mbps | 30% of 500 | ~7% | 5/5 |
| upload (2 GiB) | ~40 Mbps | 80% of 50 | ~150% (≈2.5× retransmit) | 5/5 |
The download story is the same on a smaller (residential) line.
However, the upload exposes a second, separate behaviour worth noting: on a thin uplink it fills the pipe but puts ~2.5× the payload on the wire. The default sender pacing sits far above the real uplink capacity, the WAN drops the excess, and QUIC retransmits so goodput "looks" acceptable while ~60% of transmitted bytes are waste. I know that BBR is still a WIP and final BBRv3 may resolve this.
Note that I can saturate both pipes in both directions with other technologies like IBM/Aspera FASP, tsunami-udp, multiple TCP channels.
Why this is a transfer-path limitation & not link or CPU
Three things are true at the same time during a default transfer:
- The link is ~78% empty. iperf3 sustains ~1.47 Gbps down / ~1.54 Gbps up across the same path in the same minutes; Lore uses ~22% of that.
- The client is ~88% idle — roughly half of one of four cores. So at default settings it is not crypto/hash/reassembly bounded.
- Lore still beats a single TCP flow (~324 vs ~104 Mbps), which lines up with its documented design of multiple bidirectional/multi-plexed streams over one QUIC connection.
N.B. Two observations:
- Multiplexing N streams over a single QUIC connection means they share one congestion controller, so the transfer behaves like one congestion-controlled flow. On a clean, low-RTT link that's fine but on a high-RTT path with some loss (e.g. public internet) it will plateau well below what multiple independent flows pull from the same pipe. I mention this only to explain why "more streams" inside Lore may not be the same lever as more connections. As lore fetches content-addressed, order-independent chunks it lends itself ESPECIALLY to parallelism.
Perforce added some features a few years ago to deal with this. However, I believe it sends each file over its own stream i.e, it does not chunk the files (I could be wrong).
- The download under-filling a fat high-RTT pipe may also be more due to the hard capped static flow-control window than to the congestion control algo:
The client window is (client.rs:712):
recv_window = send_window = (max_bytes_bandwidth_per_second / 1000) * expected_rtt_mswith compiled defaults (storage_service/client.rs:57, client.rs:73):
- MAX_BYTES_BANDWIDTH_PER_SEC = 1 GiB/8 = 134,217,728 B/s (i.e. assumes a 1 Gbit/s path)
- DEFAULT_EXPECTED_RTT_MS = 100 ms→ default window = ~13.4 MB, computed from an assumed 100 ms / 1 Gbps.
What I'm explicitly not claiming
I don't want to be prescriptive about the cause or the fix. I can think of several plausible directions:
- congestion-control (final BBR?) & window sizing
- connection-level parallelism (with the single-controller caveat above)
- An alternate bulk path (FASP-like algos)
Each has real trade-offs but The one thing I'm fairly confident of is the empirical result:
At default settings, Lore's bulk transfer does not match the path on a high-RTT LFN and under-fills a fat downlink.
As much as I'd love to see better bulk transport algos, QUIC is fantastic and mainstream so the cheap path is probably to just use connection level parallelism. Saturating links via multiple connections or bulk transport algorithms can be seen as anti-social to other traffic however in many cases this is exactly what teams want, especially considering how core VCS is to their business.
Scope (where this does and doesn't bite)
I want to be fair about deployment topology, because I think it explains why this may not have surfaced. The AWS reference architecture (and the terraform-aws-lore module) puts NVMe-cached edge pods close to clients, with the durable tier behind them. With that configuration, the client <-> server RTT is small, so a single QUIC connection's window fills the path easily, the edge cache + global dedup means most fragments never cross a long link, and the edge -> backend hops ride the cloud backbone. The "QUIC saturates the link" quote in the AWS article holds in this scenario.
The regime where the above measurements hurt is quite common:
- Remote-first / distributed teams. Individual contributors, publishers or partner firms (e.g. porting consultant? audio team?) on residential or co-working links connecting to a single central
loreserveracross long distances. This is arguably the default topology for the growing number of fully-remote studios, and it puts a real workstation directly on a high-RTT path. - On-prem / self-hosted single
loreserverserving a geographically distributed team. - Single-region cloud serving distant offices (e.g. artists in APAC, server in
eu-west). Deploying infra to serve a satellite office will be out of the question for many. Or even when they do, you want the syncing between them to be fast.
These are common for teams choosing Lore for cost, security, or existing-datacenter reasons and the edge-pod cache that hides this on AWS is exactly what they don't have.
Side note: AWS are absolutely brutal with the network throttling for many instances (burst credits), so some studios will choose to deploy on other providers like DigitalOcean who are much more liberal. However they're going to lose the cool terraform module and likely deploy simpler architectures.
Questions for maintainers
- Is LFN/high-RTT throughput an explicit goal for the QUIC storage path, or is the current behavior considered acceptable for the target deployments? I see that there is a todo:
// todo(plockhart) configure expected_rtt_ms based off latency to replication targetbut that may not resolve all our issues. - Is there a supported/documented client-side way to tune the transfer window that I missed? (I couldn't find one in the stock build.)
- Has the single-connection-multiplexing model already been discussed with respect to high-RTT paths — i.e. is this known territory or worth a deeper look? I see that some choices have been made to use CUBIC CCA (replica_factory.rs:169) in some cases and BBR in most so some thought must have been done.
Reproduction & environment
Two independent environments, same stock binary / default config:
- Cloud: 2× Digital Ocean Droplets, 4 vCPU / 8 GB, Ubuntu 24.04; London ⇄ Sydney; RTT ~265 ms; no shaping; 2 GiB payload; 5 reps/direction; link reference via
iperf3 -P{1,8,16}. Server in London, client in Sydney. - Residential: a 6-core desktop on a 500/50 Mbps home line to the same server; RTT ~294 ms; stock OS network settings (not tuned); 2 GiB download / upload; 5 reps/direction.
- Stock
lore 0.8.5-nightly(clean upstream build), default config, no special flags. - Goodput via kernel NIC byte counters; CPU via
mpstat; every transfer sha256-verified (download vs known hash, upload by clone-back). All passed.
AI assistance disclosure
Per the project's AI policy, this investigation and write-up were done with AI assistance (Opus 4.8 - high reasoning with opencode or claude). All commands were executed and all results (including sha256 verification) were checked by me. The measurements are real runs on real hosts.
Source: EpicGames/lore