From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.devel Subject: Re: tramp "too many open files" [Re: bug#56606 Date: Mon, 20 Mar 2023 14:58:11 +0000 Message-ID: <87v8ivii64.fsf@posteo.net> 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="17697"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Madhu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 20 15:59:10 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 1peGyP-0003uU-Tf for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Mar 2023 15:58:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peGxq-0002Vl-7h; Mon, 20 Mar 2023 10:58:22 -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 1peGxo-0002VN-M9 for emacs-devel@gnu.org; Mon, 20 Mar 2023 10:58:20 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peGxm-0005b2-CM for emacs-devel@gnu.org; Mon, 20 Mar 2023 10:58:20 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3BCDE240356 for ; Mon, 20 Mar 2023 15:58:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1679324294; bh=BR7XJJZeWnMPQrVaOGyC93P1jP4wOteAqhGHmzc/wx8=; h=From:To:Cc:Subject:Date:Autocrypt:OpenPGP:From; b=qZErjKK+zjQ145nbR6ciUHfB4+ER834nCrBY4oW5LvTaty6dIdsxgZx8hqUuti0D2 HsQ8/P+TVcxEE5mF28GM3c04fupZM2bfg7s1u1GUHK50B+wHFfay4nB7qUm6YKAoSw pA+9OiJTwhSHXlfIz49QQ11ccqkfDLA8QbAPixf2qV9z8+Jm6MpzKh1DtUUZ8AAvUs mM3xSgU31nnj1AbEcTKtOw8ezloMouQO/vWb7o6pyEYc3ColWcN5ogYgGm9b6GurBC w+yZLWKvS8ADgGjTbhJEFgw+HCskeimvkBSdWquyIfrIcd2C84uYD8GMn2fhytQ3dA 0an/nK+7uTH/w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PgHsw5cjDz6tmH; Mon, 20 Mar 2023 15:58:12 +0100 (CET) In-Reply-To: (Madhu's message of "Mon, 20 Mar 2023 19:01:20 +0530") Autocrypt: addr=thievol@posteo.net; prefer-encrypt=mutual; keydata=xsDNBF8ylcIBDADG+hy+zR6L4/vbdDDZuSaMmSrU3A5QZJpeBCvxTr7MpzzruZbhLPW1K3R6N2MAedi8Y+C8o27FVRIjpdbaKMGu9je7JV/TbUQYo3SOwCK1vM4LUn4V6ZLzSYkuiEt4eyMoiDdyvN0pkcK6P9x9DCetcEVszXzQg+yzCVrQ2hXWDXWT4M18EC3wtO7RHPouMqGiwBFhBAYErCqFWFxQHkfbtG/4yGyJ58rglb65O3qijjMWvYwcWZun9/7qm8Z4/4mHopmo2zgU+OrptnLSZfkZGz3Y7Uf452xQGVq0Fv75NPvQru7y+DYVhuVXXyAmGxt+vf4rIiixMBbhKEPjcxEPAa2LTzex2IsTZR+QVG9uDnqCWcgaOEQ58fzXNvNhtwwF/Rgio2XWAJVdmFWS59/k9W58CIUSNKBMZh2XeGdEmtHvDtCxW3z6FJha36RzOM3fMNNiAGdFZJA84gcdloJR+sHCDTTPT3784fjr+V8An7sI581NGFzkRQqPvEQCZbUAEQEAAc0SdGhpZXZvbEBwb3N0ZW8ubmV0wsEOBBMBCgA4AhsDBQsJCAcCBhUKCQgLAgQWAgMBAh4BAheAFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmL3HCoACgkQDsVtFB0W75OVEAv/f6XxmtIFz08fUb8hBp/zJP6IC4/rhhh+0GMRIRzLN8DK0jV8JCzYdFHiRJOy2lNIOpmrrCmjRRxferc2G42+ePFIsslxhU46VSz1Z83NwIG3mpdYNV5WUTUdgzx ExHTNTFCd7NKv0nlHKQaAtdXm5bYnSHsnL7cx8z OpenPGP: url=https://posteo.de/keys/thievol@posteo.net.asc; preference=encrypt Received-SPF: pass client-ip=185.67.36.66; envelope-from=thievol@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:304601 Archived-At: Madhu writes: > 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. >From the Helm help: As Tramp archive often crash Helm and Emacs, Helm does its best to disable it, however it is hard to do so as Tramp Archive is enabled inconditionally in Emacs. Here I build my Emacs without-dbus to ensure Tramp archive wont kickin unexpectedly. -- Thierry