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 17:13:22 -0400 Message-ID: References: <878t2gbisr.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a351490579648a29" X-Trace: blaine.gmane.org 1540847528 15977 195.159.176.226 (29 Oct 2018 21:12:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2018 21:12:08 +0000 (UTC) Cc: 33194@debbugs.gnu.org To: michael.albinus@gmx.de Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 29 22:12:04 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 1gHEpQ-000439-4P for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2018 22:12:04 +0100 Original-Received: from localhost ([::1]:49012 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHErW-0006CY-E7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Oct 2018 17:14:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHErP-0006Bk-Lt for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 17:14:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHErK-0004oF-NE for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 17:14:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48003) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gHErK-0004o2-Ie for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 17:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gHErK-0002SC-1W for bug-gnu-emacs@gnu.org; Mon, 29 Oct 2018 17:14: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 21:14: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.15408476219390 (code B ref 33194); Mon, 29 Oct 2018 21:14:01 +0000 Original-Received: (at 33194) by debbugs.gnu.org; 29 Oct 2018 21:13:41 +0000 Original-Received: from localhost ([127.0.0.1]:52261 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHEqy-0002RO-Jx for submit@debbugs.gnu.org; Mon, 29 Oct 2018 17:13:40 -0400 Original-Received: from mail-lf1-f47.google.com ([209.85.167.47]:33469) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gHEqx-0002RC-Dw for 33194@debbugs.gnu.org; Mon, 29 Oct 2018 17:13:39 -0400 Original-Received: by mail-lf1-f47.google.com with SMTP id i26so2892881lfc.0 for <33194@debbugs.gnu.org>; Mon, 29 Oct 2018 14:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ofu8/CEunPAb0W/twH8iotmQuYsygrrDUppriJLRS9s=; b=Hv7JUWK01/QOwp4bc3Awt2CsYsQBYQ07Kn6u372hUdbLOb6qlmyD075OAcHsgz7GLZ q3kTYKcVmSXjNKyw+qKxxf8ZPgaFszVM++s5UkOhDC7HARzeKBnMqTYmbeDjlaOBdbmG X+tYbR7ELoBoFnR/SJ9400QcezrEy6IuSj3Bdi/GbdapkWC/xoMpXOlDRC69DDnNTP+M zhelEKa15mK4RgKj3Y7mYkTbzKeD+5Wy0UllIS1J8EdPFE44/xvuGe1wabt1nFdx3dsw q++VeLxiPCyLkyvPiJKRZW4Y5gXN5idP8XV07jwNcw8JEnKMJRcDcrUMmZhcnhdKG8JP z3Iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ofu8/CEunPAb0W/twH8iotmQuYsygrrDUppriJLRS9s=; b=dFZOS3BFnQqWyB4SxqkXHNWBJhhQH54Sy3q1RyOnfYwJUFxDTPM2EBgFWFolVrG3J5 iCUlWOtmTrZxXlGFmFH+5u0vU+w1Aj9HoCC7+BJrwHYQQ1gxuefg0VseRJvZndU23QBb GzY9CMrblEFxzCEWX1b3/MqAwhw6q5CX72F1JysBH4mguTTwYDQFheWqJS5DhazX/aze 6F+6qxrcjJzihUYLXMRyKwnU63CLBmEUbLAF5BLEVQCJisxXDvh7hSGgGM/5F6j8N1IN 3OAEI6gZ5xIlKRBBe3XGvwMs+Mz6BHjZvQ8dVr/TgH+xfYw7M1g9h34DcY6+Z6u6wNmu po8A== X-Gm-Message-State: AGRZ1gLD2131lhJDDg3UFrk4TqPlYOSeglA1y1VxJkiDIB/erNhTpt/G nDZOPOUjMK2EeN3oZEtgtOAF/Mud610EerR7EUg= X-Google-Smtp-Source: AJdET5cdS5ASxwl9Wj8ObQ/B/Z9eEFWUYfy7nMy9DGohXun/XcUzN+PtmntPpc7eYLJoXUkGfINR3m2y5FYBthKoj4g= X-Received: by 2002:a19:9cd5:: with SMTP id f204-v6mr199443lfe.41.1540847613200; Mon, 29 Oct 2018 14:13:33 -0700 (PDT) In-Reply-To: <878t2gbisr.fsf@gmx.de> 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:151788 Archived-At: --000000000000a351490579648a29 Content-Type: text/plain; charset="UTF-8" Hi Michael, 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/ I am pretty sure I can reproduce this at will if you need. - Justin On Mon, Oct 29, 2018 at 4:27 PM Michael Albinus wrote: > Justin Van Winkle writes: > > Hi Justin, > > > 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. > > How did you "scp'ing a large file"? Inside Emacs, using Tramp, or > outside Emacs? > > Best regards, Michael. > --000000000000a351490579648a29 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Michael,

It was outside of emacs.=C2= =A0 SCP would trigger the cpu usage in emacs, rsync would not (oddly).=C2= =A0 Both "cat /dev/zero > somefile"=C2=A0 and "dd if=3D/d= ev/zero of=3Dsomefile" would trigger it if somefile was in my $HOME di= rectory, but none of these would trigger it if I did it in, for example, $H= OME/Downloads/

I am pretty sure I can reproduce th= is at will if you need.

- Justin

On Mon, Oct 29, 2018 at 4:27 PM M= ichael Albinus <michael.albinu= s@gmx.de> wrote:
Justin Van = Winkle <= justin.vanwinkle@gmail.com> writes:

Hi Justin,

> I enable global-auto-revert-mode.=C2=A0 I noticed that when I was scp&= #39;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 to revert-buffer.=C2=A0 Auto revert was apparently listening for<= br> > changes in my home directory, even for things like file creation or > file modified for files emacs did not have open.

How did you "scp'ing a large file"? Inside Emacs, using Tramp= , or
outside Emacs?

Best regards, Michael.
--000000000000a351490579648a29--