[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Accessing SMB shares extremely slow
From: |
Martin Apel |
Subject: |
Re: Accessing SMB shares extremely slow |
Date: |
Tue, 23 Oct 2012 15:48:08 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686 on x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 |
Hi Michael,
this change helped a lot. I noticed in the strace output, that smbclient
seems to read its input character by character,
but I did not think that this was responsible for the bad response time.
Here are the measurements with the latest version:
tramp-smb-file-name-handler 328 1.0503329999 0.0032022347
tramp-smb-handle-file-local-copy 1 0.503912 0.503912
tramp-smb-send-command 1 0.502841 0.502841
tramp-smb-wait-for-output 1 0.502356 0.502356
tramp-accept-process-output 6 0.50209 0.0836816666
accept-process-output 6 0.5018520000 0.0836420000
tramp-smb-file-name-p 328 0.0038649999 1.178...e-05
tramp-smb-handle-expand-file-name 100 0.0023340000 2.334...e-05
tramp-smb-handle-file-attributes 36 0.0011219999 3.116...e-05
tramp-smb-handle-file-writable-p 2 0.000989 0.0004945
tramp-smb-handle-file-directory-p 1 0.000439 0.000439
tramp-smb-get-file-entries 1 8.7e-05 8.7e-05
tramp-smb-get-localname 1 5.3e-05 5.3e-05
tramp-smb-maybe-open-connection 1 3e-05 3e-05
tramp-smb-get-cifs-capabilities 1 2.7e-05 2.7e-05
tramp-smb-get-stat-capability 1 2.3e-05 2.3e-05
tramp-smb-get-share 2 1.300...e-05 6.500...e-06
This speeds up loading of a file dramatically. What is still somewhat
slow, is dired browsing the remote share, but this is within reasonable
bounds.
Thanks a lot for your help.
Best Regards,
Martin
On 23/10/12 14:31, Michael Albinus wrote:
*** ~/src/tramp/lisp/tramp-smb.el.~2.160~ 2012-10-23 14:25:26.764160590
+0200
--- ~/src/tramp/lisp/tramp-smb.el 2012-10-23 14:17:20.999213206 +0200
***************
*** 1680,1687 ****
;; Set chunksize. Otherwise, `tramp-send-string' might
;; try it itself.
(tramp-set-connection-property p "smb-share" share)
! (tramp-set-connection-property
! p "chunksize" tramp-chunksize))
;; Check for the error reason. If it was due to wrong
;; password, reestablish the connection. We cannot
--- 1680,1686 ----
;; Set chunksize. Otherwise, `tramp-send-string' might
;; try it itself.
(tramp-set-connection-property p "smb-share" share)
! (tramp-set-connection-property p "chunksize" 1))
;; Check for the error reason. If it was due to wrong
;; password, reestablish the connection. We cannot
***************
*** 1717,1723 ****
(while (and (not found) (not err) (memq (process-status p) '(run
open)))
;; Accept pending output.
! (tramp-accept-process-output p)
;; Search for prompt.
(goto-char (point-min))
--- 1716,1722 ----
(while (and (not found) (not err) (memq (process-status p) '(run
open)))
;; Accept pending output.
! (tramp-accept-process-output p 0.1)
;; Search for prompt.
(goto-char (point-min))
***************
*** 1731,1737 ****
(while (and (not found) (memq (process-status p) '(run open)))
;; Accept pending output.
! (tramp-accept-process-output p)
;; Search for prompt.
(goto-char (point-min))
--- 1730,1736 ----
(while (and (not found) (memq (process-status p) '(run open)))
;; Accept pending output.
! (tramp-accept-process-output p 0.1)
;; Search for prompt.
(goto-char (point-min))
--
Martin Apel
Software Architect
Phone: + 49 8105 77266-53
E-Mail: address@hidden
SIMPACK AG
Friedrichshafener Strasse 1, 82205 Gilching, Germany
address@hidden, www.simpack.com
Phone: + 49 8105 77266-0
Fax: + 49 8105 77266-11
Executive Board: Dr. Alexander Eichberger, Dr. Lutz Mauer
Chair of Supervisory Board: Silvia Förster (CPA)
Commercial Register München HRB 181 229
____________
Virus checked by G Data AntiVirus
Version: AVA 22.6486 dated 23.10.2012
- Re: Accessing SMB shares extremely slow, (continued)
- Re: Accessing SMB shares extremely slow, Martin Apel, 2012/10/19
- Re: Accessing SMB shares extremely slow, Michael Albinus, 2012/10/19
- Re: Accessing SMB shares extremely slow, Martin Apel, 2012/10/22
- Re: Accessing SMB shares extremely slow, Michael Albinus, 2012/10/22
- Re: Accessing SMB shares extremely slow, Martin Apel, 2012/10/22
- Re: Accessing SMB shares extremely slow, Michael Albinus, 2012/10/22
- Re: Accessing SMB shares extremely slow, Martin Apel, 2012/10/23
- Re: Accessing SMB shares extremely slow, Michael Albinus, 2012/10/23
- Re: Accessing SMB shares extremely slow, Martin Apel, 2012/10/23
- Re: Accessing SMB shares extremely slow, Michael Albinus, 2012/10/23
- Re: Accessing SMB shares extremely slow,
Martin Apel <=
- Re: Accessing SMB shares extremely slow, Michael Albinus, 2012/10/23
- Re: Accessing SMB shares extremely slow, Michael Albinus, 2012/10/23
- Re: Accessing SMB shares extremely slow, Martin Apel, 2012/10/25
- Re: Accessing SMB shares extremely slow, Michael Albinus, 2012/10/25