[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening d
From: |
Eli Zaretskii |
Subject: |
bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP |
Date: |
Sun, 08 Sep 2024 18:41:20 +0300 |
> From: Michael Albinus <michael.albinus@gmx.de>
> Cc: suhailsingh247@gmail.com, 73046@debbugs.gnu.org
> Date: Sun, 08 Sep 2024 17:26:40 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> Tramp is in a loop, waiting for results from the remote side. I don't
> >> know how to implement this differently.
> >
> > What kind of loop? Can you point me to the code which loops there?
>
> The umbrella function is tramp-send-command. It sends the command to
> remote via tramp-send-string, and waits then for a proper shell prompt
> via tramp-wait-for-output. The latter function calls
> tramp-wait-for-regexp, which loops using tramp-accept-process-output.
Did you try either calling accept-process-output with a non-zero
timeout of, say, 5 msec, or inserting a (sit-for 0.005) into the loop
which calls tramp-accept-process-output?
Waiting for a process to respond should try not to spin without
sleeping for a few milliseconds between polling attempts.
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, (continued)
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Suhail Singh, 2024/09/06
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Suhail Singh, 2024/09/06
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Eli Zaretskii, 2024/09/07
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Suhail Singh, 2024/09/07
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Michael Albinus, 2024/09/07
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Eli Zaretskii, 2024/09/07
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Suhail Singh, 2024/09/07
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Michael Albinus, 2024/09/08
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Eli Zaretskii, 2024/09/08
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Michael Albinus, 2024/09/08
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP,
Eli Zaretskii <=
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Suhail Singh, 2024/09/08
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Eli Zaretskii, 2024/09/08
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Michael Albinus, 2024/09/10
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Suhail Singh, 2024/09/10
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Eli Zaretskii, 2024/09/11
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Suhail Singh, 2024/09/11
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Michael Albinus, 2024/09/11
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Suhail Singh, 2024/09/11
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Michael Albinus, 2024/09/12
- bug#73046: 29.4; Emacs 100% CPU usage for several seconds when opening dired buffer over TRAMP, Michael Albinus, 2024/09/11