GNU bug report logs - #62379
/gnu/store/.links filling the hard drive on foreign distro

Previous Next

Package: guix;

Reported by: Elias Kueny <elias.kueny <at> posteo.net>

Date: Wed, 22 Mar 2023 13:03:02 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62379 in the body.
You can then email your comments to 62379 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#62379; Package guix. (Wed, 22 Mar 2023 13:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Elias Kueny <elias.kueny <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 22 Mar 2023 13:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Elias Kueny <elias.kueny <at> posteo.net>
To: bug-guix <at> gnu.org
Subject: /gnu/store/.links filling the hard drive on foreign distro
Date: Wed, 22 Mar 2023 10:48:04 +0000
Hello,

I'm using guix over a foreign distro (Ubuntu 22.04). I initially installed guix from the Ubuntu repositories (version 1.3.0-4), and updated as user with guix pull (work computer: I don't have root access to run the installer script).

The problem is the size of /gnu/store/.links: after garbage collection with "guix gc --delete-generations=1w", /gnu/store is 17.4 GB in total, and /gnu/store/.links is 14.5 GB (344120 items, ranging from 93 MB to 4.1 kB each). The garbage collector prints that "currently hard linking saves 3717.77 MiB".
With a 40GB hard drive, the gnu store regularly fills up all the available space if I'm not careful. I found from an old issue (https://issues.guix.gnu.org/24937#1) that 10 millions links should need around 700 MB, so this sounds like a bug.

After garbage collection, there are only 16 profiles left in /var/guix/profiles/per-user/ for my account: 2 for current-guix, 2 for guix-profile, and the rest for guix-home (where almost every program is installed), plus one guix shell profile I keep activated during gc to not uninstall it. I can't check for the root account, but I'm guessing it contains only the profile of the initial guix installation. There are no other users.

I tried uninstalling the original guix from the Ubuntu repositories in case the issue is due to some interference between it and the current guix I pulled as user, but /var/guix/daemon-socket/socket was gone with it, so I couldn't try to run the garbage collection.

Elias




Information forwarded to bug-guix <at> gnu.org:
bug#62379; Package guix. (Sat, 08 Apr 2023 21:13:02 GMT) Full text and rfc822 format available.

Message #8 received at 62379 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Elias Kueny <elias.kueny <at> posteo.net>
Cc: 62379 <at> debbugs.gnu.org
Subject: Re: bug#62379: /gnu/store/.links filling the hard drive on foreign
 distro
Date: Sat, 08 Apr 2023 23:12:42 +0200
Hi,

Elias Kueny <elias.kueny <at> posteo.net> skribis:

> The problem is the size of /gnu/store/.links: after garbage collection
> with "guix gc --delete-generations=1w", /gnu/store is 17.4 GB in
> total, and /gnu/store/.links is 14.5 GB (344120 items, ranging from 93
> MB to 4.1 kB each).

This is expected: /gnu/store/.links contains hard links to other files
in /gnu/store.  IOW /gnu/store/.links is a subset of the rest of
/gnu/store, sharing the same inodes.

> The garbage collector prints that "currently hard linking saves
> 3717.77 MiB".  With a 40GB hard drive, the gnu store regularly fills
> up all the available space if I'm not careful. I found from an old
> issue (https://issues.guix.gnu.org/24937#1) that 10 millions links
> should need around 700 MB, so this sounds like a bug.

Note that the issue you mention was addressed to a large extent in 2021:

  https://issues.guix.gnu.org/24937#20

HTH!

Ludo’.




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Sun, 07 May 2023 15:06:02 GMT) Full text and rfc822 format available.

Notification sent to Elias Kueny <elias.kueny <at> posteo.net>:
bug acknowledged by developer. (Sun, 07 May 2023 15:06:02 GMT) Full text and rfc822 format available.

Message #13 received at 62379-done <at> debbugs.gnu.org (full text, mbox):

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 62379-done <at> debbugs.gnu.org, Elias Kueny <elias.kueny <at> posteo.net>
Subject: Re: bug#62379: /gnu/store/.links filling the hard drive on foreign
 distro
Date: Sun, 07 May 2023 11:05:21 -0400
Hi,

Ludovic Courtès <ludo <at> gnu.org> writes:

> Hi,
>
> Elias Kueny <elias.kueny <at> posteo.net> skribis:
>
>> The problem is the size of /gnu/store/.links: after garbage collection
>> with "guix gc --delete-generations=1w", /gnu/store is 17.4 GB in
>> total, and /gnu/store/.links is 14.5 GB (344120 items, ranging from 93
>> MB to 4.1 kB each).
>
> This is expected: /gnu/store/.links contains hard links to other files
> in /gnu/store.  IOW /gnu/store/.links is a subset of the rest of
> /gnu/store, sharing the same inodes.
>
>> The garbage collector prints that "currently hard linking saves
>> 3717.77 MiB".  With a 40GB hard drive, the gnu store regularly fills
>> up all the available space if I'm not careful. I found from an old
>> issue (https://issues.guix.gnu.org/24937#1) that 10 millions links
>> should need around 700 MB, so this sounds like a bug.
>
> Note that the issue you mention was addressed to a large extent in 2021:
>
>   https://issues.guix.gnu.org/24937#20
>

Closing, as this is working as intended.  If you do not wish to use the
guix-daemon deduplication feature, you can provide it with the
'--disable-deduplication', with the caveat that your hard drive may be
filled even faster :-).

-- 
Thanks,
Maxim




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 05 Jun 2023 11:24:14 GMT) Full text and rfc822 format available.

This bug report was last modified 319 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.