Changeset: e40df509c237 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=e40df509c237
Modified Files:
tools/monetdbbincopy
Branch: default
Log Message:
monetdbbincopy: revert back to tar copy over ssh
It seems nc, mnc, or any other tool cannot receive any data when it's
started from ssh (weird!), at least on our desktops. However, when you
keep cpu usage low, the speed should be comparable to raw nc/mnc.
diffs (22 lines):
diff --git a/tools/monetdbbincopy b/tools/monetdbbincopy
--- a/tools/monetdbbincopy
+++ b/tools/monetdbbincopy
@@ -54,11 +54,13 @@ for host in ${hostlist} ; do
monetdb -q ${RMONETDB_EXTRA_OPTS} -h$host -P$passphrase create $dbname
|| continue
rpath=$(monetdb ${RMONETDB_EXTRA_OPTS} -h$host -P$passphrase status -l
$dbname | \
grep "location:" | cut -d: -f2)
- ssh -n $host "mnc -l -B $host 54321 | tar -C $rpath -jxf -" &
- there=$!
- sleep 1
- tar -C ${lpath} --exclude=.mapi.sock -jcf - . | mnc -B $host 54321
- wait $there
+# ssh -n $host "mnc -l -B $host 54321 | tar -C $rpath -jxf -" &
+# there=$!
+# sleep 1
+# tar -C ${lpath} --exclude=.mapi.sock -jcf - . | mnc -B $host 54321
+# wait $there
+ tar -C ${lpath} --exclude=.mapi.sock -cf - . | xz -0 -c - | \
+ ssh $host "xzcat - | tar -C $rpath -xf -"
monetdb -q ${RMONETDB_EXTRA_OPTS} -h$host -P$passphrase release $dbname
done
echo "$(date +%D:%H:%M): done"
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list