Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.23-maintenance] Increase download buffer size and improve tarball import logging #11214

Merged
merged 4 commits into from
Jul 29, 2024

Conversation

github-actions[bot]
Copy link

Automatic backport to 2.23-maintenance, triggered by a label in #11171.

(cherry picked from commit caf4e98)
We are piping curl downloads into `unpackTarfileToSink()`, but the
latter is typically slower than the former if you're on a fast
connection. So the download could appear unnecessarily slow. (There is
even a risk that if the Git import is *really* slow for whatever
reason, the TCP connection could time out.)

So let's make the download buffer bigger by default - 64 MiB is big
enough for the Nixpkgs tarball. Perhaps in the future, we could have
an unlimited buffer that spills data to disk beyond a certain
threshold, but that's probably overkill.

(cherry picked from commit 8ffea0a)
(cherry picked from commit f6a9a71)
This happens in parallel with the download (which starts later), so
you only see this message when the download has finished but the
import hasn't.

(cherry picked from commit 01839b5)
@edolstra edolstra closed this Jul 29, 2024
@edolstra edolstra reopened this Jul 29, 2024
@edolstra edolstra enabled auto-merge July 29, 2024 13:09
@github-actions github-actions bot added the fetching Networking with the outside (non-Nix) world, input locking label Jul 29, 2024
@edolstra edolstra merged commit 9297d92 into 2.23-maintenance Jul 29, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fetching Networking with the outside (non-Nix) world, input locking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant