From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#24628: GNUtls initialization adds 500ms to startup --- do we really need it just for the RNG? Date: Thu, 6 Oct 2016 12:45:23 -0700 Message-ID: <50ee31c0-fdb6-00fc-f186-71133a1d711a@dancol.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1475783188 2212 195.159.176.226 (6 Oct 2016 19:46:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2016 19:46:28 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 To: 24628@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 06 21:46:24 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsEcQ-0007Tc-BM for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2016 21:46:14 +0200 Original-Received: from localhost ([::1]:59077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsEcO-0007ff-Ss for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Oct 2016 15:46:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsEcI-0007fM-24 for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2016 15:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsEcE-0007oF-DD for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2016 15:46:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40700) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsEcE-0007oB-9m for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2016 15:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bsEcE-0001iu-4k for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2016 15:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Oct 2016 19:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 24628 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14757831546609 (code B ref -1); Thu, 06 Oct 2016 19:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Oct 2016 19:45:54 +0000 Original-Received: from localhost ([127.0.0.1]:46890 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsEc6-0001iX-J6 for submit@debbugs.gnu.org; Thu, 06 Oct 2016 15:45:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsEc4-0001iE-Qq for submit@debbugs.gnu.org; Thu, 06 Oct 2016 15:45:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsEby-0007kZ-Te for submit@debbugs.gnu.org; Thu, 06 Oct 2016 15:45:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsEby-0007kP-QB for submit@debbugs.gnu.org; Thu, 06 Oct 2016 15:45:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsEbw-0007e6-Jf for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2016 15:45:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsEbt-0007jm-Vm for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2016 15:45:44 -0400 Original-Received: from dancol.org ([96.126.100.184]:39778) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsEbt-0007iH-LJ for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2016 15:45:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Date:Message-ID:Subject:From:To; bh=fBUB6cm5HkPddWJkHEJzjhlHMJQueTXALy1f/Ig9nhs=; b=qfRWv6AL6cFstOQDYWX967DsjXqKmKwagI3Qf4jaVObb4TzxFh8yxGxt084Lkgfu/1/2sOopEDrbXjs5LGt+udvoqJgCWRT7vbmA/8aY2UiHohS8bzheCkJwFlwg+2+t3rqSfiO5gC04XurQZnxkv+ZOJyMsg8/ucQ6wLSjcEo3FWuSTlPIL+6sgyrPtQuK3SmncVaBWawZVRMs/C2t3kVcBEjZF2KSocCoB2wwxsu/GfqQnTtT8AkABs2ntc637CZuJKtfS4AhutC+Uf0nhyt6qncBtvcnSQJ66LHO13Ct2w5XByg18lKKR832UVnSi4Z4zKcn7ek1+Vi6tGwHrRA==; Original-Received: from [2620:0:1000:fd1f:99d:a53e:160a:eb2] by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1bsEbj-0005ES-RR for bug-gnu-emacs@gnu.org; Thu, 06 Oct 2016 12:45:31 -0700 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:124129 Archived-At: On my system, I noticed that the call to emacs_gnutls_global_init is adding 500ms to the time it takes to run emacs -Q -nw --batch --eval '(kill-emacs)'. We're not actually using GNUtls for anything but an RNG seed, and /dev/urandom is also up to the task. I'm not sure what's making GNUtls so slow, except that it's talking to a process called credkit-service, which is using a lot of CPU time. It shouldn't matter though. Can we go back to just using /dev/urandom directly?