trustdb calculation very slow (gpg2.0 vs gpg1)

Dr. Peter Voigt pvoigt at uos.de
Tue Jun 23 23:35:14 CEST 2015


On Tue, 23 Jun 2015 16:21:54 +0200
Bernhard Reiter <bernhard at intevation.de> wrote:

> Hi
> on a Debian GNU/Linux Jessie system I have a defect that
> the trust calculation of a cert is taking a lot of time.
> Almost 2 minutes with 100%cpu.
> This used to be different with early gnupg2 versions I've used
> and it is different to gpg (1), where it were 20 seconds.
> 
> No report found, thus seem to depend on my trustdb.
> Any ideas on how to create a good report/debug?
> 
> Details:
> How to recreate:
> gpg2 --delete-key 52D717F3
> time LANG=C gpg2 -v --recv-keys 52D717F3
> real    1m57.144s
> user    1m46.560s
> sys     0m9.296s
> 
> # as compared to gpg verison 1
> gpg2 --delete-key 52D717F3
> time LANG=C gpg --recv-keys 52D717F3
> real    0m19.840s
> user    0m18.192s
> sys     0m0.900s
> 
> ii  gnupg          1.4.18-7     i386         GNU privacy guard - a
> free PGP re ii  gnupg2         2.0.26-6     i386         GNU privacy
> guard - a free PGP re
> 
> With 2.0.25-99intevation2 on Wheezy I did not notice the issue,
> but of course, my trustdb changed over time.
> 
> Thanks in advance,
> Bernhard
> 

Bernhard,

I am just having a fully configured VirtualBox VM of Jessie with Gnome
3 available, but I am not having this problem:

% time LANG=C gpg2 -v --recv-keys 52D717F3
...
LANG=C gpg2 -v --recv-keys 52D717F3  0.11s user 0.06s system 7% cpu
2.304 total

% dpkg -l gnupg2
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/
Name                     Version           Architecture
Description
+++-===============================================================================================================
ii  gnupg2                   2.0.26-6          amd64             GNU
privacy guard - a free PGP replacement (new v2.x)

Regards,
Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: </pipermail/attachments/20150623/3b55beab/attachment.sig>


More information about the Gnupg-devel mailing list