diff options
author | Ryo Nakamura <upa@haeena.net> | 2024-04-26 18:17:13 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2024-04-26 23:44:46 +0900 |
commit | 7c5314ea11b636ff1790d543c9b45ba5ade04e12 (patch) | |
tree | b52cb784a1ee70272345339095e83d58d2cb6595 /src | |
parent | 01fe30efc75c035c9815c830d9310e460b6d3497 (diff) |
change default minimum chunk size to 16MB (Issue #20)
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/mscp.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -46,7 +46,7 @@ void usage(bool print_help) " -W CHECKPOINT write states to the checkpoint if transfer fails\n" " -R CHECKPOINT resume transferring from the checkpoint\n" "\n" - " -s MIN_CHUNK_SIZE min chunk size (default: 64MB)\n" + " -s MIN_CHUNK_SIZE min chunk size (default: 16M bytes)\n" " -S MAX_CHUNK_SIZE max chunk size (default: filesize/nr_conn)\n" " -a NR_AHEAD number of inflight SFTP commands (default: 32)\n" " -b BUF_SZ buffer size for i/o and transfer\n" @@ -62,7 +62,7 @@ struct mscp { struct mscp_thread scan; /* mscp_thread for mscp_scan_thread() */ }; -#define DEFAULT_MIN_CHUNK_SZ (64 << 20) /* 64MB */ +#define DEFAULT_MIN_CHUNK_SZ (16 << 20) /* 16MB */ #define DEFAULT_NR_AHEAD 32 #define DEFAULT_BUF_SZ 16384 /* XXX: we use 16384 byte buffer pointed by |