Deleting unused links is too slow

  • Done
  • quality assurance status badge
Details
2 participants
  • Andreas Enge
  • Ludovic Courtès
Owner
unassigned
Submitted by
Andreas Enge
Severity
normal
A
A
Andreas Enge wrote on 10 Feb 2015 20:25
(address . bug-guix@gnu.org)
20150210192521.GA431@debian
Hello,

I just compiled a test package and tried a
"guix gc -d /path/to/package/in/store"

After printing
deleting `/gnu/store/642pwarg5hppzh1gwadd07w0g4w3rwpx-nss-certs-3.17.3'
deleting `/gnu/store/trash'
deleting unused links...
which is instantaneous, I need to wait for 5 minutes with the disk spinning.

I suppose this is a side-effect of deduplication?

Andreas
L
L
Ludovic Courtès wrote on 10 Feb 2015 23:24
(name . Andreas Enge)(address . andreas@enge.fr)(address . 19832@debbugs.gnu.org)
87fvadxv4c.fsf@gnu.org
Andreas Enge <andreas@enge.fr> skribis:

Toggle quote (9 lines)
> I just compiled a test package and tried a
> "guix gc -d /path/to/package/in/store"
>
> After printing
> deleting `/gnu/store/642pwarg5hppzh1gwadd07w0g4w3rwpx-nss-certs-3.17.3'
> deleting `/gnu/store/trash'
> deleting unused links...
> which is instantaneous, I need to wait for 5 minutes with the disk spinning.

Literally 5 minutes? It would be more like 30s on my SSD.

Toggle quote (2 lines)
> I suppose this is a side-effect of deduplication?

That, and the fact that you have a disk that actually spins. ;-)

If you haven’t GC’d in a long time, it’s also likely to take longer.

Ludo’.
A
A
Andreas Enge wrote on 11 Feb 2015 01:07
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 19832@debbugs.gnu.org)
20150211000728.GA22201@debian
On Tue, Feb 10, 2015 at 11:24:51PM +0100, Ludovic Courtès wrote:
Toggle quote (2 lines)
> If you haven’t GC’d in a long time, it’s also likely to take longer.

Maybe that was the problem. I tried again later to gc one package, and it was
almost instantaneous. Which means that there might not be a problem after all.

Andreas
L
L
Ludovic Courtès wrote on 12 Feb 2015 18:26
(name . Andreas Enge)(address . andreas@enge.fr)(address . 19832-done@debbugs.gnu.org)
87lhk3oxb5.fsf@gnu.org
Andreas Enge <andreas@enge.fr> skribis:

Toggle quote (6 lines)
> On Tue, Feb 10, 2015 at 11:24:51PM +0100, Ludovic Courtès wrote:
>> If you haven’t GC’d in a long time, it’s also likely to take longer.
>
> Maybe that was the problem. I tried again later to gc one package, and it was
> almost instantaneous. Which means that there might not be a problem after all.

OK, closing it then.

Thanks,
Ludo’.
Closed
?