From unknown Fri Jun 20 07:20:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#53041 <53041@debbugs.gnu.org> To: bug#53041 <53041@debbugs.gnu.org> Subject: Status: 29.0.50; TRAMP spins the CPU by polling the child processes without a delay Reply-To: bug#53041 <53041@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:20:59 +0000 retitle 53041 29.0.50; TRAMP spins the CPU by polling the child processes w= ithout a delay reassign 53041 emacs submitter 53041 Dima Kogan severity 53041 normal tag 53041 wontfix thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 05 18:03:58 2022 Received: (at submit) by debbugs.gnu.org; 5 Jan 2022 23:03:58 +0000 Received: from localhost ([127.0.0.1]:39265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5FK2-000285-Ki for submit@debbugs.gnu.org; Wed, 05 Jan 2022 18:03:58 -0500 Received: from lists.gnu.org ([209.51.188.17]:53482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5FK1-00027y-6K for submit@debbugs.gnu.org; Wed, 05 Jan 2022 18:03:57 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5FK1-0003nM-14 for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2022 18:03:57 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:59157) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5FJy-00053V-Kg for bug-gnu-emacs@gnu.org; Wed, 05 Jan 2022 18:03:56 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 683A03201F85 for ; Wed, 5 Jan 2022 18:03:51 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Wed, 05 Jan 2022 18:03:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=from:to:subject:date:message-id:mime-version:content-type; s= fm2; bh=LFC1JzLTOjaCLqqNZf/wmnbbxNXuuRZRgP/EUNfrgqc=; b=dXhBYA8I D9qHok60P7OqY7GeRDtUvXnmRpwIk0xLL0j4wm40xEoCNrsxgQlt0omHW4MLJ+Sb rWcCaRm5MdXhebIAgSffJ0v9NvaB9BP3GaF/OCbK1jfYBpMQC8JAkJuQhYTXdbgF YvxRxPzPPONleu//JdjTlvc0y0fxCnA8NkuJDUxWrlGfJUN0Rm7Gp+O1VsSW2rr6 CSyMmQnPQUG9BQuZnuYkvFH10rsTPO+siFVaaRzFLt6HRjeJPDgGGnVY1qLHnDMo mQ7Qed0OTHTPwlNpshQZEqdraHVfmggT+jYmA6LRT/xnI/dNHGFPtrXXOfKn6G/M /TQU4YKxIlsBLA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=LFC1JzLTOjaCLqqNZf/wmnbbxNXuu RZRgP/EUNfrgqc=; b=Tm2t+J/+/IdrH4FjnZrmfv6zqn+fw4vgfQenP8o/vNGDw y9LNXEAnYOjzvQtMxLKTvCMXkSdFrkylvTfJqErBeV45UKnnMr8nQNSZibXGYdnn Z6vXmvMsZU9veFpDKeClBVSaGAs+p/ByS0MlHAS5Lbm8fm7D+eepH1dtFi+whIMK i+dGLFKmEdwieqCLGahN40moW+ZfP8JzbZV/DUOUemXFIS5i3D1Vf4hzhV5NZ9YL c8ivhnycHUgjWy/4wL77smnd/+cVkoZF+anI/Od+vWhwuGcVPTRSWy08pUzjSCOm D/eTRH+k7lV7ASBIxCck5dlubCmDHrQz5GdD7g/og== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudefjedgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlqddutddmnecujfgurhephf fvufffkfggtgesthdtredttddttdenucfhrhhomhepffhimhgrucfmohhgrghnuceoughi mhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrghtthgvrhhnpeffvdffud fhkeffhfeifefhffdvtdfgfeejveeuvdefudejjeduveeftdeggeeuvdenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguihhmrgesshgvtghrvg htshgruhgtvgdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Wed, 5 Jan 2022 18:03:50 -0500 (EST) From: Dima Kogan To: bug-gnu-emacs@gnu.org Subject: 29.0.50; TRAMP spins the CPU by polling the child processes without a delay Date: Wed, 05 Jan 2022 15:03:48 -0800 Message-ID: <87pmp57pkb.fsf@jpl.nasa.gov> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.147.123.21; envelope-from=dima@secretsauce.net; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) Hi. I use TRAMP regularly, and I often see it redline my CPU, which shouldn't be happening. The cause in all cases I've seen is TRAMP expecting some output from the child process, and looking for this output in a delay-less loop. For instance (tramp-process-one-action) looks like this: (defun tramp-process-one-action (proc vec actions) .... (while (not found) (while (tramp-accept-process-output proc 0)) .... ) The (while (tramp-accept-process-output proc 0)) form does Read all available data; returns immediately if none is available So here we spin the CPU until there's some data to look at AND until the incoming data meets some condition we're looking for. In order to not spin, at least one of the (tramp-accept-process-output) calls needs to block. The simplest thing to do to fix this is to replace (while (tramp-accept-process-output proc 0)) with (tramp-accept-process-output proc nil) Here we block until we get SOME data back. I think this is probably good-enough, since the outer loop will get more data, if it's needed. If we really want to replace the original logic with blocking, we can do this instead: (let (timeout) (while (prog1 (tramp-accept-process-output proc timeout) (setq timeout 0)))) Either one of these makes most of these issues disappear. There are more places in the code where we call (tramp-accept-process-output ... 0), and I think they're all wrong: we should always block. I can send a patch, but let's agree on the approach first. My preference is to replace all the (while (tramp-accept-process-output proc 0)) with (tramp-accept-process-output proc nil) unless there's a specific reason not to. One easy way to reproduce one such behavior: 1. Start up emacs 2. open /ssh:SERVER:FILE 3. Break the network connection (I'm on a laptop. Leaving the wifi area is enough) 4. Try to type into the buffer visiting FILE 5. See emacs block the user while spinning the CPU. Thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 09 08:46:18 2022 Received: (at 53041) by debbugs.gnu.org; 9 Jan 2022 13:46:18 +0000 Received: from localhost ([127.0.0.1]:49417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6YWY-0003ei-BF for submit@debbugs.gnu.org; Sun, 09 Jan 2022 08:46:18 -0500 Received: from mout.gmx.net ([212.227.17.21]:41653) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n6YWV-0003eS-Dn for 53041@debbugs.gnu.org; Sun, 09 Jan 2022 08:46:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1641735966; bh=66BVZNXlohVaPyAdCQ2B/KZ5zQwt/bsKY09Q3/4+Ppg=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=AAwuDe/f4UNAAPUyMtkGbjMFojw0SAzSX5Gv2kDhjvM76V7N3h18xtd8hqcX1+hwR cM6Vz0ri3tjjhAqbAaLFop8T13NeQo7FzIiDPGzO04+unokduAiHGZb9LkPffE11pV GMHnKYaZMNQdpCGmYH0+FXhe0111kdY9zliSgeyE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([212.91.238.69]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MXp9Y-1msAvx4A1s-00YA9Y; Sun, 09 Jan 2022 14:46:06 +0100 From: Michael Albinus To: Dima Kogan Subject: Re: bug#53041: 29.0.50; TRAMP spins the CPU by polling the child processes without a delay References: <87pmp57pkb.fsf@jpl.nasa.gov> Date: Sun, 09 Jan 2022 14:46:04 +0100 In-Reply-To: <87pmp57pkb.fsf@jpl.nasa.gov> (Dima Kogan's message of "Wed, 05 Jan 2022 15:03:48 -0800") Message-ID: <87mtk5ja3n.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:Kw38ctVxrqYWlR/OB5XOagLIhp0iTfh+GvOSKbLeyu//XQf88Lg 1HRZxAkHkwa9qbrWVMkhM1cn2veYzR9f4Ow3sxc/5Srue8Ylzz2CRndA3QF9wzGshJoKgdY SUVtJXVqNC1o0avBRQoSWNH29KH3tSBF49XWhiREJ3KorsOwHMeYvdqVcEHnjPMOajC83Nj sAdNdbnD5Wb3HcFjo3THw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:xtyAGXIU5w8=:Nzp/ClZpmdScMYUPibc5na 8gg8pnDg1ajj8lfWFlAS/QeuLbJGyzcjJyKvobWuF/0L8+qQ9NGjZI8nY0vv+qc9u2b4DxZfA CqH1evbC1VpSU8LX6ZVEBoVz1eGmOwzjn0Jppp9B1+2jN/bomWc0h32ai3JzvCsiIK70x09Et 7nCRyXTH+DeQ0zvI0vihuIcBO2t091sFlEMgA0HJW1icMtpl9MTzrbQ4waToNGvtVq2UJXgWb 2huaAoOdhlH/HnVh58lz6OpFc7rq9aG0ESKMdEVy73AW0HLPL+Q1GQfGOUviw7fRotxEFhid0 nJ1HKhro6sgHsrYMn+bB6Snzf8LgUy/QbvC10LXDLw7NYERAbBi0lCcqDJqJmgzw1imPQtaec cK3YfteKlfGM/2HSbGeXkaQqn+tBZh3niH54iYqUvjTWzGX2vvS2Vv21ocX/CfZJ7lLES5xC4 fZ/dYWiAzh8eoTqUsJV/Y1nZXnjL6kiCtVdGOSX1uFhNO7xmi9BghUPvW4/Npxvur/IlUNDfK v04Remix+kPSU81mEmwSlfAgKS3NKCRdjkEtJ1rMBx2JivyDsmVUe4uQ3VxYdq3VFLLhf5Jbv tuQ87FC5OfX4HLuYp25XsTcd8GM2Ymo6XYK01m62oKomgis1WdW/uzhsx12XjPSdXwcIxDiq/ w7KFafurO2kczvHGKdRwqq05lgKhet8F2aJePwfSJJA4yVxG50iRqQGsn4IwFzKt1N1hkUuqv zRsK8jEx7c9sOnVZaiC05Rc+pRpcudCCRp1On4sjaYQwuikJkSL7xHK8d5T57If2RTYh7FL/0 RNHwE7R2rZceOfS+1tdFiKi2S9ERnkP4aCWDvJdoOFL7k9VGGZY/rkn21dh05vPkYeq65TQAk vZnkt/dYVTE9SFcJLa23Y1Bh+te9ph/I3oDBCE9I/A4KhqTNuVO9b3M+xVPZ/qt6f8xqxPe81 kFpOWExSGC+VLbYiQkmIQqoZzoD133lI00WetZDirK0f9ri0WoSWHxJJ4n++4F+Z2QJYtnbcC FT+oMd3t/XViaiOPBeT3/kH1ionYKk6FmElLiFQ93kkwkJUuis4uj6b1QlEhSnpTfROIJxuDn OJuflOxzVPvQaI= Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53041 Cc: 53041@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Dima Kogan writes: > Hi. Hi Dima, > I use TRAMP regularly, and I often see it redline my CPU, which > shouldn't be happening. > > The cause in all cases I've seen is TRAMP expecting some output from the > child process, and looking for this output in a delay-less loop. For > instance (tramp-process-one-action) looks like this: > > (defun tramp-process-one-action (proc vec actions) > .... > (while (not found) > (while (tramp-accept-process-output proc 0)) > .... ) > > The (while (tramp-accept-process-output proc 0)) form does > > Read all available data; returns immediately if none is available > > So here we spin the CPU until there's some data to look at AND until the > incoming data meets some condition we're looking for. In order to not > spin, at least one of the (tramp-accept-process-output) calls needs to > block. The simplest thing to do to fix this is to replace > > (while (tramp-accept-process-output proc 0)) > > with > > (tramp-accept-process-output proc nil) > > Here we block until we get SOME data back. I think this is probably > good-enough, since the outer loop will get more data, if it's needed. If > we really want to replace the original logic with blocking, we can do > this instead: > > (let (timeout) > (while > (prog1 > (tramp-accept-process-output proc timeout) > (setq timeout 0)))) > > Either one of these makes most of these issues disappear. There are more > places in the code where we call (tramp-accept-process-output ... 0), > and I think they're all wrong: we should always block. I can send a > patch, but let's agree on the approach first. My preference is to > replace all the (while (tramp-accept-process-output proc 0)) with > (tramp-accept-process-output proc nil) unless there's a specific reason > not to. > > One easy way to reproduce one such behavior: > > 1. Start up emacs > 2. open /ssh:SERVER:FILE > 3. Break the network connection (I'm on a laptop. Leaving the wifi area > is enough) > 4. Try to type into the buffer visiting FILE > 5. See emacs block the user while spinning the CPU. This was discussed several times already. The most recent discussion wrt Tramp starts at . The pattern (while (accept-process-output p) was proposed by Stefan Monnier in , so this is used in Tramp. I do not want to reopen this can of worms, reall= y. To fix your problem of a broken connection, the Tramp manual recommends to add "ServerAliveInterval 5" in your ~/.ssh/config, see (info "(tramp) Frequently Asked Questions") . Additionally, you might set "ServerAliveCou= ntMax 2". > Thanks Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 14 03:13:24 2022 Received: (at 53041) by debbugs.gnu.org; 14 Jan 2022 08:13:24 +0000 Received: from localhost ([127.0.0.1]:35401 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8Hi8-0004Eb-Ao for submit@debbugs.gnu.org; Fri, 14 Jan 2022 03:13:24 -0500 Received: from quimby.gnus.org ([95.216.78.240]:34546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8Hi5-0004EJ-TL for 53041@debbugs.gnu.org; Fri, 14 Jan 2022 03:13:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=pwMV4QoRiv84PFlJE//UoICUJrL6temCeumK0XWCno8=; b=bUPFfPGcE1JTigFQj1BdjOEHp2 yb26l+Y1siWXYYIEBX+Zw4e5du9vtZjZq3WTbdibpGOyxw6XaCDGHaaRiLnyn8rjRQJNFi1Y/1idb 9Tc1lLkKpGR4k5PXWPyk9r7LMk6s6h7Uce+dEI2pVmq+AdHOSpS40qPmUfY+kvHrk3PE=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8Hhw-0001bb-Lq; Fri, 14 Jan 2022 09:13:15 +0100 From: Lars Ingebrigtsen To: Michael Albinus Subject: Re: bug#53041: 29.0.50; TRAMP spins the CPU by polling the child processes without a delay References: <87pmp57pkb.fsf@jpl.nasa.gov> <87mtk5ja3n.fsf@gmx.de> X-Now-Playing: Various's _I Wanna Be Kate: The Songs of Kate Bush_: "Cloudbusting" Date: Fri, 14 Jan 2022 09:13:12 +0100 In-Reply-To: <87mtk5ja3n.fsf@gmx.de> (Michael Albinus's message of "Sun, 09 Jan 2022 14:46:04 +0100") Message-ID: <87fspqspk7.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Michael Albinus writes: > The pattern (while (accept-process-output p) was proposed by Stefan > Monnier in > , > so this is used in Tramp. I do not want t [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 53041 Cc: Dima Kogan , 53041@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Michael Albinus writes: > The pattern (while (accept-process-output p) was proposed by Stefan > Monnier in > , > so this is used in Tramp. I do not want to reopen this can of worms, really. > > To fix your problem of a broken connection, the Tramp manual recommends > to add "ServerAliveInterval 5" in your ~/.ssh/config, see (info "(tramp) > Frequently Asked Questions") . Additionally, you might set > "ServerAliveCountMax 2". If I understand correctly, this means that we won't be doing anything further in this bug report, and I'm therefore closing it. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 14 03:13:31 2022 Received: (at control) by debbugs.gnu.org; 14 Jan 2022 08:13:31 +0000 Received: from localhost ([127.0.0.1]:35404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8HiF-0004F1-Jw for submit@debbugs.gnu.org; Fri, 14 Jan 2022 03:13:31 -0500 Received: from quimby.gnus.org ([95.216.78.240]:34562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8HiD-0004Ec-Nf for control@debbugs.gnu.org; Fri, 14 Jan 2022 03:13:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DblOX9aHooH+Qyy1d3LCELThobJzX69ddvR00W3m6fA=; b=VK9tAYlColL6Doy4ALEGduIwjh Wlm38VRk1j6AE1yoKxVjaMbX534+ZPXsROcviOTCVNEa0SgX1HFPW6gBIJiJjLxqby6tdyq5noDAP qsbdBW8LMpwUEphVYWU6vZwXg7NyH8FG0unHnI3VCVfydBgiCDJlDs2T/gzJ/zkzMxK0=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8Hi5-0001bl-Rn for control@debbugs.gnu.org; Fri, 14 Jan 2022 09:13:24 +0100 Date: Fri, 14 Jan 2022 09:13:21 +0100 Message-Id: <87ee5aspjy.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #53041 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 53041 wontfix close 53041 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 53041 wontfix close 53041 quit From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 14 13:34:54 2022 Received: (at 53041) by debbugs.gnu.org; 14 Jan 2022 18:34:54 +0000 Received: from localhost ([127.0.0.1]:38114 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8RPa-00016E-8x for submit@debbugs.gnu.org; Fri, 14 Jan 2022 13:34:54 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:57169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8RPX-00015x-M3 for 53041@debbugs.gnu.org; Fri, 14 Jan 2022 13:34:53 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 4978B3200E5D; Fri, 14 Jan 2022 13:34:45 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 14 Jan 2022 13:34:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type; s=fm2; bh=E2wBnnTifyg70oVF3fvo5PlOS1 EiVKcK5renEhhfiUQ=; b=iXxvuku58RbqTU2C7kWjh5U3UngHP7fYhPixahWS8e F0y6vWk0BvywbiXol0n2cT3Yi3jGWiHbtyt7XPbjbtPqlN76F2f8uomayhBwC3Uz VKBSdZmzaY/VIKEC8tXQkFBJnL8oA0S22tJMYKtOvAIIJ0HDHJH/aOfSHH4Cj7se hhLdTOAsvfOkIVNn4Q/0QgHiXUGz9N9j0eyHCxa7sPVvmgIdfLZccwHrrh82lwvo mEP167FmBrbZQJK8V2IhjW3HvsurJj8ptaVR4r4XPPn017iUHnfzkIn5101JrwZG tiOdt7J+LQ0qgSUu1H3/vYDASfdXE/sqkUcS9GbhbvfQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=E2wBnn Tifyg70oVF3fvo5PlOS1EiVKcK5renEhhfiUQ=; b=LumQfrckfSqRg+Ny+Va6hc SCglUdPxAILhEXIkRkmDa8g06NR28SPwRYT9c1fGJt88g2uIG8GL+NM9oV8n0toQ a/EOXZb10GjvC5Jb5e0pHdwI8NH4ExWMoL150rF8tB4AEJZxGThop8pgi/ejRXOf W8u+NyzWzE4I6Tb5XsNO7Qaw931bDtvxKIQhi1cFRKXhrcsBvjjGUE6JjaXJYxJ2 Pe4uTFEY53zrqGFDiDxhSlh1UgDmZtvGLVfjzGawfq6V3eW4iAxCrMldT3M+iYJj qnARMheKit+mSigrt9UKrDs5Ii0aTdmspKizvIUOVvgrh2UGgvj9zxMfuJ8qu2Xw == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrtdehgdduudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfhgfhffvufffjgfkgggtsehttdertddtredtnecuhfhrohhmpeffihhmrgcu mfhoghgrnhcuoeguihhmrgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrth htvghrnheptefgjeelveehtddthffhleehveffffffgeeigfdtkefgfefhheegleeflefg vdejnecuffhomhgrihhnpehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepughimhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 14 Jan 2022 13:34:44 -0500 (EST) References: <87pmp57pkb.fsf@jpl.nasa.gov> <87mtk5ja3n.fsf@gmx.de> User-agent: mu4e 1.6.10; emacs 29.0.50 From: Dima Kogan To: Michael Albinus Subject: Re: bug#53041: 29.0.50; TRAMP spins the CPU by polling the child processes without a delay Date: Fri, 14 Jan 2022 10:33:47 -0800 In-reply-to: <87mtk5ja3n.fsf@gmx.de> Message-ID: <87tue617zw.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53041 Cc: 53041@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Michael Albinus writes: > This was discussed several times already. The most recent discussion wrt > Tramp starts at . > > The pattern (while (accept-process-output p) was proposed by Stefan > Monnier in , > so this is used in Tramp. I do not want to reopen this can of worms, really. > > To fix your problem of a broken connection, the Tramp manual recommends > to add "ServerAliveInterval 5" in your ~/.ssh/config, see (info "(tramp) > Frequently Asked Questions") . Additionally, you might set "ServerAliveCountMax 2". Thanks for the links, Michael. I'll dogfood some patches for a while, and we can maybe talk about it later if those consistently work well. Thanks From unknown Fri Jun 20 07:20:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 12 Feb 2022 12:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator