From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii 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 14:28:36 +0200 Message-ID: <83zhuvk497.fsf@gnu.org> References: <878t2gbisr.fsf@gmx.de> <83pnvskl8b.fsf@gnu.org> <874ld3bzft.fsf@gmx.de> <834ld3lnsz.fsf@gnu.org> <87zhuvaf3w.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1540902435 12272 195.159.176.226 (30 Oct 2018 12:27:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2018 12:27:15 +0000 (UTC) Cc: justin.vanwinkle@gmail.com, 33194@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 30 13:27:11 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 1gHT70-000348-Bm for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2018 13:27:10 +0100 Original-Received: from localhost ([::1]:52900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHT96-0001QG-LI for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2018 08:29:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHT8t-0001OA-AG for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 08:29:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHT8p-0003b3-7M for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 08:29:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49214) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHT8n-0003Zn-UE for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 08:29:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gHT8n-0001d8-Pi for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 08:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Oct 2018 12:29: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.15409025246243 (code B ref 33194); Tue, 30 Oct 2018 12:29:01 +0000 Original-Received: (at 33194) by debbugs.gnu.org; 30 Oct 2018 12:28:44 +0000 Original-Received: from localhost ([127.0.0.1]:53472 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHT8V-0001ca-Gn for submit@debbugs.gnu.org; Tue, 30 Oct 2018 08:28:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47555) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHT8T-0001cO-Kn for 33194@debbugs.gnu.org; Tue, 30 Oct 2018 08:28:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHT8I-0003Ej-Rt for 33194@debbugs.gnu.org; Tue, 30 Oct 2018 08:28:35 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHT8G-0003D3-2V; Tue, 30 Oct 2018 08:28:28 -0400 Original-Received: from [176.228.60.248] (port=2506 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gHT8C-0000Gi-Sx; Tue, 30 Oct 2018 08:28:28 -0400 In-reply-to: <87zhuvaf3w.fsf@gmx.de> (message from Michael Albinus on Tue, 30 Oct 2018 11:44:19 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:151824 Archived-At: > From: Michael Albinus > Cc: justin.vanwinkle@gmail.com, 33194@debbugs.gnu.org > Date: Tue, 30 Oct 2018 11:44:19 +0100 > > 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. I believe you are saying that most of the CPU cycles are spent in the actual reverting. That might be so, but it isn't 100% sure, and I think we need some data to back that up.