all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#62379: /gnu/store/.links filling the hard drive on foreign distro
@ 2023-03-22 10:48 Elias Kueny
  2023-04-08 21:12 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Elias Kueny @ 2023-03-22 10:48 UTC (permalink / raw)
  To: 62379

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#62379: /gnu/store/.links filling the hard drive on foreign distro
  2023-03-22 10:48 bug#62379: /gnu/store/.links filling the hard drive on foreign distro Elias Kueny
@ 2023-04-08 21:12 ` Ludovic Courtès
  2023-05-07 15:05   ` Maxim Cournoyer
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2023-04-08 21:12 UTC (permalink / raw)
  To: Elias Kueny; +Cc: 62379

Hi,

Elias Kueny <elias.kueny@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’.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#62379: /gnu/store/.links filling the hard drive on foreign distro
  2023-04-08 21:12 ` Ludovic Courtès
@ 2023-05-07 15:05   ` Maxim Cournoyer
  0 siblings, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2023-05-07 15:05 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 62379-done, Elias Kueny

Hi,

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

> Hi,
>
> Elias Kueny <elias.kueny@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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-07 15:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-22 10:48 bug#62379: /gnu/store/.links filling the hard drive on foreign distro Elias Kueny
2023-04-08 21:12 ` Ludovic Courtès
2023-05-07 15:05   ` Maxim Cournoyer

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.