GNU bug report logs - #51427
[PATCH] nix: libstore: Do not remove unused links when deleting specific items.

Previous Next

Package: guix-patches;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Wed, 27 Oct 2021 03:50:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Cc: 51427 <at> debbugs.gnu.org, ludo <at> gnu.org, maxim.cournoyer <at> gmail.com, zimon.toutoune <at> gmail.com
Subject: [bug#51427] [PATCH] nix: libstore: Do not remove unused links when deleting specific items.
Date: Tue, 19 Jul 2022 21:25:24 +0200
[Message part 1 (text/plain, inline)]
Liliana Marie Prikler 写道:
> scheme@(guile-user)> ,t (length (scandir "/gnu/store/.links"))
> $1 = 213027
> ;; 1417.872747s real time, 28.514293s run time.  1.284866s spent 
> in GC.

[…]

> So yeah, assuming that scandir scales linearly

…your rotational drive is beyond ridiculously slower than mine (an 
ST1000DM010-2EP102):

athena.tobias.gr:~ λ echo 3 | sudo tee /proc/sys/vm/drop_caches 
3
athena.tobias.gr:~ λ guix repl
[…]
scheme@(guix-user)> ,use (ice-9 ftw)
scheme@(guix-user)> ,t (length (scandir "/gnu/store/.links"))
$1 = 164437
;; 7.081361s real time, 2.569773s run time.  0.199963s spent in 
  GC.

Kind regards,

T G-R
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 2 years and 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.