From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#46494: 28.0.50; [native-comp] Problems with async background compile Date: Sun, 14 Feb 2021 08:01:59 +0000 Message-ID: References: <52dad420-fd72-fe1c-6f74-f4c114a2deb8@gmail.com> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34348"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46494@debbugs.gnu.org To: Andy Moreton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 14 09:03:10 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 1lBCN4-0008pZ-75 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 09:03:10 +0100 Original-Received: from localhost ([::1]:58968 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBCN3-0005qM-9L for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Feb 2021 03:03:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBCMw-0005q2-LN for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 03:03:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52100) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lBCMw-00032i-DS for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 03:03:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lBCMw-0004TP-Ac for bug-gnu-emacs@gnu.org; Sun, 14 Feb 2021 03:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Feb 2021 08:03: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.161328972517122 (code B ref 46494); Sun, 14 Feb 2021 08:03:02 +0000 Original-Received: (at 46494) by debbugs.gnu.org; 14 Feb 2021 08:02:05 +0000 Original-Received: from localhost ([127.0.0.1]:35413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBCM0-0004S4-HZ for submit@debbugs.gnu.org; Sun, 14 Feb 2021 03:02:05 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:54161) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lBCLw-0004Rd-7T for 46494@debbugs.gnu.org; Sun, 14 Feb 2021 03:02:02 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 11E81x70021556 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sun, 14 Feb 2021 08:01:59 GMT In-Reply-To: <52dad420-fd72-fe1c-6f74-f4c114a2deb8@gmail.com> (Andy Moreton's message of "Sat, 13 Feb 2021 16:58:11 +0000") 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:199987 Archived-At: Andy Moreton writes: > Problems notes with async compile in native-comp branch on Windows: > > 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. Please lets discuss each bug in each own thread, there's no need to use more then one place. > The stream of frequent warnings that causes make emacs mostly > unresponsive to user input. You can set `comp-async-report-warnings-errors' to nil if the packages you use have to many compilation warnings. For the motivation on reporting these warnings and more please see bug#44746. > 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. The default setting ATM should be to run on half of the cores (see `comp-effective-async-max-jobs'), if that's not the case on Windows should be fixed. > 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. M-x list-processes M: comp-files-queue Ideally would be nicer to have a dedicated way to present the async compilation status, but this does the job (for me at least). > 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). Mmmh, I guess this is a Windows specific behavior. Is there a specific way to shut-down child processes we would use on Windows not to get this error? Thanks Andrea