You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Measure the download time of a mainnet Cardano database with IPFS on dev-mainnet #3608
Each archive retrieved from IPFS pays a provider lookup before the transfer starts, and a mainnet Cardano database has thousands of immutable archives, so we do not know yet whether the total download time is acceptable for mainnet.
What
Measure the download time of a mainnet Cardano database from IPFS on the dev-mainnet network, compare it with the cloud storage download, and identify a strategy to reduce it if needed.
How
Enable IPFS on the dev-mainnet network and wait for the immutable archives to be uploaded to IPFS
changed the title [-]Estimate the download time of a mainnet Cardano database with IPFS[/-][+]Measure the download time of a mainnet Cardano database with IPFS on `dev-mainnet`[/+]on Oct 27, 2026
The latest dev-mainnet Cardano database (9,332 immutable files, 65 GB of archives, 237 GB unpacked) was downloaded with the unstable client on a ~565 Mbit/s link (~71 MB/s), with a fresh Kubo v0.43.1 client node per IPFS run (3 runs per configuration, download step only).
Source
Average download time
Throughput
Cloud storage
15 min 15 s
~71 MB/s
IPFS, client Kubo over TCP, aggregator + 3 replicas
17 min 0 s
~63 MB/s
IPFS, client Kubo over TCP, aggregator only
21 min 22 s
~52 MB/s
IPFS, client Kubo with default transports (QUIC)
65 min 21 s
~17 MB/s
Client Kubo node resource
IPFS over TCP
Memory (max)
~1.1 GiB
CPU (average)
100 to 200%
Datastore (max)
~60 GB
Findings
The cloud storage download saturates the link. The verification takes ~5 min whatever the source.
With its default transports, the client Kubo node is capped at ~27 MB/s by QUIC, which gets a 416 KiB UDP receive buffer instead of 7 MiB with the default Linux net.core.rmem_max. Disabling QUIC, WebTransport and WebRTC-Direct (TCP only, no root access needed) makes IPFS 3 times faster.
The client Kubo node keeps every downloaded block (~60 GB of temporary disk space, in spite of StorageMax) and announces them in the DHT.
The 5 s files/stat timeout of the client is too short: a single timeout trips the IPFS circuit breaker, which silently falls back to cloud storage for all the remaining files. With a timeout of 10 s, a full download over TCP fetched every file from IPFS (slowest files/stat 6.39 s), so 10 s is a safe enough value.
Tuning the Bitswap server of the serving Kubo nodes speeds up a single replica from 45.4 MB/s to 54.0 MB/s.
Next steps
Set the files/stat timeout of the client to 10 s.
Refactor the IPFS circuit breaker: trip at once on a connect error, fall back to cloud storage for one file on a timeout and trip only after consecutive timeouts, and report the fallback to the user.
Apply the Bitswap tuning to the aggregator Kubo node and to the replica guide.
Load test the serving nodes with many concurrent clients from several machines.
Activity
[-]Estimate the download time of a mainnet Cardano database with IPFS[/-][+]Measure the download time of a mainnet Cardano database with IPFS on `dev-mainnet`[/+]jpraynaud commentedon Oct 29, 2026
Summary
The latest
dev-mainnetCardano database (9,332 immutable files, 65 GB of archives, 237 GB unpacked) was downloaded with theunstableclient on a ~565 Mbit/s link (~71 MB/s), with a fresh Kubov0.43.1client node per IPFS run (3 runs per configuration, download step only).Findings
net.core.rmem_max. Disabling QUIC, WebTransport and WebRTC-Direct (TCP only, no root access needed) makes IPFS 3 times faster.StorageMax) and announces them in the DHT.files/stattimeout of the client is too short: a single timeout trips the IPFS circuit breaker, which silently falls back to cloud storage for all the remaining files. With a timeout of 10 s, a full download over TCP fetched every file from IPFS (slowestfiles/stat6.39 s), so 10 s is a safe enough value.Next steps
files/stattimeout of the client to 10 s.