From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#46494: 28.0.50; [native-comp] Problems with async background compile Date: Tue, 16 Mar 2021 20:10:16 +0000 Message-ID: <864khayi53.fsf@gmail.com> References: <52dad420-fd72-fe1c-6f74-f4c114a2deb8@gmail.com> <83czvzdk1v.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8941"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) To: 46494@debbugs.gnu.org Cancel-Lock: sha1:6uVSm85Zn+D1K7dyPR1550ln1IA= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 16 21:17:58 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lMG8b-0002Fr-Sv for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Mar 2021 21:17:57 +0100 Original-Received: from localhost ([::1]:58806 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMG8a-0001XX-TX for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Mar 2021 16:17:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMG1v-0004yc-8V for bug-gnu-emacs@gnu.org; Tue, 16 Mar 2021 16:11:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57802) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMG1u-0006SO-GJ for bug-gnu-emacs@gnu.org; Tue, 16 Mar 2021 16:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMG1u-0002H4-Bo for bug-gnu-emacs@gnu.org; Tue, 16 Mar 2021 16:11:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <52dad420-fd72-fe1c-6f74-f4c114a2deb8@gmail.com> Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Mar 2021 20:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46494 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16159254368709 (code B ref -1); Tue, 16 Mar 2021 20:11:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Mar 2021 20:10:36 +0000 Original-Received: from localhost ([127.0.0.1]:41115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMG1U-0002GO-Bu for submit@debbugs.gnu.org; Tue, 16 Mar 2021 16:10:36 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMG1P-0002GD-JD for submit@debbugs.gnu.org; Tue, 16 Mar 2021 16:10:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMG1P-0004Ij-8N for bug-gnu-emacs@gnu.org; Tue, 16 Mar 2021 16:10:31 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:37546) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMG1K-0006Ec-14 for bug-gnu-emacs@gnu.org; Tue, 16 Mar 2021 16:10:27 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lMG1H-0003SQ-8b for bug-gnu-emacs@gnu.org; Tue, 16 Mar 2021 21:10:23 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:202488 Archived-At: On Tue 16 Mar 2021, Eli Zaretskii wrote: >> Cc: 46494@debbugs.gnu.org >> Date: Tue, 16 Mar 2021 16:53:21 +0000 >> From: Andrea Corallo via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >> >> Hi Andy, >> >> is there anything left to be done for this bug? > > I'm not Andy (so let's wait for him to speak up), but here's my take. > > This bug had 3 parts: > > a) Bug #46256 describes problems with AOT compiled native-comp emacs not > finding prebuilt .eln files when built for mingw64 64bit on Windows. > > As a result, emacs complains with an echo area warning for every .eln > file that it cannot find in the expected location. > > The stream of frequent warnings that causes make emacs mostly > unresponsive to user input. > > b) The "background" async compilation of .eln files is CPU intensive and > somewhat slow. The default settings run a compile on every available > core, which is unfriendly for other workloads running on the same > machine. > > It would be helpful to users to have a command to show the state of > the async background compilation, including the running compile > processes and the queue of pending compilation requests. > > c) Quitting emacs when async compilation processes are running sometimes > causes crashes in the compile processes, which show the emacs abort > dialog (once for each async process). The dialogs disappear after a > short delay (presumably due to the parent emacs having exited). > > c) Has been solved. > b) doesn't seem to be a problem IME, we use half the cores, and > there's a way to customize that number > a) I didn't see at all, so I think it's also solved. Eli's take is a good summary of the issues. (a) is fixed. (b) is a wish-list item that will help ordinary users understand what the compiler is doing. (c) is fixed. Given the epic length of the discussion in this bug, I think we should probably close this bug report, and open fresh ones for any other issues. The native branch has received attention from a wider group of testers over the last few weeks, and as a result is much more solid. Thanks to all concerned for much hard work. AndyM