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: Sun, 25 Jul 2021 14:37:55 +0200 Message-ID: <87k0lewov0.fsf@gmx.de> References: <87o8asu1mg.fsf@jpl.nasa.gov> <87sg03apj1.fsf@gmx.de> <87zgubr31n.fsf@secretsauce.net> <87pmv7o9hn.fsf@gmx.de> <87wnpfr25i.fsf@secretsauce.net> <87czr7o8lc.fsf@gmx.de> <87r1fnr1cf.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="19609"; 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 Sun Jul 25 14:39:10 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 1m7dPS-0004sm-9x for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 14:39:10 +0200 Original-Received: from localhost ([::1]:58196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m7dPR-0007oN-06 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 25 Jul 2021 08:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m7dPK-0007oE-LV for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 08:39:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36225) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m7dPK-00080q-98 for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 08:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m7dPK-0002ph-4j for bug-gnu-emacs@gnu.org; Sun, 25 Jul 2021 08:39: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: Sun, 25 Jul 2021 12:39: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.162721668810813 (code B ref 49714); Sun, 25 Jul 2021 12:39:02 +0000 Original-Received: (at 49714) by debbugs.gnu.org; 25 Jul 2021 12:38:08 +0000 Original-Received: from localhost ([127.0.0.1]:47771 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7dOS-0002oK-Ki for submit@debbugs.gnu.org; Sun, 25 Jul 2021 08:38:08 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:49627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m7dOQ-0002nl-1b for 49714@debbugs.gnu.org; Sun, 25 Jul 2021 08:38:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627216676; bh=7JSIx7DGRjnEFJ4LWzOqn37KRn3k+Y1jT4+SEmqqb+k=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=XqTHjixRIr7IsQuCyyeS1ZUnmWDFSMRuCkZ1nPRqeOCOT1dgvh0MG43j4D3MqTfdG NXclmcPMomtX873V2EoirVnKhAmluUJh1wh2H1i/Rv3N9/jUdvs+Vi1MuM8FMxvazN G+0LKKF4hl1Zr/oGjRoZbiiRKDxSxJw+IivCJX34= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.249.69]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1M8QS2-1m3DXw1XN2-004WAq; Sun, 25 Jul 2021 14:37:56 +0200 In-Reply-To: <87r1fnr1cf.fsf@secretsauce.net> (Dima Kogan's message of "Sat, 24 Jul 2021 11:52:32 -0700") X-Provags-ID: V03:K1:5QFAw12HC6ViYPHcFUJV1ttTYIXdu9nlJIOlmh4kBdI5LMDPE8e Jx5p8g0OrKWl37xqkoD/OEYrU0NqzI/Njx6pQhxpUuhIBgng+0tdIItDy5AnGV2GkrgsvD0 FVcxMG0Rt2OVZDd2wY6UBtBGN0HI5DAm4TlEk3zXGrSKHvQfZ1NHxhjX8Wu6Mz+7l604yTT NoI+78v8rRssZHx4dlBcQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:vjP6kcn3kqY=:zYATfJewQw6EK0DdGyatdd /WQGDcH4WJtCj6JRV7XMowYjIgZld5RUf6Z9uXPAZ3kOZmC01F0HplDPxfFLZG6SaiCgpHkwc tbKpEoLaRvbi0AlfOiqKpEB6kc3v9Ip3JT6MkSctDaywnZlQhsWQJlZKXNXGlAkNAl6OkqFhn X4oqEsOlLT6ZbkiK4ic7sMhOBR+ZzB7i3xdfTvW4nkTdal1wANQcvexPuH2eId6Chw6t3jEyB C9+VAosAcaq080tfVIBaBTiHSsX6hEPHL4VB9B5d32jKBzB63szOofhRZAbWAXAkOr/7yh+ZE UjRUDBpcLgPFzwwk6uS90eaMtmCf5qceSolZItQoFrfKRxBkOqus82RRrSFw7DTZ7Frt8tRYr wrY5vRoDQ5Cf9leDJ5TLyL4vlCk6xSndedsmH3dJqrD8vY0z/HU5gtE9xN0VwmNmxiY0LH05q VzpJgNWtNc61myX2okCRNaCT5tFNEi5U6ttG+a/OoD3f6vsZrGdL8u8jDpkG5ON6odZsSV8tb w0oAk9z8FBzodlcrd2Od/7M4veR3g3AWS+YSQl2Y9rv0v/8lyKTog4C245Kl5K4BuWzDEzzI7 HzF9ybtcVW0kwECWjMz/BaM+92M7bCiAzaTAf0ihQ+i4cPaylIZr/aFxsQHUI6dUIjp0SOwah woiwr3V7+h8Hyfm5WRV07c9GSzubWTEI0DhQbIohHs+TR5ob5oq3+OhQ8G3YQmisD5LW4uxy7 ls1FrxepU2gzOpxJ0vo0dzfiZ5lhYAD/SiZ0mzYOfbX9KNo73vRVihzDysdSk+zr58f4EtSj 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:210710 Archived-At: Dima Kogan writes: Hi Dima, > But emacs is blocked anyway. At least with the code as it is today, > while TRAMP is spinning the cpu waiting for ssh to respond, emacs is not > responsive to any user input. In a perfect world we'd block on the read, > and then go back to the emacs main loop to do other stuff, but that's > hard for all the reasons you know. That requires a Tramp with thread support. I worked on this years ago, but this is stalled. > If we don't go back to the main loop > (as we don't today), then we don't lose anything by a blocking read. You > know much more about the internals than me; is there other work > happening between the checks during our non-blocking read? Other processes could provide their output, process filters, process sentinels, timers could run, all these asynchronous tasks Emacs runs in the background. > Thanks! Best regards, Michael.