From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Justin Van Winkle 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: Mon, 29 Oct 2018 12:01:36 -0400 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000aa4b440579602f6a" X-Trace: blaine.gmane.org 1540831940 13271 195.159.176.226 (29 Oct 2018 16:52:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2018 16:52:20 +0000 (UTC) To: 33194@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 29 17:52:15 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 1gHAlz-0003Nj-Fo for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2018 17:52:15 +0100 Original-Received: from localhost ([::1]:46933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHAo5-0003YN-Uf for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2018 12:54:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHAg0-0005np-5f for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 12:46:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHAfy-0005Tk-DJ for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 12:46:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHAfy-0005TQ-8G for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 12:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gHAfx-0002LN-Uy for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 12:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Justin Van Winkle Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Oct 2018 16:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 33194 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15408315238960 (code B ref -1); Mon, 29 Oct 2018 16:46:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Oct 2018 16:45:23 +0000 Original-Received: from localhost ([127.0.0.1]:52078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHAfK-0002KQ-Nt for submit@debbugs.gnu.org; Mon, 29 Oct 2018 12:45:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gH9za-0001LJ-I2 for submit@debbugs.gnu.org; Mon, 29 Oct 2018 12:02:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gH9zP-0003CI-Uz for submit@debbugs.gnu.org; Mon, 29 Oct 2018 12:02:09 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38972) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gH9zN-0003A3-RT for submit@debbugs.gnu.org; Mon, 29 Oct 2018 12:02:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gH9zM-0007f2-4z for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 12:02:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gH9zF-0002z0-4P for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 12:01:56 -0400 Original-Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:41376) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gH9zD-0002uA-15 for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 12:01:52 -0400 Original-Received: by mail-lj1-x229.google.com with SMTP id z80-v6so2259742ljb.8 for ; Mon, 29 Oct 2018 09:01:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Z+OAG2mJSycIShxW4V9RNy79U6OpDGmrs0BAZZV/X9c=; b=BClOWIjZEYKjxDz3mzot+5fQ6MEeFPf5biXmXTVkyM3OYdBgZmqQnW1TT00mWwqeol 1uimBAuanLReugw0A1zgvcv9AacePTj/w0IgSYmSbgXDUzpdHK6BNb6RIggRqyl37Nk0 AaIoDHXjz7/p2mchDekyCBg2IsPmSNSEnoZISROIZDQ+H56B+P0Ja7H3jrbkDocTLvpG 8oTftgk5grjqp1/c+GUCwTdItYJWDtfj9savSODlDJqEC0Elzx6moCkGk0DbYwuDkVaY D6LX6cqoZJfTKNLRceQ9t55j4PIkOiHg0Yeqk4eUN6fvL8d9g3pLMalVRkofTNnxqTfJ 6wRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Z+OAG2mJSycIShxW4V9RNy79U6OpDGmrs0BAZZV/X9c=; b=W1YJFmZMQIcYfNYi0z7EPkVgG7zx5mQG5tfUM6qioJW42n835epSSIhHs0Ay9JEwT4 KTJnZDgduK0LsMCUh8iy3ONHbvzTv7EBfk8cDmoL8KBriwLfDLDw+XunvAHhICrpJYQE 6L0UtwjpjQ3q6btBtWC929qrguXaCrIJUZBzmZmdhWMHPei5sY+xRklz+pjc5wzqeUmk noAo4WOWSVdiAcyoTueCzauJDfGJLvNxSpPvCjuCzPwNWadSvQ0xDPkwOAEFL7MOCPTi 1kccxnUK3+gOXIxkac1scjFZea5/0rwJLCvZrBJRpVmKCleC4ujBdvPzPEbXn5qovl1J OzVA== X-Gm-Message-State: AGRZ1gIBH9e7u4r1ddnEOB271iGfKy+tXqZodfLRXgYmbTGgwjojKc+k bn0oHyB56ub45/02/vMNqHGghGl4GQBg4KApoI9EROIEvzA= X-Google-Smtp-Source: AJdET5f9h/B0jusbTNi/OUNSeodCTirc+k/uRYgdev5eGqeRRi3CuzcWKM5Ca5VjZ+QtS8xu3ksJoXDgEacO4YtnGsY= X-Received: by 2002:a2e:2019:: with SMTP id g25-v6mr1932464ljg.20.1540828907062; Mon, 29 Oct 2018 09:01:47 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Mon, 29 Oct 2018 12:45:20 -0400 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:151779 Archived-At: --000000000000aa4b440579602f6a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable From: Justin Van Winkle To: bug-gnu-emacs@gnu.org Subject: 26.1; Auto-revert mode causes emacs to use 100% cpu whenever a file is being written to in the home directory --text follows this line-- I enable global-auto-revert-mode. I noticed that when I was scp'ing a large file to my home directory, every emacs process on my machine was trying to use 100% cpu. When I stopped the file transfer, emacs would go back to idle cpu usage. I ran the emacs profiler and narrowed it down to revert-buffer. Auto revert was apparently listening for changes in my home directory, even for things like file creation or file modified for files emacs did not have open. I am running emacs from the MASTER branch from the github mirror. Doing this little experiment again with the emacs25 build that is distributed with Ubuntu, no extra cpu usage was seen, so the bug is either specific to emacs>26 or something about my build (which should have been basically generic: autogen.sh; ./configure; make -j8 or something to that effect). In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-10-14 built on bt Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c20ea1ea Windowing system distributor 'The X.Org Foundation', version 11.0.11906000 System Description: Ubuntu 18.04.1 LTS Recent messages: Loading autorevert...done Loading paren...done Eshell virtualenv support initialized. For information about GNU Emacs and the GNU system, type C-h C-a. [2018-10-29 11:56:06] =E2=80=98*scratch*=E2=80=99 [1 259200] [2018-10-29 11:56:06] =E2=80=98 *Minibuf-0*=E2=80=99 [1 259200] [2018-10-29 11:56:06] =E2=80=98*Messages*=E2=80=99 [0 259200] [2018-10-29 11:56:06] =E2=80=98 *code-conversion-work*=E2=80=99 [0 259200] [2018-10-29 11:56:06] =E2=80=98 *Echo Area 0*=E2=80=99 [0 259200] [2018-10-29 11:56:06] =E2=80=98 *Echo Area 1*=E2=80=99 [0 259200] Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2 Important settings: value of $LC_ALL: en_US.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=3Dibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: global-flycheck-mode: t flycheck-mode: t show-paren-mode: t global-auto-revert-mode: t auto-insert-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml mml-sec epa epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair justin-theme pcomplete esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util clang-format xml flycheck derived cl-extra json map find-func help-mode rx subr-x pcase jka-compr compile let-alist virtualenvwrapper advice gud easy-mmode comint ansi-color ring s dash cl diary-lib diary-loaddefs cal-menu calendar cal-loaddefs midnight edmacro kmacro paren autorevert filenotify autoinsert cus-start cus-load finder-inf info package easymenu epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 228652 15199) (symbols 48 29258 1) (miscs 40 61 108) (strings 32 53756 2633) (string-bytes 1 1775330) (vectors 16 21499) (vector-slots 8 577491 8994) (floats 8 65 52) (intervals 56 244 59) (buffers 992 11)) --000000000000aa4b440579602f6a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
From: Justin Van Winkle <jvanwink= @ct.i-did-not-set--mail-host-address--so-tickle-me>
Subj= ect: 26.1; Auto-revert mode causes emacs to use 100% cpu whenever a file is= being written to in the home directory
--text follows this line-= -

I enable global-auto-revert-mode.=C2=A0 I notice= d that when I was scp'ing a
large file to my home directory, = every emacs process on my machine was
trying to use 100% cpu.=C2= =A0 When I stopped the file transfer, emacs would
go back to idle= cpu usage.=C2=A0 I ran the emacs profiler and narrowed it
down t= o revert-buffer.=C2=A0 Auto revert was apparently listening for changes
in my home directory, even for things like file creation or file
modified for files emacs did not have open.

I am running emacs from the MASTER branch from the github mirror.

Doing this little experiment again with the emacs25 build = that is
distributed with Ubuntu, no extra cpu usage was seen, so = the bug is
either specific to emacs>26 or something about my b= uild (which should
have been basically generic: autogen.sh; ./con= figure; make -j8=C2=A0 =C2=A0or
something to that effect).=C2=A0= =C2=A0


In GNU Emacs 26.1 (build 1, = x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
=C2=A0of 2018-10-14 bu= ilt on bt
Repository revision: 07f8f9bc5a51f5aa94eb099f3e15fbe0c2= 0ea1ea
Windowing system distributor 'The X.Org Foundation'= ;, version 11.0.11906000
System Description: Ubuntu 18.04.1 LTS

Recent messa= ges:
Loading autorevert...done
Loading paren...done
Eshell virtualenv support initialized.
For information abo= ut GNU Emacs and the GNU system, type C-h C-a.
[2018-10-29 11:56:= 06] =E2=80=98*scratch*=E2=80=99 [1 259200]
[2018-10-29 11:56:06] = =E2=80=98 *Minibuf-0*=E2=80=99 [1 259200]
[2018-10-29 11:56:06] = =E2=80=98*Messages*=E2=80=99 [0 259200]
[2018-10-29 11:56:06] =E2= =80=98 *code-conversion-work*=E2=80=99 [0 259200]
[2018-10-29 11:= 56:06] =E2=80=98 *Echo Area 0*=E2=80=99 [0 259200]
[2018-10-29 11= :56:06] =E2=80=98 *Echo Area 1*=E2=80=99 [0 259200]

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOU= ND GPM DBUS GSETTINGS NOTIFY
ACL LIBSELINUX GNUTLS LIBXML2 FREETY= PE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 THREADS = LIBSYSTEMD LCMS2

Important settings:
=C2= =A0 value of $LC_ALL: en_US.UTF-8
=C2=A0 value of $LANG: en_US.UT= F-8
=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 loca= le-coding-system: utf-8-unix

Major mode: Lisp Inte= raction

Minor modes in effect:
=C2=A0 gl= obal-flycheck-mode: t
=C2=A0 flycheck-mode: t
=C2=A0 sh= ow-paren-mode: t
=C2=A0 global-auto-revert-mode: t
=C2= =A0 auto-insert-mode: t
=C2=A0 global-eldoc-mode: t
=C2= =A0 eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0= mouse-wheel-mode: t
=C2=A0 file-name-shadow-mode: t
= =C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-compression-mod= e: t
=C2=A0 column-number-mode: t
=C2=A0 line-number-mo= de: t
=C2=A0 transient-mark-mode: t

Load= -path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddef= s
format-spec rfc822 mml mml-sec epa epg gnus-util rmail rmail-lo= addefs
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbre= v gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-uti= l mail-prsvr
mail-utils elec-pair justin-theme pcomplete esh-var = esh-io esh-cmd
esh-opt esh-ext esh-proc esh-arg esh-groups eshell= esh-module esh-mode
esh-util clang-format xml flycheck derived c= l-extra json map find-func
help-mode rx subr-x pcase jka-compr co= mpile let-alist virtualenvwrapper
advice gud easy-mmode comint an= si-color ring s dash cl diary-lib
diary-loaddefs cal-menu calenda= r cal-loaddefs midnight edmacro kmacro
paren autorevert filenotif= y autoinsert cus-start cus-load finder-inf
info package easymenu = epg-config url-handlers url-parse auth-source
cl-seq eieio eieio-= core cl-macs eieio-loaddefs password-cache url-vars
seq byte-opt = gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date
mule-= util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-flo= at-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dn= d fontset image regexp-opt fringe tabulated-list replace newcomment
text-mode elisp-mode lisp-mode prog-mode register page menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core term/tty-colors frame cl-generic cham georg= ian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao kor= ean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech = european
ethiopic indian cyrillic chinese composite charscript ch= arprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarr= ay minibuffer
cl-preloaded nadvice loaddefs button faces cus-face= macroexp files
text-properties overlay sha1 md5 base64 format en= v code-pages mule
custom widget hashtable-print-readable backquot= e dbusbind inotify lcms2
dynamic-setting system-font-setting font= -render-setting move-toolbar gtk
x-toolkit x multi-tty make-netwo= rk-process emacs)

Memory information:
((= conses 16 228652 15199)
=C2=A0(symbols 48 29258 1)
=C2= =A0(miscs 40 61 108)
=C2=A0(strings 32 53756 2633)
=C2= =A0(string-bytes 1 1775330)
=C2=A0(vectors 16 21499)
= =C2=A0(vector-slots 8 577491 8994)
=C2=A0(floats 8 65 52)
=C2=A0(intervals 56 244 59)
=C2=A0(buffers 992 11))
=
--000000000000aa4b440579602f6a--