GNU bug report logs - #65345
guix-pull --list-generations is slow

Previous Next

Package: guix;

Reported by: Olivier Dion <odion <at> efficios.com>

Date: Wed, 16 Aug 2023 19:30:02 UTC

Severity: normal

To reply to this bug, email your comments to 65345 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#65345; Package guix. (Wed, 16 Aug 2023 19:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Olivier Dion <odion <at> efficios.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 16 Aug 2023 19:30:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Olivier Dion <odion <at> efficios.com>
To: bug-guix <at> gnu.org
Subject: guix-pull --list-generations is slow
Date: Wed, 16 Aug 2023 15:29:06 -0400
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
    repository URL: https://git.savannah.gnu.org/git/guix.git
    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.
https://www.efficios.com





Information forwarded to bug-guix <at> gnu.org:
bug#65345; Package guix. (Thu, 24 Aug 2023 10:49:02 GMT) Full text and rfc822 format available.

Message #8 received at 65345 <at> debbugs.gnu.org (full text, mbox):

From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: Olivier Dion <odion <at> efficios.com>, 65345 <at> debbugs.gnu.org
Subject: Re: bug#65345: guix-pull --list-generations is slow
Date: Thu, 24 Aug 2023 11:33:44 +0200
Hi,

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

> $ 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


> 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:

    https://issues.guix.gnu.org/53909
    https://issues.guix.gnu.org/54000

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




This bug report was last modified 254 days ago.

Previous Next


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