unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#45266: "guix gc" needs free disk space to function
@ 2020-12-16  6:36 Nathan Dehnel
  2020-12-22 14:37 ` Ludovic Courtès
  2021-03-12  4:56 ` Vincent Legoll
  0 siblings, 2 replies; 4+ messages in thread
From: Nathan Dehnel @ 2020-12-16  6:36 UTC (permalink / raw)
  To: 45266

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.




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

* bug#45266: "guix gc" needs free disk space to function
  2020-12-16  6:36 bug#45266: "guix gc" needs free disk space to function Nathan Dehnel
@ 2020-12-22 14:37 ` Ludovic Courtès
  2020-12-22 18:05   ` Nathan Dehnel
  2021-03-12  4:56 ` Vincent Legoll
  1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2020-12-22 14:37 UTC (permalink / raw)
  To: Nathan Dehnel; +Cc: 45266

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’.




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

* bug#45266: "guix gc" needs free disk space to function
  2020-12-22 14:37 ` Ludovic Courtès
@ 2020-12-22 18:05   ` Nathan Dehnel
  0 siblings, 0 replies; 4+ messages in thread
From: Nathan Dehnel @ 2020-12-22 18:05 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 45266

>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 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.

>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:
>
> 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’.




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

* bug#45266: "guix gc" needs free disk space to function
  2020-12-16  6:36 bug#45266: "guix gc" needs free disk space to function Nathan Dehnel
  2020-12-22 14:37 ` Ludovic Courtès
@ 2021-03-12  4:56 ` Vincent Legoll
  1 sibling, 0 replies; 4+ messages in thread
From: Vincent Legoll @ 2021-03-12  4:56 UTC (permalink / raw)
  To: 45266

Hello,

for the guix daemon sqlite problem, could we
preallocate some space in the database also ?

c.f.: https://stackoverflow.com/questions/827010/sqlite-pre-allocating-database-size

-- 
Vincent Legoll




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

end of thread, other threads:[~2021-03-12  4:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16  6:36 bug#45266: "guix gc" needs free disk space to function Nathan Dehnel
2020-12-22 14:37 ` Ludovic Courtès
2020-12-22 18:05   ` Nathan Dehnel
2021-03-12  4:56 ` Vincent Legoll

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).