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

addMultipleToStore(): Move pathsToCopy (backport #12296) #12300

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jan 20, 2025

Motivation

This allows RemoteStore::addMultipleToStore() to free the Source objects early (and in particular the associated sinkToSource() buffers). This should fix #7359. For example, memory consumption of

$ nix copy --derivation --to ssh-ng://localhost?remote-store=/tmp/nix --derivation --no-check-sigs \
    /nix/store/4p9xmfgnvclqpii8pxqcwcvl9bxqy2xf-nixos-system-...drv

went from 353 MB to 74 MB.

This fix is an alternative to (or in addition to) #12255.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.


This is an automatic backport of pull request #12296 done by [Mergify](https://mergify.com).

This allows RemoteStore::addMultipleToStore() to free the Source
objects early (and in particular the associated sinkToSource()
buffers). This should fix #7359. For example, memory consumption of

  nix copy --derivation --to ssh-ng://localhost?remote-store=/tmp/nix --derivation --no-check-sigs \
    /nix/store/4p9xmfgnvclqpii8pxqcwcvl9bxqy2xf-nixos-system-...drv

went from 353 MB to 74 MB.

(cherry picked from commit cc838e8)
Co-authored-by: Robert Hensing <[email protected]>
(cherry picked from commit 2669e4a)
@mergify mergify bot added the merge-queue label Jan 20, 2025
@mergify mergify bot requested a review from Ericson2314 as a code owner January 20, 2025 14:18
@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Jan 20, 2025
Copy link
Contributor Author

mergify bot commented Jan 20, 2025

This pull request has been removed from the queue for the following reason: pull request dequeued.

Pull request #12300 has been dequeued. The pull request could not be merged. This could be related to an activated branch protection or ruleset rule that prevents us from merging. (detail: 2 of 4 required status checks are in progress.)

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.

If you want to requeue this pull request, you need to post a comment with the text: @mergifyio requeue

@edolstra edolstra merged commit c38234b into 2.25-maintenance Jan 20, 2025
21 of 23 checks passed
@edolstra edolstra deleted the mergify/bp/2.25-maintenance/pr-12296 branch January 20, 2025 15:26
@roberth roberth added the automatic backport This PR is a backport produced by automation (does not trigger backporting) label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automatic backport This PR is a backport produced by automation (does not trigger backporting) merge-queue store Issues and pull requests concerning the Nix store
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants