GNU bug report logs -
#45327
[PATCH] git: Periodically delete least-recently-used cached checkouts.
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Sat, 19 Dec 2020 22:07:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 45327 <at> debbugs.gnu.org (full text, mbox):
Hi Ludo,
On Sat, 19 Dec 2020 at 23:06, Ludovic Courtès <ludo <at> gnu.org> wrote:
> This ensures ~/.cache/guix/checkouts is periodically cleaned up.
>
> * guix/git.scm (cached-checkout-expiration)
> (%checkout-cache-cleanup-period): New variables.
> (delete-checkout): New procedure.
> (update-cached-checkout)[cache-entries]: New procedure.
> Add call to 'maybe-remove-expired-cache-entries'.
> ---
> guix/git.scm | 38 +++++++++++++++++++++++++++++++++++++-
> 1 file changed, 37 insertions(+), 1 deletion(-)
>
> Hi!
>
> I noticed that my ~/.cache/guix/checkouts directory had accumulated
> a lot of cruft from channels, playing with ‘--with-branch’ and such,
> and that it would be nice to clean it up once in a while.
>
> This is what this patch does. It uses the (guix cache) default
> strategy, which consists in deleting least-recently-used items by
> looking at their atime.
This is done at pull time, right? Personally, I would prefer at gc
time, and even maybe with an option to “guix gc”.
Because, IIUC, every 5 days, the entries older than 1 month will be
deleted. As an extensive user of the time-machine, it means that I will
do this extra work more than often, slowing down the already slow
“time-machine”.
Cheers,
simon
This bug report was last modified 4 years and 125 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.