From: Michael Albinus <michael.albinus@gmx.de>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Remote asynchronous processes
Date: Mon, 13 Apr 2020 12:19:43 +0200 [thread overview]
Message-ID: <87tv1nwuv4.fsf@gmx.de> (raw)
Hi,
On the Tramp ML, there is a discussion about performance of remote
asynchronous processes. start-file-process / make-process take too much
time to finish.
One of the reasons is, that Tramp opens first a shell on the remote
host, performs sanity checks, and runs the command after that. Well, I
cannot change this in general; the sanity checks have been added due to
feedback from users.
One idea to change the situation is, to remove all sanity checks from
make-process. That is, if a user has a default directory
"/ssh:user@host:/path/to/dir", and if he calls
--8<---------------cut here---------------start------------->8---
(make-process
:name "test"
:buffer (current-buffer)
:command '("cmd")
:file-handler t))
--8<---------------cut here---------------end--------------->8---
this is translated directly into
--8<---------------cut here---------------start------------->8---
ssh -l user -o ControlMaster=auto -o ControlPath='tramp.%C' \
-o ControlPersist=no host "cd /path/to/dir; cmd"
--8<---------------cut here---------------end--------------->8---
This would improve performance significantly. The drawback is, that
Tramp does not perform convenience checks, like password handling.
start-file-process would not be changed, and it behaves like before.
Comments?
Best regards, Michael.
next reply other threads:[~2020-04-13 10:19 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-13 10:19 Michael Albinus [this message]
2020-04-13 20:32 ` Remote asynchronous processes Philippe Vaucher
2020-04-14 9:03 ` Michael Albinus
2020-04-14 12:34 ` Philippe Vaucher
2020-04-14 14:28 ` Michael Albinus
2020-08-04 17:00 ` Philipp Stephani
2020-04-14 14:48 ` Stefan Monnier
2020-04-14 15:30 ` Michael Albinus
2020-08-04 17:01 ` Philipp Stephani
2020-08-04 16:56 ` Philipp Stephani
2020-08-04 17:35 ` Michael Albinus
2020-08-10 14:42 ` Philipp Stephani
2020-05-06 11:59 ` Michael Albinus
2020-08-04 16:48 ` Philipp Stephani
2020-08-04 17:31 ` Michael Albinus
2020-08-10 14:56 ` Philipp Stephani
-- strict thread matches above, loose matches on Subject: below --
2020-07-29 16:58 Felipe Lema
2020-07-31 10:22 ` Michael Albinus
2020-08-04 12:27 ` Michael Albinus
2020-08-04 16:06 ` Felipe Lema
2020-08-06 19:08 ` Sean Whitton
2020-08-09 7:22 ` Michael Albinus
2020-08-09 14:47 ` Philipp Stephani
2020-08-09 17:06 ` Michael Albinus
2020-08-12 10:46 ` Michael Albinus
2020-08-21 22:28 ` Sean Whitton
2020-08-07 16:28 ` Philipp Stephani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tv1nwuv4.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=emacs-devel@gnu.org \
--cc=p.stephani2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).