From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov 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 22:50:20 +0300 Message-ID: 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> <87msoqcctv.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39575"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 70901@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 16 21:51:28 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 1s7h8R-000A7A-OS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 May 2024 21:51:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7h83-00044g-C7; Thu, 16 May 2024 15:51:03 -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 1s7h7z-00044X-Of for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 15:50: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 1s7h7z-0002xi-A4 for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 15:50:59 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s7h81-00033t-LO for bug-gnu-emacs@gnu.org; Thu, 16 May 2024 15:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 May 2024 19:51: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.171588903311757 (code B ref 70901); Thu, 16 May 2024 19:51:01 +0000 Original-Received: (at 70901) by debbugs.gnu.org; 16 May 2024 19:50:33 +0000 Original-Received: from localhost ([127.0.0.1]:50635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7h7Z-00033Z-Co for submit@debbugs.gnu.org; Thu, 16 May 2024 15:50:33 -0400 Original-Received: from fhigh1-smtp.messagingengine.com ([103.168.172.152]:33479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s7h7X-00033T-6M for 70901@debbugs.gnu.org; Thu, 16 May 2024 15:50:32 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 4F4141140126; Thu, 16 May 2024 15:50:23 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Thu, 16 May 2024 15:50:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1715889023; x=1715975423; bh=Z8zlyGU3iEl/Z3EJB2m0NSOMCBOcRsUgQ//G48BB9uU=; b= INrceZ0S+tXkDNTqGcrLMuWfBf2YswEpFKh9Lz0nRv8aHVu0d+jawEbYHFFHJZJQ sz26b8uMPlu2Nlh4ehvruqhFDtpH1lHMZnOOuTlx+M4UwCNGqKu7mNmMURdorc24 nrGdcs4VNO0yQmPm+MQfNzswsk0e6mtPTv67oVhGAEp9BUVLBa6WZGCsaWRuIC+P K0AkLFy2UtPlECaGoT7Am+jC2G5WQz1szDxehRl8TJos4WZsWk8Z3watWRrjNX33 fsAI1xD1mIdJFiFGxxiw0iKYtuWkHfIxCaWkl+N3VU3vmcIK7iesQGUgh1CV6VvP xxNdwuQkXX3e0pH1zlratw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1715889023; x= 1715975423; bh=Z8zlyGU3iEl/Z3EJB2m0NSOMCBOcRsUgQ//G48BB9uU=; b=I aAlfF/ABWKD2gORJrMNNxn4mWiGsna8OcCxmmlYZ55PCTBZ4a8H3cLCqwefndnTZ 17/iGZ6Q5q63vg0EQY+VJKd2PWxugEik80br7shfxWIMLEsAHYwQTJQqm5Xj2npp bDiiCrlclsE62aWoW+RTebBaRRxpl8CkoS/kWvyBolOEUS2kfsNavbAS/DDdYM20 XGpbbrbyRCbQW0e5gwdv+gZToOAV6zyrfyGHdZSuuo+dSzdKPhWyemmR+MRbCrLd Mn7UKfqb8mhLkzg3ICrEoY4no70bR1sEE8/XpVgEBfYXjkWjvUhmX3r1ne0hmALl 1sQqvyeQobY5cAsgfIlGg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdehuddgudegtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhm ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg htthgvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveeg udejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe gumhhithhrhiesghhuthhovhdruggvvh X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 May 2024 15:50:22 -0400 (EDT) Content-Language: en-US In-Reply-To: <87msoqcctv.fsf@gmx.de> 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:285198 Archived-At: Hi Michael, On 16/05/2024 12:42, Michael Albinus wrote: > 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. Like I said, it does: in the background terminal I'm using ssh with the same connection. But you could probably replicate the experiment without much trouble. Do you have access to fencepost? > 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. I could insert some (benchmark-progn ...) forms at your direction instead, to measure some blocks in the code. That's often a more expedient investigation tool. > 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. My question is, shouldn't ControlMaster be able to speed the process up, at least somewhat? The complaint isn't that the operation remains somewhat slow (though it does), but that I'm not seeing any statistically significant improvement from ControlMaster - which should seemingly be used and useful. I'm planning to write a small article with recommendations on how to configure Tramp for performance in a common setup, with the options and explanations. One of them does (the "direct async") - but as documented, it has some problems. One I've already mentioned but am yet to file a bug. Another is yet trickier: the REPL prompt is not rendered (IRB prompt when invoked inside RSpec runner - the details might not matter) with "direct async" but it's shown fine without "direct async". This second one, naturally, is harder to explain and (maybe) produce a reduced test case. So I'm thinking if the ControlMaster can produce at least a part of this improvement, it should be the first recommendation in the article.