Skip to content

tarball cache pathologically slow if ~/.cache is on NFS #11998

Open
@srd424

Description

Describe the bug

This might be considered not to be a perf regression worth worrying about, but I upgraded an environment yesterday to 24.11, which pulled in nix 2.24.10 (was previously 2.18.) I then used npins to update a shell environment, and then ran nix-shell to enter it.

At that point I got the new unpacking 'https://releases.nixos.org/nixos/24.11/nixos-24.11.xxxxxxx.yyyyyyyyyyyy/nixexprs.tar.xz' into the Git cache... message .. and then the command took a further 30-40 minutes to complete.

A bit of investigation with strace etc and it appears that the problem was that my home directory was on NFS, which included (at that point) ~/.cache. Moving the cache directory to a VM-local ext4 filesystem resulted in the fetch/unpack taking only a few seconds, as expected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions