all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: "Mattias Engdegård" <mattiase@acm.org>
Cc: Robert Pluim <rpluim@gmail.com>, 40023@debbugs.gnu.org
Subject: bug#40023: 26.3 Emacs crashes when creating process if many file handles are in use (e.g., when using ccls)
Date: Sun, 12 Apr 2020 12:19:44 +0200	[thread overview]
Message-ID: <87pncdgg5b.fsf@gmx.de> (raw)
In-Reply-To: <CAD5E152-4AA6-45AF-ACF3-EE8F0EE309E0@acm.org> ("Mattias Engdegård"'s message of "Sat, 11 Apr 2020 20:15:37 +0200")

Mattias Engdegård <mattiase@acm.org> writes:

> Actually reducing RLIMIT_NOFILE doesn't sound like a terrific idea --
> if anything, we need as many descriptors as we can get, in particular
> on macOS where kqueue uses up one per monitored file. If we are
> limited by FD_SETSIZE, then we shouldn't use select. Or am I missing
> something?

kqueue limits itself to (RLIMIT_NOFILE - 50) file descriptors. If 50
file descriptors aren't sufficient, we could increase that number, or
make it a defvar changeable via Lisp.

See line 397 of kqueue.c

Best regards, Michael.





  parent reply	other threads:[~2020-04-12 10:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-11 13:50 bug#40023: 26.3; Emacs crashes when creating process if many file handles are in use (e.g., when using ccls) Holger Pirk
2020-03-11 15:32 ` Robert Pluim
2020-03-11 16:17   ` Eli Zaretskii
2020-03-11 16:45     ` Holger Pirk
2020-03-12  7:27       ` Robert Pluim
2020-03-12  7:26     ` Robert Pluim
2020-03-12 15:11       ` Eli Zaretskii
2020-03-12 15:24         ` Robert Pluim
2020-03-12 15:50           ` Eli Zaretskii
2020-03-12 16:46             ` Robert Pluim
2020-03-19 10:41               ` Robert Pluim
2020-03-19 14:36                 ` Eli Zaretskii
2020-04-11 18:15 ` bug#40023: 26.3 " Mattias Engdegård
2020-04-11 19:02   ` Eli Zaretskii
2020-04-12 10:19   ` Michael Albinus [this message]
2020-04-14 13:58     ` Robert Pluim
2020-04-14 16:02       ` Mattias Engdegård
2020-04-14 16:14         ` Robert Pluim
2020-04-14 16:23           ` Eli Zaretskii

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=87pncdgg5b.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=40023@debbugs.gnu.org \
    --cc=mattiase@acm.org \
    --cc=rpluim@gmail.com \
    /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.