From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#38644: 26.3; emacs uses 100% CPU with auto-revert-mode Date: Sun, 5 Jan 2020 20:57:42 +0100 Message-ID: <0723EC9F-3A54-4E84-8D96-EA8D17985A62@acm.org> References: <7C3E0AFE-BCA6-4FAF-9EA0-FB0E79BAD443@acm.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="117295"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38644@debbugs.gnu.org, Michael Albinus To: Peter Ludemann Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 05 20:58:16 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ioC2P-000ULC-1K for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jan 2020 20:58:13 +0100 Original-Received: from localhost ([::1]:44866 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioC2N-00036n-TI for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jan 2020 14:58:11 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51448) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ioC2H-00036h-1s for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2020 14:58:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ioC2E-0001XA-PM for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2020 14:58:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38709) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ioC2E-0001X0-Gj for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2020 14:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ioC2E-0006bb-Fg for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2020 14:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2020 19:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38644 X-GNU-PR-Package: emacs Original-Received: via spool by 38644-submit@debbugs.gnu.org id=B38644.157825427225375 (code B ref 38644); Sun, 05 Jan 2020 19:58:02 +0000 Original-Received: (at 38644) by debbugs.gnu.org; 5 Jan 2020 19:57:52 +0000 Original-Received: from localhost ([127.0.0.1]:44682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioC23-0006bC-Rx for submit@debbugs.gnu.org; Sun, 05 Jan 2020 14:57:52 -0500 Original-Received: from mail171c50.megamailservers.eu ([91.136.10.181]:53840 helo=mail92c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ioC22-0006b3-1e for 38644@debbugs.gnu.org; Sun, 05 Jan 2020 14:57:51 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1578254267; bh=47Z9Pw70i1sy1oDRVFBKlSkxKkyMgT7ayVgBmL/S2SI=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=XXbap5G1p6+iIIBFB1wETcmNbYgU/07ZKLh4ggXU0ugoM8cAPQdulOCHRj9cmIX1R kc2holyySziPDfjpVDztQd87mawH3Er+sHK0UYMftAqw8h0lQ8pRxOX0HdZReiMycX cGzdUPpl/zwt3yffacP9sgyn+ksMSBI0ZzSWBrAo= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail92c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 005Jvh1Q026113; Sun, 5 Jan 2020 19:57:45 +0000 In-Reply-To: X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0208.5E123FBB.0012, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=RJbN4Lq+ c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=pGLkceISAAAA:8 a=eIUIkSDOL_9gSiVz5KoA:9 a=CjuIK1q_8ugA:10 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:174209 Archived-At: 5 jan. 2020 kl. 20.31 skrev Peter Ludemann : > Which version of Emacs would you like me to try this with? And what = result are you expecting/hoping to see? (e.g., might it reduce the = current 30-80% CPU load for polling with emacs 28.0.50?) There are only = a few open files directly under /tmp, so would this have any effect or = does it propagate down to subdirectories? >=20 > [Also, I'd need a few more details (not being an emacs-internals = person) ... should I add this to my .emacs and restart, or execute in a = scratch buffer, or ...?] 'auto-revert-avoid-polling' is a single global customisable variable, so = you would set it using M-x customise-variable RET auto-revert-avoid-polling RET , then turn it on and apply the change. I believe it was introduced in = Emacs 27. The idea is to save CPU by not having to look at files periodically to = see if they have changed. I have no idea if you would see any = improvement at all, but it shouldn't make anything worse.