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 08:21:56 +0200 Message-ID: <83pnvskl8b.fsf@gnu.org> References: <878t2gbisr.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1540880402 7535 195.159.176.226 (30 Oct 2018 06:20:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2018 06:20:02 +0000 (UTC) Cc: michael.albinus@gmx.de, 33194@debbugs.gnu.org To: Justin Van Winkle Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 30 07:19:58 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 1gHNNe-0001pN-8M for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2018 07:19:58 +0100 Original-Received: from localhost ([::1]:51076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHNPk-0000gp-NU for geb-bug-gnu-emacs@m.gmane.org; Tue, 30 Oct 2018 02:22:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHNPf-0000gk-7E for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 02:22:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHNPe-00017r-JQ for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 02:22:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48872) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHNPe-00017e-Fj for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 02:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gHNPe-0001GC-BO for bug-gnu-emacs@gnu.org; Tue, 30 Oct 2018 02:22: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: Tue, 30 Oct 2018 06:22:02 +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.15408805174831 (code B ref 33194); Tue, 30 Oct 2018 06:22:02 +0000 Original-Received: (at 33194) by debbugs.gnu.org; 30 Oct 2018 06:21:57 +0000 Original-Received: from localhost ([127.0.0.1]:53130 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHNPY-0001Fr-VU for submit@debbugs.gnu.org; Tue, 30 Oct 2018 02:21:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHNPW-0001Fe-NA for 33194@debbugs.gnu.org; Tue, 30 Oct 2018 02:21:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHNPN-0000kM-Kg for 33194@debbugs.gnu.org; Tue, 30 Oct 2018 02:21:49 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHNPN-0000k8-Eb; Tue, 30 Oct 2018 02:21:45 -0400 Original-Received: from [176.228.60.248] (port=3273 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gHNPM-00035I-Op; Tue, 30 Oct 2018 02:21:45 -0400 In-reply-to: (message from Justin Van Winkle on Mon, 29 Oct 2018 17:13:22 -0400) 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:151809 Archived-At: > From: Justin Van Winkle > Date: Mon, 29 Oct 2018 17:13:22 -0400 > Cc: 33194@debbugs.gnu.org > > It was outside of emacs. SCP would trigger the cpu usage in emacs, rsync would not (oddly). Both "cat > /dev/zero > somefile" and "dd if=/dev/zero of=somefile" would trigger it if somefile was in my $HOME > directory, but none of these would trigger it if I did it in, for example, $HOME/Downloads/ Isn't this expected? Auto-revert watches the directory of the file, so if a lot of changes happen in that directory, Emacs will get a lot of file-change notifications, and will need to process them. If you don't like this, customize auto-revert-use-notify to not use notifications. Or maybe there's some system-wide customization of inotify that determine the max frequency of inotify notifications when the changes are to the same file. (I don't know enough about inotify to say anything more specific, sorry.)