From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys Date: Sat, 24 Jul 2021 20:30:07 +0200 Message-ID: <87lf5vo98w.fsf@gmx.de> References: <87o8asu1mg.fsf@jpl.nasa.gov> <87sg03apj1.fsf@gmx.de> <87zgubr31n.fsf@secretsauce.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4315"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 49714@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 24 20:31:19 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1m7MQg-0000up-NP for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Jul 2021 20:31:18 +0200 Original-Received: from localhost ([::1]:47014 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7MQf-0004HE-PA for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Jul 2021 14:31:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7MQQ-000485-Uw for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 14:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7MQQ-0006Pt-Mh for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 14:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7MQQ-0002tN-K6 for bug-gnu-emacs@gnu.org; Sat, 24 Jul 2021 14:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Jul 2021 18:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49714 X-GNU-PR-Package: emacs Original-Received: via spool by 49714-submit@debbugs.gnu.org id=B49714.162715141911043 (code B ref 49714); Sat, 24 Jul 2021 18:31:02 +0000 Original-Received: (at 49714) by debbugs.gnu.org; 24 Jul 2021 18:30:19 +0000 Original-Received: from localhost ([127.0.0.1]:46981 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MPj-0002s0-E5 for submit@debbugs.gnu.org; Sat, 24 Jul 2021 14:30:19 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:41133) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7MPh-0002rn-K4 for 49714@debbugs.gnu.org; Sat, 24 Jul 2021 14:30:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627151408; bh=be0ggs0xuriRHOJeha/grABRaE7AXU2D6V28dFM5gx4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=OAeg26M/k6b1ccEkAirjxSliQQE2HXuhCSFDOBpjfKlD4IxYSVk5r6ER8EQhQUryC OK0GRYcLEQ7BIIBxnwmTHMD31YGanrcJEfOLqDf9rrkuUgTRt9OZpWFN1MMOLScfqf Pv6ZPZpxoX/SMCayr55G/wzC5VrEtRV+0WT7R/8M= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([213.220.149.95]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M1HZo-1m5hik1YV8-002l4G; Sat, 24 Jul 2021 20:30:08 +0200 In-Reply-To: <87zgubr31n.fsf@secretsauce.net> (Dima Kogan's message of "Sat, 24 Jul 2021 11:15:48 -0700") X-Provags-ID: V03:K1:jPWIhPvHnBjaYMyKamkH/gQcraegjwPgPEN2zH7htpFJl0x9qb6 VFeh+NBLsFM8KMipoAWZKAxqThm0zC+SABwX55W9oXh6Nm8veb0CwIB1hA+epjasGrPdBoA hkHhTIde47Jrnf3oaJOiEMZAPAcM0vCbU/FfP6PqCzUPUkuvCOGImkVt/3ynL+f5MeqylTH VZqqo0xwkFmXzRzx+1PRw== X-UI-Out-Filterresults: notjunk:1;V03:K0:irNVWKq43+M=:wizx9cinhUbC7GC3VauyUY +nXsHkcw8xkes47xUf+iDVqq8i3aPRn9DhizfO2sXYhHFj57TjDRxRv5df0IHLY0Ovd2NIF2A ibFIpyO/8oPEWUMlMh+7Czs+kaNcdsQwBvPJDDrT5YYHpNv+wwTj9/hWYIS7BtEInS6lm/frE eFCGfO5Lcn9Ra4C6NWlPrAMbvXhB9cdzUXkdGdGGhFmqrIMoUIn//nGox/LEDfm9wDOksIqHx KuN3d8TyZuns9/ghtrpg0OUOw102wYp4heDuKR0et26G40o1QnVhH0MTrff0hCsHoWItL96AL 3GXmQv3FkAWIYwY094cYSi1uacp3y+UxpCw6TG+AAZFrFsgh4wY4xTZo2FZ8dH6oI5TD6iM4o M96ptA8NvSvTa1D8OyHjgMygPl/f2XkoF0yeyfOAoTurOpRADYn67G4JHcTwH40WbL10vJlth AqLUphOW24n6YckJ7OQetz1di+NDEc+y+Kua6EDT4W8O43cjVWsCdAV/BzfN8YDLCtzmBU6qf /cWM6sEQ7DFuPgQy81Efvt/aULZZxVgZATtBxNSoBl4exrYNmN/t9CudxD2xLFCRqCt7YUM65 bZrfrM0usVlivd9uKEz+Ba7+y41HKKEI+KvlTk3vkLtWvjTsjora8agQuA3E3kRGNceKs2V8J /AjQ16kVCqkwyrjyJ/0X4iwmQdkVCq/jc6wJM1cohbw2WUQDmzcEr6ooT1MIxlU8xSmAkN5N5 vITozIabmGFP+4tR2o7NRuX4tL4Uv2m86fsNjZ8I8y+DTYltQjkHEGS5w7g6ELo12U3HIemA X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210657 Archived-At: Dima Kogan writes: Hi Dima, >>> 1. Emacs should not be spinning the CPU. This is actually an old bug. I >>> usually see this with normal SSH connections, but it only happens >>> during the login sequence, which isn't very long. In THIS case the >>> login sequence could be longer. In any case, we shouldn't be >>> spinning. >> >> Not so simple. Tramp is in a loop, reading the process output, and >> checking, whether there is something it has to handle (for example, >> password requests). This loop runs until Tramp detects the remote shell >> prompt. > > There should be a loop, but emacs shouldn't be using all my CPU cycles > while waiting for user interaction. Emacs can select() on the ssh > process file descriptor, and sleep until the ssh process has stuff to > say. Well, I'm on Lisp level. I just have accept-process-output, and in my loop I check whether there is new output. There's no low level API to let Emacs sleep for the ssh process file descriptor.