guix-pull --list-generations is slow

  • Open
  • quality assurance status badge
Details
2 participants
  • Olivier Dion
  • Simon Tournier
Owner
unassigned
Submitted by
Olivier Dion
Severity
normal
O
O
Olivier Dion wrote on 16 Aug 2023 21:29
(address . bug-guix@gnu.org)
87cyzmwzul.fsf@laura
Hi,

Calling `guix-pull --list-generations' is very slow on my system with 37
generations.

$ time guix pull --list-generations > /dev/null
real 0m58.702s
user 1m8.418s
sys 0m1.527s

Also, it takes a lot of CPU (100% of a core).

$ guix describe:
guix 7b2b0a5
branch: master
commit: 7b2b0a5e1d635fb0e3d2d3e9141ac27c2db644b5

From a search in pull.scm, I think that the culprit is in the
`channel-news-for-commit' procedure.

Thanks,

old
--
Olivier Dion
EfficiOS Inc.
S
S
Simon Tournier wrote on 24 Aug 2023 11:33
86lee0zsw7.fsf@gmail.com
Hi,

On Wed, 16 Aug 2023 at 15:29, Olivier Dion <odion@efficios.com> wrote:

Toggle quote (5 lines)
> $ time guix pull --list-generations > /dev/null
> real 0m58.702s
> user 1m8.418s
> sys 0m1.527s

On my poor laptop, it’s the same (14 Generations):

$ time guix pull --list-generations >/dev/null

real 1m2.201s
user 1m0.021s
sys 0m2.482s

And note before it was worse. ;-)

$ time guix pull --list-generations --details > /dev/null

real 1m57.606s
user 2m6.575s
sys 0m5.608s


Toggle quote (3 lines)
> From a search in pull.scm, I think that the culprit is in the
> `channel-news-for-commit' procedure.

Well, as pointers, we discussed some part of this issue in:


And as I said in these past discussions, because the default behaviour
is very slow for me, I barely use these options. I do not know if it
can be optimized or if another option for bypassing the news part should
be added.


Cheers,
simon
?