guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#56618] [PATCH 0/2] Let 'guix gc -d' delete old Home generations


From: Ludovic Courtès
Subject: [bug#56618] [PATCH 0/2] Let 'guix gc -d' delete old Home generations
Date: Mon, 01 Aug 2022 14:39:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux)

Hello,

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> Perhaps we could arrange for 'guix gc' to start deleting oldest items
> first (as a default behavior)?  Then the above advice would provide more
> value.

Right now, the garbage collector simply collects unused items, without a
least-recently-used (LRU) policy or any such thing.

Given that in the store database items have a registration time (see
‘schema.sql’), it might be possible to sort items by registration date
before deleting them, and thus get some sort of LRU behavior.  We’d have
to check the feasibility and run-time cost.

Ludo’.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]