[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#45327] [PATCH] git: Periodically delete least-recently-used cached
From: |
Ludovic Courtès |
Subject: |
[bug#45327] [PATCH] git: Periodically delete least-recently-used cached checkouts. |
Date: |
Thu, 07 Jan 2021 10:39:03 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hi,
zimoun <zimon.toutoune@gmail.com> skribis:
> However, I still do not like the “automatic” part. Personally, I would
> prefer something like:
>
> guix pull --delete-generations=2m
>
> deleting the cache older than 2 months, in addition to the old profiles.
> Because, with your patch, if I want to change the expiration or the
> period, it is not convenient: via channels.scm, maybe.
There’s a difference though: generations are things you manage by
yourself as a user, whereas this cache is really just an internal cache.
Of course it becomes a user-visible feature if it gets in the way, and I
agree we should avoid that. But it also gets in the way by not being
vacuumed, hence this patch.
> Sometime, I am one or two months off (vacation). And I am sure to
> forget to tweak the channels.scm when I am back. Well, I have 3-4
> channels.scm files; for example I am not pulling guix-past each time I
> pull. Therefore, I should have these 3-4 channels.scm duplicated with
> the expiration+period tweaked for when I am back from long breaks.
>
> Well, if the automatic is the default, a way to turn off could be nice,
> at the CLI level or even globally. IMHO.
Yeah, maybe we can have a more conservative default together with an
environment variable to tweak it.
Thanks,
Ludo’.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug#45327] [PATCH] git: Periodically delete least-recently-used cached checkouts.,
Ludovic Courtès <=