From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22814: 25.0.91; Emacs runs out of file descriptors on OS X Date: Sat, 27 Feb 2016 21:14:23 +0200 Message-ID: <83lh66aru8.fsf@gnu.org> References: <87twkupoq9.fsf@gmx.de> <83d1ricxyp.fsf@gnu.org> <87lh66nv22.fsf@gmx.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1456600522 10546 80.91.229.3 (27 Feb 2016 19:15:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Feb 2016 19:15:22 +0000 (UTC) Cc: michael.albinus@gmx.de, 22814@debbugs.gnu.org To: Anders Lindgren Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 27 20:15:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aZkKc-00077D-Gt for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Feb 2016 20:15:10 +0100 Original-Received: from localhost ([::1]:55959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZkKb-0004WN-UM for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Feb 2016 14:15:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZkKY-0004Vy-3y for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 14:15:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZkKU-0002Uy-3p for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 14:15:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZkKU-0002Uu-17 for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 14:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aZkKT-0005ZD-US for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 14:15:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Feb 2016 19:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22814 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22814-submit@debbugs.gnu.org id=B22814.145660049321370 (code B ref 22814); Sat, 27 Feb 2016 19:15:01 +0000 Original-Received: (at 22814) by debbugs.gnu.org; 27 Feb 2016 19:14:53 +0000 Original-Received: from localhost ([127.0.0.1]:49068 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZkKL-0005Yc-7s for submit@debbugs.gnu.org; Sat, 27 Feb 2016 14:14:53 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41135) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZkKJ-0005YP-Sy for 22814@debbugs.gnu.org; Sat, 27 Feb 2016 14:14:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZkKA-0002Ry-Oz for 22814@debbugs.gnu.org; Sat, 27 Feb 2016 14:14:46 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZkKA-0002Ru-LT; Sat, 27 Feb 2016 14:14:42 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2251 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aZkK9-0008LV-Q9; Sat, 27 Feb 2016 14:14:42 -0500 In-reply-to: (message from Anders Lindgren on Sat, 27 Feb 2016 20:00:30 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113965 Archived-At: > Date: Sat, 27 Feb 2016 20:00:30 +0100 > From: Anders Lindgren > Cc: Eli Zaretskii , 22814@debbugs.gnu.org > > I don't think the problem is what kqueue does when it run out of file descriptors, but how the rest of the Emacs > process acts when this happens. For example, can it even read and write files? Can subprocesses be > started? Even if it can't, it shouldn't hang. It could signal an error for any operation that needs a file descriptor, but it shouldn't hang. Then the user could kill one of the buffers under auto-revert, or manually switch to not using notifications, and be able to continue the session. Btw, my recommendation is to turn off auto-revert-use-notify in any session that uses global-auto-revert-mode. File notifications simply don't scale up well enough for that, given that Emacs sessions tend to run for many weeks and have many hundreds of file-visiting buffers. Also, if you somehow end up visiting a file in /tmp, your Emacs will get notifications about every temp file operation on the OS, which will probably slow it down quite a lot.