aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-03-26 14:58:00 +0100
committerLudovic Courtès <ludo@gnu.org>2014-03-26 15:06:52 +0100
commit3dfd8af534a7cab94d8bb60c1554944d48911f6c (patch)
tree1ae0054d581e6e5dfb35789f1ba48970b8ec2895
parentee172b1a06e21fafe34410f285695bab010667b7 (diff)
downloadpatches-3dfd8af534a7cab94d8bb60c1554944d48911f6c.tar
patches-3dfd8af534a7cab94d8bb60c1554944d48911f6c.tar.gz
offload: Disable SSH-level compression.
* guix/scripts/offload.scm (remote-pipe): Remove '-z' lsh command line argument. This makes transfers almost an order of magnitude slower. OpenSSH's ssh(1) man page notes: "Compression is desirable on modem lines and other slow connections, but will only slow down things on fast networks." See also <http://www.spikelab.org/blog/transfer-largedata-scp-tarssh-tarnc-compared.html>.
-rw-r--r--guix/scripts/offload.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/guix/scripts/offload.scm b/guix/scripts/offload.scm
index e8dd927f54..2936a262e1 100644
--- a/guix/scripts/offload.scm
+++ b/guix/scripts/offload.scm
@@ -136,7 +136,7 @@ determined."
;; "-i" (build-machine-private-key machine)
;; ;; XXX: With lsh 2.1, passing '--write-pid'
;; ;; last causes the PID not to be printed.
-;; "--write-pid" "--gateway" "--background" "-z"
+;; "--write-pid" "--gateway" "--background"
;; (build-machine-name machine)))
;; (line (read-line port))
;; (status (close-pipe port)))
@@ -179,7 +179,7 @@ determined."
(lambda ()
;; Let the child inherit ERROR-PORT.
(with-error-to-port error-port
- (apply open-pipe* mode %lshg-command "-z"
+ (apply open-pipe* mode %lshg-command
"-l" (build-machine-user machine)
"-p" (number->string (build-machine-port machine))