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.bugs Subject: bug#46494: 28.0.50; [native-comp] Problems with async background compile Date: Tue, 16 Mar 2021 20:34:36 +0200 Message-ID: <83czvzdk1v.fsf@gnu.org> References: <52dad420-fd72-fe1c-6f74-f4c114a2deb8@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35976"; mail-complaints-to="usenet@ciao.gmane.io" Cc: andrewjmoreton@gmail.com, 46494@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 16 19:47:54 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 1lMEjP-0009BU-DG for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Mar 2021 19:47:51 +0100 Original-Received: from localhost ([::1]:50600 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMEjN-00045S-2C for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 16 Mar 2021 14:47:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37356) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lMEX3-00080r-7s for bug-gnu-emacs@gnu.org; Tue, 16 Mar 2021 14:35:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57737) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lMEX0-0006kX-CM for bug-gnu-emacs@gnu.org; Tue, 16 Mar 2021 14:35:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lMEX0-0008Sh-A5 for bug-gnu-emacs@gnu.org; Tue, 16 Mar 2021 14:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 16 Mar 2021 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46494 X-GNU-PR-Package: emacs Original-Received: via spool by 46494-submit@debbugs.gnu.org id=B46494.161591967932494 (code B ref 46494); Tue, 16 Mar 2021 18:35:02 +0000 Original-Received: (at 46494) by debbugs.gnu.org; 16 Mar 2021 18:34:39 +0000 Original-Received: from localhost ([127.0.0.1]:41050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMEWb-0008S0-Uk for submit@debbugs.gnu.org; Tue, 16 Mar 2021 14:34:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lMEWZ-0008Rm-O4 for 46494@debbugs.gnu.org; Tue, 16 Mar 2021 14:34:36 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43791) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lMEWU-0006Wm-Ca; Tue, 16 Mar 2021 14:34:30 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3791 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lMEWN-0001l7-7s; Tue, 16 Mar 2021 14:34:26 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) 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:202481 Archived-At: > 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.