From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Suppressing native compilation (short and long term) Date: Sun, 23 Oct 2022 19:07:48 +0300 Message-ID: <83wn8qr0a3.fsf@gnu.org> References: <875yga36qp.fsf@no.workgroup> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29451"; mail-complaints-to="usenet@ciao.gmane.io" Cc: spwhitton@spwhitton.name, rlb@defaultvalue.org, monnier@iro.umontreal.ca, david@tethera.net, emacs-devel@gnu.org, akrl@sdf.org To: Gregor Zattler Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 24 07:18:52 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 1omprQ-0007Va-SX for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Oct 2022 07:18:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omn4E-00039C-OJ for ged-emacs-devel@m.gmane-mx.org; Sun, 23 Oct 2022 22:19:54 -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 1omdWE-0000IJ-Kl for emacs-devel@gnu.org; Sun, 23 Oct 2022 12:08:10 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omdWC-0005LS-D3; Sun, 23 Oct 2022 12:08:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=o0bUKdufTJQr2lSNZ9ol7/yXmfeDImdZIQsQE+Jf1JQ=; b=bFXceLrIts2K VekDu/6Rehv6Pcj0CTfUS+IL2V13tsmcX15nztvPr8iaPw6kIiIwLtI2OHLYbIusB77QBhHsK6JOS GCg8bVybvQF9dgkAirTSH5gKmzV8oePM2JTSqoqk1AqJeY+zSEaRrxgMFfrNfSrOtYt/aBdTsBfhm r83GInbnz7Vu3z2YywNTgdUsJk8bNzSOq6FGgmf/V2bitjelQ/sJfE1cWbRLYeJ1jpJBv78ctSt0f DBicwlTNIkmmNNGi8SRZ0YywBarJ5kHo6SdNlknx/FX6dk/sLYMCgjKLhrI6Y98DQ2D/KrQm2UF2o JT1qWYuoJZQ1Y+pQ8CFnmw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omdW9-0002PW-MT; Sun, 23 Oct 2022 12:08:07 -0400 In-Reply-To: <875yga36qp.fsf@no.workgroup> (message from Gregor Zattler on Sun, 23 Oct 2022 17:22:06 +0200) 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:298324 Archived-At: > From: Gregor Zattler > Cc: rlb@defaultvalue.org, monnier@iro.umontreal.ca, david@tethera.net, > emacs-devel@gnu.org, akrl@sdf.org > Date: Sun, 23 Oct 2022 17:22:06 +0200 > > 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.txt' -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. Please tell the details: which files are being compiled, and whether do you see the corresponding *.eln files in the eln-cache afterwards. Once a .eln file is in the eln-cache, the next invocation should not re-compile the same file, it should load the compiled .eln file from the eln-cache. Could it be that your eln-cache is deleted between sessions?