tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp readlink slowdown on find-file


From: Michael Albinus
Subject: Re: tramp readlink slowdown on find-file
Date: Wed, 13 Mar 2024 18:38:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Prashant Tak <prashantrameshtak@gmail.com> writes:

> Hi

Hi Prashant,

> while opening a file in tramp, I'm experiencing immense slowdown,
> 20+ seconds to open a file.
> In the debug buffer I found readlink status check to be consuming ~12
> seconds. Any idea what could be causing this?
>
> 21:22:47.919689 tramp-sh-handle-file-truename (4) # Finding true name
> for ‘/ssh:host:/a/b/c/xyz.md’
> 21:22:47.920152 tramp-send-command (6) # \readlink
> --canonicalize-missing /a/b/c/xyz.md 2>/dev/null; echo
> tramp_exit_status $?
> 21:22:59.722106 tramp-wait-for-regexp (6) #
> /a/b/c/xyz.md
> tramp_exit_status 0

When you connect to the remote host directly via ssh from a shell, does it
take the same time to call '\readlink --canonicalize-missing /a/b/c/xyz.md'?

Please keep the backslash when calling readlink. And note that I have
omitted the stderr redirection in order to see possible output.

> Thanks for your wonderful work Michael, the emacs community appreciates it!
>
> Prashant

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]