From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Newsgroups: gmane.emacs.bugs Subject: bug#24091: 24.5; High CPU usage at startup while hidden Date: Thu, 28 Jul 2016 15:37:20 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qSAkRfBlpNexFPD22lEquw079u0spSU5d" X-Trace: ger.gmane.org 1469734775 564 80.91.229.3 (28 Jul 2016 19:39:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2016 19:39:35 +0000 (UTC) To: aiken , npostavs@users.sourceforge.net, 24091@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 28 21:39:22 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bSr9N-0000rZ-2X for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 21:39:21 +0200 Original-Received: from localhost ([::1]:55355 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSr9G-0006kr-VM for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 15:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSr98-0006kA-C4 for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2016 15:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSr94-0001Wg-9C for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2016 15:39:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSr94-0001WJ-5Y for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2016 15:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bSr93-0006Hl-Rj for bug-gnu-emacs@gnu.org; Thu, 28 Jul 2016 15:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jul 2016 19:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24091 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24091-submit@debbugs.gnu.org id=B24091.146973470624115 (code B ref 24091); Thu, 28 Jul 2016 19:39:01 +0000 Original-Received: (at 24091) by debbugs.gnu.org; 28 Jul 2016 19:38:26 +0000 Original-Received: from localhost ([127.0.0.1]:49666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSr8U-0006Gt-EQ for submit@debbugs.gnu.org; Thu, 28 Jul 2016 15:38:26 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.134]:50357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bSr8S-0006Gg-Pm for 24091@debbugs.gnu.org; Thu, 28 Jul 2016 15:38:25 -0400 Original-Received: from [18.189.62.146] ([18.189.62.146]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0MZysF-1bizli2Jw7-00LqS3; Thu, 28 Jul 2016 21:38:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 In-Reply-To: X-Provags-ID: V03:K0:pAtcSUTThm4bdz4osHVR62f99A91elsDse972pfpdr7LBzLVSl2 mF0MSTNLeaetE8nNAt3V2qTR5xgr6MeOE50zuPD0kiG8mRqkqhMnFMfcV5xvx/tcurHOZET LjzhuLe2OvLvk2dKwU3/KZ5YYBLPleZAgh3i2haaavu6Man3TXdGDePDvOxq02lLDvkpNZi Zgu00VQDuxHgG54+h0oFA== X-UI-Out-Filterresults: notjunk:1;V01:K0:xCeyHvB9aQI=:lgLZaEYakusmvYGYSrQSJL FAnSrYcpOZZD1H/X6B/EQIChcpz5OrAVRL/dRemSytaQdwWX/GMfZlgmnc8JX2Azjh3sH+jFC qkyu/wHqzyGLjptBL9zOcMjKUt/AjerI9WWYH3fEQ0S+gFI8iMRugz7YoJ2CpVwmh+O5wBrSG oMo6L4NtULQ/MN9uC8XDmpLruJf3kFTCuRbAP20HwJnloXbpUch81M3c4Mt9prwGpD53LZMBR hOUjqOb5uGD/dB/ae00mTERVCc0gtBnrdSuFPYypX1Le5Va6FpEzEReH7rLsnjlcA7VA83328 O7Z3Z3YiTYxmvvBaXtxTnIuhBKC4+QhuqMHlHWXTDCL72hpSXDXo8CoBQpTkC3qqSmphbCB1y 04PNOV3hOrF+/m9nx6P3gS9JCHDsRhQ2iAprGUtbEnp3nAcp1JFbA2ux6YWUc1UkXF6YVWwUo U8JN0sij6Zufwwg/grN35zTDMcTblz9MPxh46iPfcONWcIj1Wt4YxqBG6fC1zQQL6daTTHObF VKN3++Sdel0xLA9ruBlvtzpDaE6NFTI4nMjugHG7mktXeYud07ozh4tbzCv3H0St59etOlqYY WL+9MBJ5gneLML2cEBihbtugid9QgIfEbxdN6UP6pQY+YYBN459hQsRVzn3DJTN34hVKEsMCM /GOoaWBNX6RZmeBHikV3bGATfObiV5NdStysEtxjLAEi+8HZzEeIZvW4qs2nRIwgaTDg= 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:121648 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --qSAkRfBlpNexFPD22lEquw079u0spSU5d Content-Type: multipart/mixed; boundary="vW5dnXt3BAQNAAldqf2V23JKIam2qLooM" From: =?UTF-8?Q?Cl=c3=a9ment_Pit--Claudel?= To: aiken , npostavs@users.sourceforge.net, 24091@debbugs.gnu.org Message-ID: Subject: Re: bug#24091: 24.5; High CPU usage at startup while hidden References: In-Reply-To: --vW5dnXt3BAQNAAldqf2V23JKIam2qLooM Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2016-07-28 13:43, aiken wrote: > Cl=C3=A9ment: I still get the problem with `emacs -Q`. Some clarificati= on > about the problem: the high CPU usage starts while Emacs is launching o= n > some other workspace, and stops as soon as I go to that workspace. I > notice that, when I go to the Emacs workspace and see the Emacs window,= > Emacs hasn't actually loaded up fully (e.g. it hasn't loaded my > init.el), and it only finishes a lot of its startup once I'm on that > workspace. Anyway, since the problem stops as soon as I look at Emacs, > the only way I know of running profiler-report for this purpose is by > putting it in a command line option: `emacs -Q --eval "(profiler-start > 'cpu)"`. So I've done this (see below for the report), but I'm pretty > sure the profiler-start is only getting evaluated after I've moved to > the Emacs workspace, i.e. after the problem has stopped. Interesting, thanks. Indeed, the profile doesn't show much of interest, a= nd does not seem to have run very long. I'm not very knowledgeable at all about these parts of Emacs, so I hope t= hat an expert can offer more suggestions. I can offer a few suggestions, = however: * You could try enabling C-level profiling, if you're fine with recompili= ng Emacs; this should capture most of Emacs' activity. * You could try getting a backtrace while Emacs is busy starting, from th= e other desktop; either using gdb if it's busy in C-code, or with pkill -= SIGUSR2 if it's busy with Lisp code. Btw, was this profile obtained with Emacs 24.5, or 24.3? --vW5dnXt3BAQNAAldqf2V23JKIam2qLooM-- --qSAkRfBlpNexFPD22lEquw079u0spSU5d Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXml8aAAoJEPqg+cTm90wjTucQAIQdxAfNnMVOYBymDwC6JNDt 9/T3WaJkMKRPmfdf3WmoWXEAIfEttJ36lGVWOXOAXGXBF6SH9q/07Trc+fe31BFf fX/l9fcmdUaqF9fZCE3mYvGSK4wOfQnav6AHvfNsc35ruusC10t/tbMdJ5e4ozIH Yz8xz2BZN2yvFSsu/v3aJG5AEBdK1mjTkjYdst4wzFg1//t7KZ6sgN7QucesLEi4 vi/eiJb4MGKdnAxsxCsK+gkdQCj0qLLPCMSYY89UXyuFSa6BG4HzMlaaS7EyHQlK BchzJKCl/HiLWzsn8WqoKlv6Q6ZmA4PqF8WXZFjZAqT5pzo4lVTPcIIhrfF3esz8 Fvs4tBuiSDNYeqO0GKZt6RkadvjelEIqCTjEl3oIv4K+BciYW8lsu4ttF1aEZob8 6QcqEvGBKXZiRxceslyw9GHx4dEYc3URU3e7B7ZCyStXb6xZj3S/afgcAYI5+hIN OnFv4D+taTddvANccWn2/04OeZDNYkDjWjq4w4cXXryDaUFQWfu1pKId9OHHpa+a GQsM9BDYfGJiBRh6347o2WHuM+8LrrnI97mUEWoKn1oo0PhDEjIUT8jW7h6EuNKl V94NR51lUPrTUyDwMuoReYv3XZLhGJ30MFCsjyEPZQRIwOgE/qJMo95Lv5i0Hlrt chANmgcOoFUbzlQycvi6 =3C8s -----END PGP SIGNATURE----- --qSAkRfBlpNexFPD22lEquw079u0spSU5d--