]> git.siccegge.de Git - tools.git/commitdiff
[backup-zfs] Tune buffer sizes
authorChristoph Egger <christoph@christoph-egger.org>
Mon, 5 Jan 2015 17:57:20 +0000 (18:57 +0100)
committerChristoph Egger <christoph@christoph-egger.org>
Mon, 5 Jan 2015 17:59:51 +0000 (18:59 +0100)
backup-zfs

index 49c16566c2502cfc45dadc62a523a5c83492f3ee..476d903a34994459067f7271ee4786ec68139d03 100755 (executable)
@@ -10,7 +10,7 @@ SFTP_DIR  = '/srv/backup/mitoraj'
 SFTP_USER = 'root'
 ZPOOL     = 'base'
 GPGUSER   = '9FED5C6CE206B70A585770CA965522B9D49AE731'
-BUFFER    = 1024 * 1024
+BUFFER    = 4 * 1024 * 1024
 #
 ####################
 
@@ -58,8 +58,8 @@ def sftp_connect():
 
     agent = paramiko.Agent()
     transport = paramiko.Transport((SFTP_HOST, 22),
-                                   default_window_size=1024*BUFFER,
-                                   default_max_packet_size=64*BUFFER)
+                                   default_window_size=128*BUFFER,
+                                   default_max_packet_size=BUFFER)
     #  transport.max_packet_size = BUFFER
     #  transport.window_size = BUFFER * 64
     transport.connect(hostkey=hostkey)