This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bmwiedemann
Recipients bmwiedemann, christian.heimes
Date 2017-05-05.08:16:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493972173.12.0.369756116385.issue30276@psf.upfronthosting.co.za>
In-reply-to
Content
traced it down a bit further.
nearly all that time is spent in
import _hashlib
which probably means, it is spent in functions like PyInit__hashlib in Modules/_hashopenssl.c

I can see in strace that after loading libssl, libcrypto and libz,
it calls getpid and opens /dev/urandom 8 times
and most of the time is spent in the middle of these:

grep open...dev.uran strace.out
1493970277.542629 open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 4
1493970277.542847 open("/dev/urandom", O_RDONLY|O_NOCTTY|O_NONBLOCK|O_CLOEXEC) = 4
1493970277.543370 open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 4
1493970277.543967 open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 4
1493970277.592232 open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 4
1493970277.592518 open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 4
1493970277.597778 open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 4
1493970277.598629 open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 4
History
Date User Action Args
2017-05-05 08:16:13bmwiedemannsetrecipients: + bmwiedemann, christian.heimes
2017-05-05 08:16:13bmwiedemannsetmessageid: <1493972173.12.0.369756116385.issue30276@psf.upfronthosting.co.za>
2017-05-05 08:16:13bmwiedemannlinkissue30276 messages
2017-05-05 08:16:12bmwiedemanncreate