From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Madhu Newsgroups: gmane.emacs.devel Subject: tramp "too many open files" [Re: bug#56606 Date: Mon, 20 Mar 2023 19:01:20 +0530 Message-ID: References: <86ilnwafso.fsf@stephe-leake.org> <86a6989itv.fsf@stephe-leake.org> <8335f0qbvn.fsf@gnu.org> <831qujrjnm.fsf@gnu.org> <86h73ex91m.fsf@stephe-leake.org> <83k089omhb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18884"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Cancel-Lock: sha1:+QTbML/UetwulPqHxPRohhnBhBs= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 20 14:51:21 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1peFuz-0004kn-1F for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Mar 2023 14:51:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peFu4-0008Bp-DQ; Mon, 20 Mar 2023 09:50:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peFby-0000rB-7f for emacs-devel@gnu.org; Mon, 20 Mar 2023 09:31:48 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peFbw-0006Bn-5i for emacs-devel@gnu.org; Mon, 20 Mar 2023 09:31:41 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1peFbn-0008od-Vi for emacs-devel@gnu.org; Mon, 20 Mar 2023 14:31:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 20 Mar 2023 09:50:23 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304599 Archived-At: The #56606 is archived and this may be unrelated and related to tramp, but I wanted to note I encoutered something similar on recent master (GNU Emacs 30.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2023-03-18) native compilation. Running the image after it compiled, when trying to save a zip file attachment in mew with y, I ran into the too many open files problem. ``` $ lsof -n|wc -l 59510 $ lsof -n |grep tramp|wc -l 4036 ``` most of the entries in lsof were ``` COMMAND PID TID TASKCMD USER FD TYPE DEVICE SIZE /OFF NODE NAME emacs 30346 31097 gdbus madhu 865r REG 8,14 2 5318 1334064 /14/build/emacs/lisp/net/tramp-archive.elc emacs 30346 31097 gdbus madhu 866r REG 8,14 2 5318 1334064 /14/build/emacs/lisp/net/tramp-archive.elc emacs 30346 31097 gdbus madhu 867r REG 8,14 2 5318 1334064 /14/build/emacs/lisp/net/tramp-archive.elc emacs 30346 31097 gdbus madhu 868r REG 8,14 2 ``` Of course I could do nothing but kill the process. I updated mew to 6.9 and tried the sequence again in a fresh emacs, but wasn't able to reproduce this (but hit a vertico bug instead) If this looks familiar, or if someone has a clue about it, please tell me. Maybe I should a bug report under the `tramp' product if I hit it again.