From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 19802 invoked from network); 22 Apr 2020 14:26:51 -0000 Received: from lists1.math.uh.edu (129.7.128.208) by inbox.vuxu.org with UTF8ESMTPZ; 22 Apr 2020 14:26:51 -0000 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.92.3) (envelope-from ) id 1jRGKD-00071d-N3; Wed, 22 Apr 2020 09:26:05 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jRGK9-0006yw-3M for ding@lists.math.uh.edu; Wed, 22 Apr 2020 09:26:01 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jRGK7-00014d-J9 for ding@lists.math.uh.edu; Wed, 22 Apr 2020 09:26:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=CgeEcqJbIb+k99OMliI65J7/+fS0HzTGsd2oG2bdVpE=; b=Gj09DpnHrRBpamFaAN/SnWwWib 1cVczKsbkou8vHipd6+rPlECwECJ6YlMYgmxsaHgCkbxJFsbflglZJ2zbK6Q0iAHwMVgpjVntilNX flXu1wnj7GRYFsvAXRHTrryFkr+kYoZnwbyHMOGRaTVpGRsG6yhiXR/0fjOykUvuxNeE=; Received: from eggs.gnu.org ([2001:470:142:3::10]) by quimby.gnus.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jRGK0-00038B-Md for ding@gnus.org; Wed, 22 Apr 2020 16:25:55 +0200 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59334) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRGJv-0005O4-Q3; Wed, 22 Apr 2020 10:25:47 -0400 Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:36009) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1jRGJt-0002YL-QZ; Wed, 22 Apr 2020 10:25:46 -0400 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 5B22B27C0054; Wed, 22 Apr 2020 10:25:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 22 Apr 2020 10:25:45 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrgeejgdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufhffjgfkfgggtgfgsehtqhertddtreejnecuhfhrohhmpefvrghsshhi lhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuffhomhgrihhnpehlihgsrh grvhgrthgrrhdrohhrghenucfkphepkeegrddufedvrdeliedrvdehgeenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmh htphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleekqdht shguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from thinkpad-t440p (p548460fe.dip0.t-ipconnect.de [84.132.96.254]) by mail.messagingengine.com (Postfix) with ESMTPA id B5D213065CCF; Wed, 22 Apr 2020 10:25:41 -0400 (EDT) From: Tassilo Horn To: Robert Pluim Cc: Adam =?utf-8?Q?Sj=C3=B8gren?= , ding@gnus.org, emacs-devel@gnu.org Subject: Re: Rendering regression in Gnus with gnus-treat-from-gravatar References: <877dym5fes.fsf@tullinup.koldfront.dk> <87d08ejbmj.fsf@tullinup.koldfront.dk> Mail-Followup-To: Robert Pluim , Adam =?utf-8?Q?Sj=C3=B8?= =?utf-8?Q?gren?= , ding@gnus.org, emacs-devel@gnu.org Date: Wed, 22 Apr 2020 16:25:34 +0200 In-Reply-To: (Robert Pluim's message of "Sat, 11 Apr 2020 18:53:38 +0200") Message-ID: <87r1wfsild.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-ID: Precedence: bulk Robert Pluim writes: Hi Robert and Adam, > Adam> Robert writes: > >> The new version doesn=CA=BCt do any more gravatar lookups than the > >> old one, but it does by default do some DNS lookups. Is it > >> better if you customize 'gravatar-service' to one of the other > >> options? > > Adam> Of the three possible options for gravatar-service: > Adam> gravatar, unicornify, libravatar only the last, and default, > Adam> libravatar exhibits the problem. > > OK, so it=CA=BCs the DNS. The libravatar method does a bunch of DNS > queries, and those can be slow, and they're done for every article. I have the same problem as Adam. And it happened two or three times that upon clicking a message, Emacs started consuming 100% CPU and stuck at least 30 seconds before I hit C-g. At one occurrence, I attached GDB after waiting at least 30 seconds for the full message to appear and on the bottom of the call stack was dns-query accept-process-output Hm, that must be that while loop in dns-query but given the values of step and times, I cannot see how that could block for so long. And usually, it doesn't. And in the ususal case, it is just slow in the sense of maybe 2-5 seconds. And in those normal cases, it's not so much the dns query but the TLS negotiation with seccdn.libravatar.org (in case the DNS lookup found no custom gravatar url). Here's a profiler report gathered with: (progn (profiler-start 'cpu) (gravatar-retrieve-synchronously "tsdh@gnu.org") (profiler-report) (profiler-stop)) --8<---------------cut here---------------start------------->8--- - command-execute 33 100% - call-interactively 33 100% - funcall-interactively 33 100% - eval-last-sexp 33 100% - elisp--eval-last-sexp 33 100% - eval 33 100% - progn 33 100% - progn 33 100% - gravatar-retrieve-synchronously 32 96% - let 32 96% - save-current-buffer 25 75% - set-buffer 25 75% - if 25 75% - url-retrieve-synchronously 25 75% - url-retrieve 24 72% - url-retrieve-internal 24 72% - url-https 24 72% - url-http 24 72% - url-http-find-free-connection 24 72% - url-open-stream 24 72% - open-network-stream 24 72% - network-stream-open-tls 24 72% - open-gnutls-stream 24 72% - gnutls-negotiate 24 72% - gnutls-boot-parameters 1 3% - gnutls-trustfiles 1 3% - gnutls--get-files 1 3% file-expand-wildcards 1 3% + accept-process-output 1 3% - gravatar-build-url 7 21% - format 7 21% - funcall 7 21% - gravatar--service-libravatar 7 21% - let 7 21% - unwind-protect 7 21% - progn 7 21% - if 7 21% - let 7 21% - catch 7 21% - let 7 21% - while 7 21% - let 7 21% - let* 7 21% - dns-query 7 21% - sit-for 6 18% redisplay 3 9% read-event 3 9% --8<---------------cut here---------------end--------------->8--- Bye, Tassilo