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#61258: 29.0.60; pgtk build from git, WSLg, slow, heavy cpu use Date: Wed, 02 Aug 2023 14:49:44 +0300 Message-ID: <83v8dxzmsn.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11549"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61258@debbugs.gnu.org, jsberg-bnl@outlook.com To: Fujii Hironori Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Aug 02 13:50:21 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 1qRAMu-0002lO-MC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 02 Aug 2023 13:50:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qRAMe-0001XU-KK; Wed, 02 Aug 2023 07:50:04 -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 1qRAMc-0001XC-I2 for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 07:50:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qRAMc-0002Vk-8O for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 07:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qRAMc-0002qJ-3z for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2023 07:50: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: Wed, 02 Aug 2023 11:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61258 X-GNU-PR-Package: emacs Original-Received: via spool by 61258-submit@debbugs.gnu.org id=B61258.169097698410897 (code B ref 61258); Wed, 02 Aug 2023 11:50:02 +0000 Original-Received: (at 61258) by debbugs.gnu.org; 2 Aug 2023 11:49:44 +0000 Original-Received: from localhost ([127.0.0.1]:48987 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRAMK-0002ph-9A for submit@debbugs.gnu.org; Wed, 02 Aug 2023 07:49:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRAMJ-0002pU-3Q for 61258@debbugs.gnu.org; Wed, 02 Aug 2023 07:49:43 -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 1qRAMD-0002Tv-QR; Wed, 02 Aug 2023 07:49:37 -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=6V4FgfYaFLdD9s/aoJBKmc3dwlGysQNMU3l7Ztp9+tE=; b=hs/JNSbEXE06 n4vPXp1cBwcl4R86tqq6H6stdiymDvolc0GuIt3xGgtF2qYnsbvJBSikG+rovI0Tkdej+lwxoHZKa z255gjxFXfFqjXGVHERcE34uwfR/aw6vwExLbr1sAaCvJYw8Tc37IDSqpNn1mc+TYZeyyVUuSB0Zu ydGfqbHMc71PMxCzTeB4EQO6UGG1XDP3BqRSF798CS4/gExmqLOH3YYgbRCGUcuq+lHzGHLxpunWx E7QN/Xxn7i9fA2egEYONXTjjvTxAfIBiAVvYNWTe0S68KOeWYj5n+WxAcY40SjUsi4FbCL65JvTf1 MRIBxvlDxXhS/kqyoH3PkQ==; 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 1qRAMD-0004mg-A5; Wed, 02 Aug 2023 07:49:37 -0400 In-Reply-To: (message from Fujii Hironori on Wed, 2 Aug 2023 07:01:27 +0900) 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:266492 Archived-At: > From: Fujii Hironori > Date: Wed, 2 Aug 2023 07:01:27 +0900 > > > Emacs built with pgtk. Editing in f90 mode, though I don't think this is > > important. Display is WSLg. Severe input lag, to the point off becoming > > unusable, gets worse with more frames (or just time?). Heavy CPU usage by > > emacs while doing anything. Problem not seen when not built with pgtk. > > I'm observing a similar high CPU usage problem with Emacs 29.1 on WSL1 and X server, not with > WSLg. > As suggested by > https://www.reddit.com/r/emacs/comments/urivlg/high_cpu_usage_in_wsl_with_emacs_29050/ > reverting > https://github.com/emacs-mirror/emacs/commit/fa52782f5c4eaef7138534766dfc8a29465785b2 > solves the problem for me. Thanks, but to do anything with this report we'd need at least to understand what is causing the high CPU usage. The linked Reddit post has a profile, but only before removing those 4 lines. Perhaps comparing two profiles, before and after the change, while doing the same stuff in the same build of Emacs, would give us some ideas.