all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Justin Van Winkle <justin.vanwinkle@gmail.com>
To: michael.albinus@gmx.de
Cc: 33194@debbugs.gnu.org
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, 5 Nov 2018 11:28:22 -0500	[thread overview]
Message-ID: <CA+gsFk+ef10cSmhaPa3OOOGwGtWARjjAhVjBZxTk3dbsxpv30A@mail.gmail.com> (raw)
In-Reply-To: <878t29gikk.fsf@gmx.de>

[-- Attachment #1: Type: text/plain, Size: 1679 bytes --]

I checked out and installed from master (at
294a5246b264441d436612d4de0dd89fad130aa3).

I still see 100% cpu usage in emacs.

What I did:

In one terminal I run 'emacs' from my home directory, and I don't open any
files.
In another terminal, again while in the home directory, I run 'cat
/dev/zero > zed'.

Emacs cpu usage spikes to 100%.

- Justin

On Sun, Nov 4, 2018 at 6:58 AM Michael Albinus <michael.albinus@gmx.de>
wrote:

> Michael Albinus <michael.albinus@gmx.de> writes:
>
> Hi Justin,
>
> >> I mean it is certainly a bug to use 100% of a cpu just because a file
> >> that is in the same directory to a file you are editing is being
> >> written to, but it may not be unintentional behavior.
> >
> > I could reproduce the problem. I have a running Emacs for some days, and
> > I've enabled `global-auto-revert-mode'. Starting scp copy of a large
> > file outside Emacs, brought Emacs up to 100% cpu usage.
>
> I have pushed a fix for this to Emacs' master branch in git. The case of
> several buffers using the same file notification descriptor was prepared
> already in the code; due to a silly bug it didn't work.
>
> > The variable `file-notify-descriptors' contains ...
> >
> > As we can see, many identical entries #s(file-notify--watch
> > /home/albinus nil auto-revert-notify-handler).
> > Every incoming event for "/home/albinus" triggers the many calls of
> > `auto-revert-notify-handler', although one entry would be sufficient. I
> > will check, where all these entries come from.
>
> This doesn't happen any longer for me. And Emacs doesn't eat all cpu
> time.
>
> Do you have a chance to build Emacs 27.0.50, for verification?
>
> Best regards, Michael.
>

[-- Attachment #2: Type: text/html, Size: 2361 bytes --]

  reply	other threads:[~2018-11-05 16:28 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-29 16:01 bug#33194: 26.1; Auto-revert mode causes emacs to use 100% cpu whenever a file is being written to in the home directory Justin Van Winkle
2018-10-29 20:27 ` Michael Albinus
2018-10-29 21:13   ` Justin Van Winkle
2018-10-29 21:14     ` Justin Van Winkle
2018-10-30  6:21     ` Eli Zaretskii
2018-10-30  8:39       ` Michael Albinus
2018-10-30 10:41         ` Eli Zaretskii
2018-10-30 10:44           ` Michael Albinus
2018-10-30 12:28             ` Eli Zaretskii
2018-10-30 13:12               ` Michael Albinus
2018-10-30 16:18       ` Justin Van Winkle
2018-10-30 16:58         ` Michael Albinus
2018-10-30 17:02           ` Justin Van Winkle
2018-10-30 17:08             ` Michael Albinus
2018-10-30 17:09               ` Justin Van Winkle
2018-10-30 17:32         ` Eli Zaretskii
2018-10-30 18:54           ` Justin Van Winkle
2018-10-30 18:55             ` Justin Van Winkle
2018-11-03 10:57               ` Michael Albinus
2018-11-04 11:58                 ` Michael Albinus
2018-11-05 16:28                   ` Justin Van Winkle [this message]
2018-11-05 21:18                     ` Michael Albinus
2019-01-04 12:56                       ` Michael Albinus
2019-03-28 12:36                         ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+gsFk+ef10cSmhaPa3OOOGwGtWARjjAhVjBZxTk3dbsxpv30A@mail.gmail.com \
    --to=justin.vanwinkle@gmail.com \
    --cc=33194@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.