From c0580c5e2cd66cecd7cc6cd1b231be532440d405 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Mon, 5 Jan 2015 18:57:20 +0100 Subject: [PATCH] [backup-zfs] Tune buffer sizes --- backup-zfs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.39.5