unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Tramp too slow to be usefull
@ 2017-08-01 16:09 Thierry Leurent
  2017-08-02  6:54 ` Michael Albinus
  0 siblings, 1 reply; 3+ messages in thread
From: Thierry Leurent @ 2017-08-01 16:09 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I'm trying to use tramp but it's very slow even I work with a local file owned 
by root.  
After asking to the "friend" Google, I don't find any solution.

I use emacs 25 on Linux Testing.

You can see my tramp configuration file.
(use-package tramp
  :defer t
  :config
  (progn
    (with-eval-after-load 'tramp-cache
      (setq tramp-persistency-file-name "~/.emacs.d/backup_and_other_stuffs/
tramp$"))
    (setq tramp-default-user-alist '(("\\`su\\(do\\)?\\'" nil "root"))
          ;; use the settings in ~/.ssh/config instead of Tramp's
	  tramp-verbose 9
	  tramp-default-method "ssh"
	  tramp-ssh-controlmaster-options
	  (concat "-o ControlPath=/tmp/tramp.%%r@%%h:%%p "
		  "-o ControlMaster=auto "
		  "-o ControlPersist=no")
          tramp-use-ssh-controlmaster-options nil
          backup-enable-predicate
          (lambda (name)
            (and (normal-backup-enable-predicate name)
                 (not (let ((method (file-remote-p name 'method)))
                        (when (stringp method)
                          (member method '("su" "sudo"))))))))

    (use-package tramp-sh
      :config
      (progn
        (add-to-list 'tramp-remote-path "/usr/local/sbin")
        (add-to-list 'tramp-remote-path "/var/www/")
        (add-to-list 'tramp-remote-path "~/bin"))))) 


Thnaks for your help.

Regards, 

-----
Thierry Leurent



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tramp too slow to be usefull
  2017-08-01 16:09 Tramp too slow to be usefull Thierry Leurent
@ 2017-08-02  6:54 ` Michael Albinus
  2017-08-21 20:44   ` Thierry Leurent
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Albinus @ 2017-08-02  6:54 UTC (permalink / raw)
  To: Thierry Leurent; +Cc: help-gnu-emacs

Thierry Leurent <thierry.leurent@asgardian.be> writes:

> Hello,

Hi Thierry,

> I'm trying to use tramp but it's very slow even I work with a local
> file owned by root.

Quoting from the Tramp manual, "Frequently Asked Questions":

   • How could I speed up TRAMP?

     In the backstage, TRAMP needs a lot of operations on the remote
     host.  The time for transferring data from and to the remote host
     as well as the time needed to perform the operations there count.
     In order to speed up TRAMP, one could either try to avoid some of
     the operations, or one could try to improve their performance.

     Use an external method, like ‘scp’.

     Use caching.  This is already enabled by default.  Information
     about the remote host as well as the remote files are cached for
     reuse.  The information about remote hosts is kept in the file
     specified in ‘tramp-persistency-file-name’.  Keep this file.  If
     you are confident that files on remote hosts are not changed out of
     Emacs’ control, set ‘remote-file-name-inhibit-cache’ to ‘nil’.  Set
     also ‘tramp-completion-reread-directory-timeout’ to ‘nil’, *note
     File name completion::.

     Disable version control.  If you access remote files which are not
     under version control, a lot of check operations can be avoided by
     disabling VC.  This can be achieved by

          (setq vc-ignore-dir-regexp
                (format "\\(%s\\)\\|\\(%s\\)"
                        vc-ignore-dir-regexp
                        tramp-file-name-regexp))

     Disable excessive traces.  The default trace level of TRAMP,
     defined in the variable ‘tramp-verbose’, is 3.  You should increase
     this level only temporarily, hunting bugs.

> Thnaks for your help.
>
> Regards, 
>
> -----
> Thierry Leurent

Best regards, Michael.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tramp too slow to be usefull
  2017-08-02  6:54 ` Michael Albinus
@ 2017-08-21 20:44   ` Thierry Leurent
  0 siblings, 0 replies; 3+ messages in thread
From: Thierry Leurent @ 2017-08-21 20:44 UTC (permalink / raw)
  To: help-gnu-emacs

Thans fo your solution. It's work
On Wednesday, 2 August 2017 08:54:33 CEST Michael Albinus wrote:
> Thierry Leurent <thierry.leurent@asgardian.be> writes:
> > Hello,
> 
> Hi Thierry,
> 
> > I'm trying to use tramp but it's very slow even I work with a local
> > file owned by root.
> 
> Quoting from the Tramp manual, "Frequently Asked Questions":
> 
>    ? How could I speed up TRAMP?
> 
>      In the backstage, TRAMP needs a lot of operations on the remote
>      host.  The time for transferring data from and to the remote host
>      as well as the time needed to perform the operations there count.
>      In order to speed up TRAMP, one could either try to avoid some of
>      the operations, or one could try to improve their performance.
> 
>      Use an external method, like ?scp?.
> 
>      Use caching.  This is already enabled by default.  Information
>      about the remote host as well as the remote files are cached for
>      reuse.  The information about remote hosts is kept in the file
>      specified in ?tramp-persistency-file-name?.  Keep this file.  If
>      you are confident that files on remote hosts are not changed out of
>      Emacs? control, set ?remote-file-name-inhibit-cache? to ?nil?.  Set
>      also ?tramp-completion-reread-directory-timeout? to ?nil?, *note
>      File name completion::.
> 
>      Disable version control.  If you access remote files which are not
>      under version control, a lot of check operations can be avoided by
>      disabling VC.  This can be achieved by
> 
>           (setq vc-ignore-dir-regexp
>                 (format "\\(%s\\)\\|\\(%s\\)"
>                         vc-ignore-dir-regexp
>                         tramp-file-name-regexp))
> 
>      Disable excessive traces.  The default trace level of TRAMP,
>      defined in the variable ?tramp-verbose?, is 3.  You should increase
>      this level only temporarily, hunting bugs.
> 
> > Thnaks for your help.
> > 
> > Regards,
> > 
> > -----
> > Thierry Leurent
> 
> Best regards, Michael.


-- 

-----
Thierry Leurent



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-21 20:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-01 16:09 Tramp too slow to be usefull Thierry Leurent
2017-08-02  6:54 ` Michael Albinus
2017-08-21 20:44   ` Thierry Leurent

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).