From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.devel Subject: Re: Suppressing native compilation (short and long term) Date: Sun, 23 Oct 2022 17:22:06 +0200 Message-ID: <875yga36qp.fsf@no.workgroup> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22281"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rlb@defaultvalue.org, monnier@iro.umontreal.ca, david@tethera.net, emacs-devel@gnu.org, akrl@sdf.org To: Eli Zaretskii , Sean Whitton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 24 06:37:07 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ompD0-0005gi-IQ for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Oct 2022 06:37:06 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ommpb-0001CE-K3 for ged-emacs-devel@m.gmane-mx.org; Sun, 23 Oct 2022 22:04:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omco5-0004wN-6K for emacs-devel@gnu.org; Sun, 23 Oct 2022 11:22:36 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omco3-0002E9-Ap; Sun, 23 Oct 2022 11:22:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1666538537; bh=zX72vwl+Is6ObOKhq/5O5j81l05wHQLqepBCwO9S+LA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=b6VtiBBZAfai/tzVKWvr96snvIrlsaPkylJ4xw49PB8+LfdA1IxXLYozINc0ycy3Z La/R1mkq1oDfRoFPWJqHlfTiQo9O1ctq1Txt+LJlg+Qi78iwTCuiJXh59FYge8RRuk c/5Pl6WOZIPjbjHlvCjh0VjMuoIWvmueIqyG7AW0= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from localhost ([37.171.228.235]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MYNJg-1oZvVD1CcM-00VQom; Sun, 23 Oct 2022 17:22:17 +0200 Mail-Followup-To: Eli Zaretskii , Sean Whitton , rlb@defaultvalue.org, monnier@iro.umontreal.ca, david@tethera.net, emacs-devel@gnu.org, akrl@sdf.org X-Provags-ID: V03:K1:ymzrJ/H1oDXBfd7WE7NWykp+QWXK8qVmWch4SZ0HldTxaqw6klT feqzmeq/lt6QosQcWS+p3OXwp3j1g3UJYscmgvJG5fZROi810Kz8PG5GNoWebKoe4Xf+Bdo rNgRdQJ3+otbeYOuU4sVnMvSHdcpsaGRrssEZSMkhTETvWzqWp7CINPB69VzZS1aRtuEw8G HaBdoV5b4pU+aRPNEU/9A== X-UI-Out-Filterresults: notjunk:1;V03:K0:JqgQJ8xX62U=:2pOUGCbapehicMxQwmKScz dJ2ODA8W9g8LiYRurxg3c1kWj2ZyJiJx+VCSqwQCYgH9Dh36QeyDLonbZlHOBe82IrxK+9zvk FU/ur6T3cAcNsIhdslhRlpj+mZTq90GHup+evcdxdD79XUU2ZlelVDbFkO9y6y7b8JjGiNCNQ G0zw1MWdyr+anjYHCRsuYACrxCD9k/AN/9P0+ya6GJIEZAriXOtGiGEsXme8QA85qeBTbyFna l9urrH6jH/M06GmfLzPvD5DO22TDgj2rDEHLZWpDPmAk0ppe0PK64ASyb0JrolCMobBmhAx+E vBgiDJ9R1OcPz/gEa5NaH9dQu6d+yssbXRGPeLYS/jg0cdMuBbeSrZJ3EM+eQqE8zYSo7briJ zgN3AKWKQkuZcNkRdqH4RPRAsB/fTNKH6t4MPyLh8v5ThbvjGZPfnB5zMRIWzNJviYcXyyazD Z7J/zUMN3QUZYjvNr9YAlQUw02XieUjTiHYrv8/FG+SoCR780Of0q5SdkJrHDwK+5ZG9E6GNg ePCHeHY9bhl5v2AQ8nzNeOa7u3dI+rrXvmP+5q4tPe0Z+T2G+ydwXcq0fnwHwLfmHU/TpitIS eFOZPTpM6yMZzseg69P9+2jT/s3dG+NTkzsbLeUYcJQkW7Stbt7ZGkdp+qwm1+a+eYm9zyVdY wIMdVkVaDMzRs1K2cNgyfb5RTrUmkIY3o5RQSNCcYw9HFtUKvQLkK3r7owXBMjmmS0SUICcEk XyPipSVcp/aizG8ThFcB52F+9xVS/KeKjVJUBmTa9VSXBXeI4BUrgJcKyfOrIVqxLtLZGjtm Received-SPF: pass client-ip=212.227.15.19; envelope-from=telegraph@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:298311 Archived-At: Hi Eli, * Eli Zaretskii [2022-10-03; 19:19 +03]: [... native compilation and laptop battery ..] > You see, I have my data, and it seems to indicate a very short period > of initial compilations for a modest consumption of resources. (This > isn't a laptop, but I'm acutely aware of my system's load at all > times, and have it on the mode line, so I know what kind of > computation is going on during that time.) The data I see here > doesn't look like it should be a problem for anyone, as long as files > are compiled only as they are used. In my case, for example, I see > maybe half a dozen *.eln files compiled after the initial startup. I > expect to see that on any machine where a user has steady usage > patterns -- the compilation flats out very quickly. Strangely, that is not what I see. Instead every time I start Emacs (since a week or so) like this cd ~/src/emacs-master-next/src; gdb emacs -ex 'set logging file /tmp/gdb.t= xt' -ex 'set logging on' -ex 'set logging file /tmp/gdb.txt' -ex 'run --fg= -daemon' after roughly 30 seconds I see asynchronous compilation processes which last at least 120 to most 150 seconds. While this is the case in htop these compilation processes are most of the time the top most cpu consumers, in powertop I see several emacs processes are consuming power right after the devices of my laptop. What this means in actual power consumption I cannot say. What is strange is, that these compilation processes start over and over again, every time I start Emacs even if I do not install/upgrade Emacs, nor packages. I just did this three times in a row and it's a consistent pattern. This is GNU Emacs 29.0.50 (build 2, x86_64-pc-linux-gnu, cairo version 1.16.0) of 2022-10-19 on Debian bullseye right now with a backported kernel: Linux no 5.18.0-0.deb11.4-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.16-1~bpo11+1 (2022-08-12) x86_64 GNU/Linux Ciao; Gregor =2D- -... --- .-. . -.. ..--.. ...-.-