Subject: bug#35457: 26.2; global-auto-revert-mode cause 100% cpu usage

From: Eli Zaretskii <[email-masked]>
Date: Sat, 27 Apr 2019 20:36:43 +0300

> From: Johannes Lundberg <[email-masked]>
> Date: Sat, 27 Apr 2019 09:50:54 -0700
> 
> Add (global-auto-revert-mode 1) to .emacs.
> Start Emacs.
> Emacs now using 100% cpu.
> truss -p <pid> show that Emacs is doing fstatat(), possibly stuck
> endless loop.
> 
> 
> In GNU Emacs 26.2 (build 1, amd64-portbld-freebsd13.0, GTK+ Version 3.24.7)

Not reproducible on GNU/Linux.  Maybe this is a FreeBSD specific
problem, due to kqueue implementation of file notifications?

Does this happen if your .emacs includes only the above line?