"guix gc" needs free disk space to function

  • Open
  • quality assurance status badge
Details
3 participants
  • Ludovic Courtès
  • Nathan Dehnel
  • Vincent Legoll
Owner
unassigned
Submitted by
Nathan Dehnel
Severity
important
Merged with
N
N
Nathan Dehnel wrote on 16 Dec 2020 07:36
(name . Tobias Geerinckx-Rice via Bug reports for GNU Guix)(address . bug-guix@gnu.org)
CAEEhgEs98HiGKE2QPee09M0VnpvgnqD840V_wkV8bukrLw_+WA@mail.gmail.com
It would be better if guix gc could run on a disk that was completely
full, as right now it cannot be used to free space on a full disk.
L
L
Ludovic Courtès wrote on 22 Dec 2020 15:37
(name . Nathan Dehnel)(address . ncdehnel@gmail.com)(address . 45266@debbugs.gnu.org)
875z4t29g6.fsf@gnu.org
Hi,

Nathan Dehnel <ncdehnel@gmail.com> skribis:

Toggle quote (3 lines)
> It would be better if guix gc could run on a disk that was completely
> full, as right now it cannot be used to free space on a full disk.

The daemon reserves a bit of extra space before starting operation (see
‘reserve-space?’ in (guix store)), which should be enough to gracefully
handle situations where builds are filling the disk.

However, there can also be non-Guix processes filling the disk, to the
point where it’s completely full, and at that point sqlite3 (which the
daemon uses) may be unable to operate.

I’m afraid there’s little we can do in this case.

Thoughts?

Ludo’.
N
N
Nathan Dehnel wrote on 22 Dec 2020 19:05
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 45266@debbugs.gnu.org)
CAEEhgEvkaOhpBmR_SWrZyLG2MH7NO0JrWzNFEak=FAuxb6JQ0g@mail.gmail.com
Toggle quote (1 lines)
>The daemon reserves a bit of extra space before starting operation (see
‘reserve-space?’ in (guix store)), which should be enough to gracefully
handle situations where builds are filling the disk.

Toggle quote (1 lines)
>However, there can also be non-Guix processes filling the disk, to the
point where it’s completely full, and at that point sqlite3 (which the
daemon uses) may be unable to operate.

I didn't experience this. Guix pull filled the disk, which prevented
the gc from working. It's possible some other process was writing in
the background, but I had built an image which was almost completely
devoid of programs and services.

Toggle quote (4 lines)
>I’m afraid there’s little we can do in this case.

>Thoughts?

Copy the database into tmpfs temporarily?

On Tue, Dec 22, 2020 at 8:37 AM Ludovic Courtès <ludo@gnu.org> wrote:
Toggle quote (21 lines)
>
> Hi,
>
> Nathan Dehnel <ncdehnel@gmail.com> skribis:
>
> > It would be better if guix gc could run on a disk that was completely
> > full, as right now it cannot be used to free space on a full disk.
>
> The daemon reserves a bit of extra space before starting operation (see
> ‘reserve-space?’ in (guix store)), which should be enough to gracefully
> handle situations where builds are filling the disk.
>
> However, there can also be non-Guix processes filling the disk, to the
> point where it’s completely full, and at that point sqlite3 (which the
> daemon uses) may be unable to operate.
>
> I’m afraid there’s little we can do in this case.
>
> Thoughts?
>
> Ludo’.
L
L
Ludovic Courtès wrote on 16 Jan 2021 15:22
control message for bug #45266
(address . control@debbugs.gnu.org)
87eeilyna1.fsf@gnu.org
severity 45266 important
quit
L
L
Ludovic Courtès wrote on 16 Jan 2021 15:23
(address . control@debbugs.gnu.org)
87czy5yn90.fsf@gnu.org
merge 45266 41484
quit
V
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 45266@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 45266
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch