From: Christoph Egger Date: Mon, 5 Jan 2015 17:57:20 +0000 (+0100) Subject: [backup-zfs] Tune buffer sizes X-Git-Url: https://git.siccegge.de//index.cgi?a=commitdiff_plain;h=c0580c5e2cd66cecd7cc6cd1b231be532440d405;p=tools.git [backup-zfs] Tune buffer sizes --- diff --git a/backup-zfs b/backup-zfs index 49c1656..476d903 100755 --- a/backup-zfs +++ b/backup-zfs @@ -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)