From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#33194: 26.1; Auto-revert mode causes emacs to use 100% cpu whenever a file is being written to in the home directory Date: Tue, 30 Oct 2018 11:44:19 +0100 Message-ID: <87zhuvaf3w.fsf@gmx.de> References: <878t2gbisr.fsf@gmx.de> <83pnvskl8b.fsf@gnu.org> <874ld3bzft.fsf@gmx.de> <834ld3lnsz.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1540896194 8914 195.159.176.226 (30 Oct 2018 10:43:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2018 10:43:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: justin.vanwinkle@gmail.com, 33194@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 30 11:43:10 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHRUI-00029N-5W for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2018 11:43:06 +0100 Original-Received: from localhost ([::1]:52083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHRWO-0003y1-Gt for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2018 06:45:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHRWF-0003wx-3e for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 06:45:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHRWA-0006XS-4H for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 06:45:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49159) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHRWA-0006XJ-04 for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 06:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gHRW9-0003Hw-SZ for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 06:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Oct 2018 10:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33194 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33194-submit@debbugs.gnu.org id=B33194.154089627012590 (code B ref 33194); Tue, 30 Oct 2018 10:45:01 +0000 Original-Received: (at 33194) by debbugs.gnu.org; 30 Oct 2018 10:44:30 +0000 Original-Received: from localhost ([127.0.0.1]:53417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHRVe-0003H0-AX for submit@debbugs.gnu.org; Tue, 30 Oct 2018 06:44:30 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:43285) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHRVc-0003Gn-QS for 33194@debbugs.gnu.org; Tue, 30 Oct 2018 06:44:29 -0400 Original-Received: from detlef.gmx.de ([213.220.159.224]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Ltqb7-1fazRI2AS5-011CGQ; Tue, 30 Oct 2018 11:44:21 +0100 Original-Received: from detlef.gmx.de ([213.220.159.224]) by mail.gmx.com (mrgmx001 [212.227.17.190]) with ESMTPSA (Nemesis) id 0Ltqb7-1fazRI2AS5-011CGQ; Tue, 30 Oct 2018 11:44:21 +0100 In-Reply-To: <834ld3lnsz.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 30 Oct 2018 12:41:00 +0200") X-Provags-ID: V03:K1:gRyo5XwCtXNWBhyTL/syf8KyMyCKg58BA024ezfv0qT5PFcsAtP 7ntya/91BvF3l3G6iuxMQ/dWZyym39RdS/X2RXzgmFe35ARo1WurCnHrD0cGAYMYNcyyexc QcWTxhINbhyHQWuLjUUYmaErgXt/nrSyBJFIEwOTQTvB0J/SldiezHxLgRTyNEvhKsaIfca KzrGS4mM+T335rwgso9vQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:Ipf8vzMhnh8=:Qm2tNFdt0bvG/t7sWtJJA7 YiOTGw9LyXbCZ6KzpITrOVEwhBDwxOoLd4EusYTTlnMSrXv8Ya37JKnjcAJntR67MP7h1IdPg 94ludXMFnw7qUD3GCe1CCTdgOY0yGnO+JH5oE+kdi7M0W3dMhLNkiOE0D5C7uGrpouf4vfGZ1 qWbjiGuOyp7YJmvuvM6I8rfINyYHGIR6vj8xDJ4bhgp12ClvqO/26HXd5Z8P/sR2LZmvyYGQa z8t/cpGCfvJc0XTov5++D1fJyUZk8QfkCB9G906Wtan2dgpqg6UrhoCsuGYMesu18jZ6auZAi SG8jxh+zr/030IO2IRYeO91iqMgnbRBiex1yowM4CP3wU8A4wzqZxTM7ISNJNtlCpxJ/14UXH a6ggTD/oYdnwONg7IIkuTTOIvc+laIIseAaII8tUFXJS+NjsvOXmm9N9PuY+8mPcn4dMqE7aw iIjqnMjbT/zeMBNGSdYL3JkZcHqeT59QGEL22bOuGvQId+NGM2zTDyj/EP88EVHSVsHGTYFG2 ra+rvK123QSLVVrHmLheU1J1TCVzjCtrFEXe9P7DSIYtbTZPhvVw2nOCEntGSaDwmsoXsuJyy 5dPgx6usS+jpnUoTYhS9AqX5MziGOEQprFNsVI0iCKy561dzpN+CiPFkSGvl0xkxsq38vpzFe xnOEc4vnmBrERXsZ/xGpsKgCkRAwJMVJzRlX+Lmv6akPzO+Zzt4bHXRYB/A8wWJAgewfTLULW J+nqnaOFCPlrgnYUzLJF5123DxipK8YwtMzcdwF6KF2ozcs2resddVSiDWK5g7IqljJN5nQ6 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: 208.118.235.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:151822 Archived-At: Eli Zaretskii writes: >> One defense action which comes to mind is to manage the incoming >> events. If there is a burst of `change' events in a short time, they >> could be cumulated to one event, as inotify does. Implemented in >> `file-notify-handle-event', this would applicable to all file >> notification backends, and not only to inotify. > > But won't that by itself require CPU for processing? Yes, but is doesn't call `revert-buffer' for every single `change' event. Best regards, Michael.