bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22814: 25.0.91; Emacs runs out of file descriptors on OS X


From: Michael Albinus
Subject: bug#22814: 25.0.91; Emacs runs out of file descriptors on OS X
Date: Fri, 26 Feb 2016 09:34:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

David Caldwell <address@hidden> writes:

> Hello,

Hi David,

> I have a large emacs desktop file (600+ buffers at the moment). Emacs
> 24.5 would open all the buffers just fine, but 25.0.91 (and 90)
> apparently don't close the file after reading the buffer (or maybe it's
> part of the new kqueue stuff?). By default OS X limits the number of
> file descriptors per process to 256. So trying to open my large desktop
> file gets it into a stuck state where it cannot open any more files
> after it loads the first 240ish buffers.

You are using "global-auto-revert-mode: t". kqueue does not support a
directory monitor, therefore it starts a new file notification monitor
for every single file, indeed.

I believe it is questionable to run auto-revert-mode for so many files,
but that's your choice. In order to suppress kqueue running for
auto-revert-mode, you shall set auto-revert-use-notify to nil.

Maybe there are means in OS X to increase the number of file descriptors
for Emacs, don't know. I don't use OS X.

I will add a note to the Emacs manual.

> -David

Best regards, Michael.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]