From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#70901: 30.0.50; Tramp doesn't use ControlMaster even with (setq tramp-use-connection-share nil) Date: Thu, 16 May 2024 11:42:36 +0200 Message-ID: <87msoqcctv.fsf@gmx.de> References: <5959e6f4-607d-4a8f-8e49-fbdd9b438af1@gutov.dev> <87o79ags7m.fsf@gmx.de> <44185444-8a6a-4924-88f9-853f65a1c61a@gutov.dev> <87r0e4g428.fsf@gmx.de> <19d0563d-2778-4e27-92b0-03a86c8e1473@gutov.dev> <87y18bebf0.fsf@gmx.de> <871q63djrv.fsf@gmx.de> <9287b788-a366-48b2-8d8f-8f48d6144fac@gutov.dev> Reply-To: Michael Albinus Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30680"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 70901@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 16 11:43:45 2024 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 1s7XeL-0007lm-5U for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 May 2024 11:43:45 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7Xdd-0007wS-Dh; Thu, 16 May 2024 05:43:01 -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 1s7Xdb-0007w0-Re for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 05:42:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s7Xdb-0007eX-HU for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 05:42:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7Xdd-0000vR-KG for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 05:43:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 May 2024 09:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70901 X-GNU-PR-Package: emacs Original-Received: via spool by 70901-submit@debbugs.gnu.org id=B70901.17158525763551 (code B ref 70901); Thu, 16 May 2024 09:43:01 +0000 Original-Received: (at 70901) by debbugs.gnu.org; 16 May 2024 09:42:56 +0000 Original-Received: from localhost ([127.0.0.1]:47759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7XdW-0000vB-4F for submit@debbugs.gnu.org; Thu, 16 May 2024 05:42:56 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:50073) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7XdQ-0000v5-K8 for 70901@debbugs.gnu.org; Thu, 16 May 2024 05:42:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1715852557; x=1716457357; i=michael.albinus@gmx.de; bh=HYE4bY4XZspVRvZT+Zm+/dFb/RIj1pIIIqKZIYfU8VM=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=qhOopppnWWcqCj9/Ipd58wxoQdJMN5XX38fDM3WYRHO3HISsr2KA6jex7wzdPQKT EWuuKpCFHMD9PO0XZH4SJ7JuEvpPHzvU2KARORhMiKHZYDM6PqliIll96+B3cn0WN S2BlEImtjAxs3iSYxxNIn3fjiC9oZLfQGoPce/n5V3jh/r9+9JckyUGE8AlTE4VGw VQZYKy7L58EgNrOt7DVxigoS2qjZR77ca66oPwHUNjWczDcyawhGAGFHMA7Dur4NV 4nLCI4r5PeC92xsmE02UUxC00gaUC/d9l9a4fhkOatPOWX7nE9IDsPEgVGgK2kalv 3wn2LbACw8gU6MXmkw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.4]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Ma24y-1s1zDd28gu-00W0vd; Thu, 16 May 2024 11:42:37 +0200 In-Reply-To: <9287b788-a366-48b2-8d8f-8f48d6144fac@gutov.dev> (Dmitry Gutov's message of "Wed, 15 May 2024 22:55:18 +0300") X-Provags-ID: V03:K1:/KAjSVrv5rNHhjDyc3/5Oz82Yz01F2SJCE0Z2YQSZpsej2ZWRsb mc6ylsaN+t7Lr8cxzUdWEX9vvGGDjIEFJC+Ki/tSFxOSC6MU+YtEn6PgZLobcUdZPq72bdA zgwlEKe5nKykWtbhTZvmUtkYf1/O7Tdh+lGw1KEWo0Xn4sgTfU5xvVJPQAoUSf+GX3TgQfc UrxRVF9yirnjLAIVDfIxA== UI-OutboundReport: notjunk:1;M01:P0:U2E6Nv6WVsQ=;ansqps1TmaAoODTAvOSkwA4L2YF KDVshtQUmmLBTh1mn28Xt8eAEcaC8J/QrM8w2uOJNRNSleMqaFo3/YZqGP/qNzb4FAxve5ZKy 3lxkKXulSNoVwjxsy4qvEC6CWSXNveE22axMr3Aso+TXxWBPNH0HXNm3Ed+QAQjhNhWMA3cIO kE9sa8eVtYN0nEyiEj7VYMZtNTIDQsDx/cP2wS7NibosWa/sj9qcRU44BerkPOybVM/Gl+W20 dUg8gGn8TXYQQr4d5ut/KCpdZbIJjXXDfq6ygKyR6vEfCt3sNwPcshQp1rXtqMWdWtJOuU1PJ TF1wD+O1vDJysJTgw6wYZpPlaCagZEupJ2vuHrx4FaSWWxJW7F6mKMmeqeRk3G4sATkN8SLnd 6fCnZWhYAEApdL1RRVOunij/SC9FS4wkDUxGuoRgJSR2lAEFSUsO+QlZEoyNB9PElwEllBJ7a 67J72mxAPtHIS6hNi6iSSO1P8oxVinfs4QhXqx4IphXLfjfVusBmyDcC693tFBqOWwHdronCN 2cSD9JyvPmebyqGbw74vMVqSHqR2LJd9agkyjtvtVRM3/wQp3UognGX/gndKyIIGpyEh+POOz HaPiT+4Vl51NaY5LGtydsho1/qcUXsh4spxRnqETYu+QkGInhjg0r3W6SEugmgYz1S7hNIJqJ bJgJx8cRCpDj1ZOeuwOa87Y01o6mbsWWxFKiDBlan11/W0kC+3jV98XsvZLjVZn1t6ShY8/jt nKL74e/axnDuSOgCOJ7KS15cSXg6KVazXpP7i4Rgko1Dtc+O/Gb3uJyiz4BgR0ldJFSkkzJc 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:285142 Archived-At: Dmitry Gutov writes: > Hi Michael, Hi Dmitry, >> Well, the message is there not only waiting for the network >> connection, >> but also waiting for Tramp doing its initialization. So you cannot >> compare the time with a simple "ssh ..." from the shell. > > But it looks very similar to the time "ssh ..." takes in the shell. > > Except when I set up ControlMaster for the host, "ssh ..." in the > shell starts taking much less time (not having to establish a new > connection, I take it). > > Whereas the time it takes for Tramp to finish "Connecting ..." seems > unchanged. > >> Yes, because the majority of the time is spent in roundtrips during >> initialization. > > Does that mean that, somehow, Tramp is faster at establishing the new > connection than the terminal ssh? > > Then it would make sense that the rest of the time is taken by > additional work. > >> Again, it isn't only the ControlMaster option. And it depends also, >> whether there is already an existing connection, which can be reused. > > I test and compare by restarting Emacs at the beginning of each > scenario, or killing the existing connection anyway. > > We're supposed to reuse the external connection established by > ControlMaster, right? I mean, at least at the lower level of the > implementation. If we want to go into detail, we need a clean testbed. In your tests, I don't know whether another connection already exists which Tramp could reuse due to your ControlMaster settings. And we need to separate the time the "ssh ..." call takes inside Tramp, from the other time when Tramp does some roundtrips for the initialization. We must count the time Tramp needs when tramp-verbose has a higher level. Etc pp. Do we need this? We have seen that Tramp doesn't touch Control* options when you set tramp-use-connection-share to nil. And that's what this bug report is about. There is always place for improvement, patches welcome! But for this purpose, there is already bug#56342. Best regards, Michael.