From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62975: 29.0.90; Forking processes on macOS has become very slow in Emacs 29 Date: Tue, 25 Apr 2023 17:59:19 +0200 Message-ID: References: <83sfcu4bzy.fsf@gnu.org> Reply-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6528"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cc: Eli Zaretskii , John Wiegley , 62975@debbugs.gnu.org To: "M. Ian Graham" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 25 18:01:19 2023 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 1prL6U-0001X4-OF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Apr 2023 18:01:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1prL5K-0003sG-Ht; Tue, 25 Apr 2023 12:00:06 -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 1prL5H-0003rn-Ue for bug-gnu-emacs@gnu.org; Tue, 25 Apr 2023 12:00:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1prL5H-0000pO-KH for bug-gnu-emacs@gnu.org; Tue, 25 Apr 2023 12:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1prL5G-00031m-Vk for bug-gnu-emacs@gnu.org; Tue, 25 Apr 2023 12:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Apr 2023 16:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62975 X-GNU-PR-Package: emacs Original-Received: via spool by 62975-submit@debbugs.gnu.org id=B62975.168243837111568 (code B ref 62975); Tue, 25 Apr 2023 16:00:02 +0000 Original-Received: (at 62975) by debbugs.gnu.org; 25 Apr 2023 15:59:31 +0000 Original-Received: from localhost ([127.0.0.1]:53413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prL4k-00030U-W4 for submit@debbugs.gnu.org; Tue, 25 Apr 2023 11:59:31 -0400 Original-Received: from sonic304-22.consmr.mail.ir2.yahoo.com ([77.238.179.147]:43948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1prL4j-00030F-3c for 62975@debbugs.gnu.org; Tue, 25 Apr 2023 11:59:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1682438362; bh=YfzGTjAG5PHzY6bksVS05zKpeoaLii0S/du0XhGyzx4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=WAH2wrwxwlVD+XV+65g+5iKVoKmONOGRFx60Ilw0byWRghMJwfWSAhIILK7oS0m5M7qHKMaR2h85iC4+SUiPEpID1Aik2FKvKamAaGLVl8Qzv2pV2Xl2igUaJmkpVn/3lSr1V7HxRjbo3NHS6XRL0gMINJL28z6DuypZ9K6tomBZpC2ZBMuUL2l0skHIz1mbr9yegkkpaueJpNAoGC90XYlc/YtuPtTmL2b885vsLO9eCqkJ+41Ll7C3F7JmhYyLMoOABEOuUNSSxHN9uEhJ63xLm88zxkR8Fvju9KjH2twjT5l8V9sVCtZmsgbiQXNcjcIDP0ZWkwao+GfehsidCA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1682438362; bh=lFVw6xKlCoSI8ZTsUuaTTVdY728ySHl50ZYnyBTtasT=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=gOes2T9ac/Z8yL32Si/KNfjA7fGz5zuxnMGNeGrz66HFoLcCXIWJh+HTfi326fwDTPWo/2TXd5RhUisEK/1XUegFq/VI/Y9Vi1bgVm+2TCoC/gqGm8AzjBR7rz7t/rVY9LyCcNc0Srnv/yjUYRzoNoOfLT29fVMNm0kPUCYSc4r3cu9d4LV+COFAagKXCjvn7BrodvpO2INADcq3e4P9txY1nSVd6jUdXwXUcS4iPmi4FNLvq3/XYS0tsYFmO4bS1RpOPGxewNnQGoha1KS8bKIkpPuZXr/ZIn6rmN8pxSGSn2oiFdqN9j/uUtg2Iw0cJme3iWJffwCYAdnARuBmWw== X-YMail-OSG: FUncyCsVM1nvTws4SkMCBaLxe1fQk3_rxr5iIMBOWK2udGjgDcX7onkIvR7qlZS OWd4HK_gPsKV01n7oktgVwLFLHZ_6z5P6cAqX3m9_cbFZvM5Z92O98C5BdRIvbgFcOowJs.0wJNS LGpmeRfME0ZR7VleIxPEpAQ_1SWr80SSlwbelyXUz8X57Ofv_aAd9iyaKwjlMGH5qzWGYuHfiYpP TeXgvJO6eyFwSCj8jNNvUXxidDQ_uOoU7PhQE_s.tN00CUJEeXvU3LW5T157gDSEKncyi9SBCYYb aGHCH6_wMemPbJyokxTbHUwMDcXMYgNy2328hyW5O6mU78M10astTKaz3LlrEBtVEyk9xrtDKKu_ PHJLWIFUfj8dUaRVXZPb7e_4PbNWovYYxNF_sTBS2q0fQX8qQ4V6Bj4uCxk50daD.vL0JSIDm3S. 6iemCmXwMT8OpU0cGjMG7B9fwHbAJrzDkZBnKwm7fvl8muJTeJne6r61v0Vhbg_vC9BOobkxg7wr lgA3Ej2xX5YY._eanMSHK_tG1KzjKjShaDjKhRynTF3Af5vz.vxE2RefzcMXpYRYiOsrLZ0QMLvp 7X76GwEcnzuaFWr5vFNvOc3cj0g8rHyzpXgnlo3YJtAPJ8LCx0QEI3VgQTkCqnlXD9bXEktoFQZ4 HoHoQbtTkOfFnFz1oY_at96aPs1SeJsbPhxxi7wN4yDy4HXWJFOXisKADdCMO7LP4lxGD.RJ8DIf x4EvJ_miscRFtG0sQKtIfnQ3GulKnhjZR0YqMAdmTHqXShoI9IRMkGMFdv0v8ngoqgOPIqaptPE1 XCRYnxWcwcKsL1S12VXMQ8eiLMjYvZHycTCegFhuKf X-Sonic-MF: X-Sonic-ID: 68b12341-b9ad-4c34-8c20-a1481cf59502 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ir2.yahoo.com with HTTP; Tue, 25 Apr 2023 15:59:22 +0000 Original-Received: by hermes--production-ir2-74cd8fc864-29g5c (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID d31323bb3510bad64922bcfe5f469c05; Tue, 25 Apr 2023 15:59:21 +0000 (UTC) In-Reply-To: (M. Ian Graham's message of "Sat, 22 Apr 2023 07:06:17 +0000") X-Mailer: WebService/1.1.21417 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260626 Archived-At: "M. Ian Graham" writes: >> Can someone else who uses Emacs 29 on macOS reproduce this regression >> in performance relative to Emacs 28? > > I've observed the same general trend at the same general time but had tro= uble getting a clear handle on the difference. > > Vague personal observations: I've noticed slowdown on macos (x86) but not= linux in recent months, but in addition to moving emacs versions from v28 = to master to v29 I've also changed installation methods from homebrew to ni= x+home-manager so that's a massive confounder. > > Large loads of things like my org config, elfeed or magit seem sluggish n= ow (often multiple seconds) where they were snappy before (sub-second), and= my impression has been that either forking or I/O is much slower but I hav= en't done much narrowing. I'm unsure at present whether my own observations= are due to emacs versions or nix/build/installation differences. > > On magit specifically, I've followed the magit manual's advice re: the ma= git executable affecting perf (https://magit.vc/manual/magit/MacOS-Performa= nce.html) but not seen significant changes there. > > I just attempted to reproduce some difference via emacs -Q and a simple r= ecipe, but haven't easily been able to see a signal. Below are my results f= or v28 vs v29, both installed via nix. I'm also slowly trying other install= ation methods with the same recipe to see if anything jumps out. > > So far, v28 feels plenty slow too. > > John: Any advice on recipe or setting changes that might get me closer to= your results, or should I be seeing something as is?=20 > > Cheers, > Ian > > > --- Timing summary --- > > Emacs 28: Refreshing buffer =E2=80=98magit: emacs=E2=80=99...done (1.880s) > Emacs 29: Refreshing buffer =E2=80=98magit: emacs=E2=80=99...done (1.910s) > These results are pretty much similar. If the performance degradation is something you notice but can't reproduce in a benchmark, I'd recommend using the macOS Instruments tool to capture a performance trace of Emacs 28 vs 29, while doing the same operations (magit or elfeed refresh, for example). A performance trace from Instruments would help us assess, at the OS and C level, if the slowdown you perceive is real, and where the bottleneck may be. Let me know if you are not very familiar with Instruments and I'll instruct you how to capture a performance trace of Emacs with it.