Skip to content

Commit 7c5314e

Browse files
committed
change default minimum chunk size to 16MB (Issue #20)
1 parent 01fe30e commit 7c5314e

File tree

4 files changed

+14
-15
lines changed

4 files changed

+14
-15
lines changed

doc/mscp.1.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ and remove the checkpoint if it returns 0.
192192
Specifies the minimum chunk size.
193193
.B mscp
194194
divides a single file into chunks and copies the chunks in
195-
parallel. The default value is 67108864 (64MB).
195+
parallel. The default value is 16M bytes.
196196

197197
.TP
198198
.B \-S \fIMAX_CHUNK_SIZE\fR

doc/mscp.rst

+11-12
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
MSCP
33
====
44

5-
:Date: v0.2.0
5+
:Date: v0.2.0-5-g08660bb
66

77
NAME
88
====
@@ -12,15 +12,14 @@ mscp - copy files over multiple SSH connections
1212
SYNOPSIS
1313
========
1414

15-
**mscp** [**-46vqDpdNh**] [ **-n**\ *NR_CONNECTIONS* ] [
16-
**-m**\ *COREMASK* ] [ **-u**\ *MAX_STARTUPS* ] [ **-I**\ *INTERVAL* ] [
17-
**-W**\ *CHECKPOINT* ] [ **-R**\ *CHECKPOINT* ] [
18-
**-s**\ *MIN_CHUNK_SIZE* ] [ **-S**\ *MAX_CHUNK_SIZE* ] [
19-
**-a**\ *NR_AHEAD* ] [ **-b**\ *BUF_SIZE* ] [ **-L**\ *LIMIT_BITRATE* ]
20-
[ **-l**\ *LOGIN_NAME* ] [ **-P**\ *PORT* ] [ **-F**\ *SSH_CONFIG* ] [
21-
**-o**\ *SSH_OPTION* ] [ **-i**\ *IDENTITY* ] [ **-J**\ *DESTINATION* ]
22-
[ **-c**\ *CIPHER* ] [ **-M**\ *HMAC* ] [ **-C**\ *COMPRESS* ] [
23-
**-g**\ *CONGESTION* ] *source ... target*
15+
**mscp** [**-46vqDpdNh**] [ **-n** *NR_CONNECTIONS* ] [ **-m**
16+
*COREMASK* ] [ **-u** *MAX_STARTUPS* ] [ **-I** *INTERVAL* ] [ **-W**
17+
*CHECKPOINT* ] [ **-R** *CHECKPOINT* ] [ **-s** *MIN_CHUNK_SIZE* ] [
18+
**-S** *MAX_CHUNK_SIZE* ] [ **-a** *NR_AHEAD* ] [ **-b** *BUF_SIZE* ] [
19+
**-L** *LIMIT_BITRATE* ] [ **-l** *LOGIN_NAME* ] [ **-P** *PORT* ] [
20+
**-F** *SSH_CONFIG* ] [ **-o** *SSH_OPTION* ] [ **-i** *IDENTITY* ] [
21+
**-J** *DESTINATION* ] [ **-c** *CIPHER* ] [ **-M** *HMAC* ] [ **-C**
22+
*COMPRESS* ] [ **-g** *CONGESTION* ] *source ... target*
2423

2524
DESCRIPTION
2625
===========
@@ -98,8 +97,8 @@ OPTIONS
9897

9998
**-s MIN_CHUNK_SIZE**
10099
Specifies the minimum chunk size. **mscp** divides a single file into
101-
chunks and copies the chunks in parallel. The default value is
102-
67108864 (64MB).
100+
chunks and copies the chunks in parallel. The default value is 16M
101+
bytes.
103102

104103
**-S MAX_CHUNK_SIZE**
105104
Specifies the maximum chunk size. The default is file size divided by

src/main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void usage(bool print_help)
4646
" -W CHECKPOINT write states to the checkpoint if transfer fails\n"
4747
" -R CHECKPOINT resume transferring from the checkpoint\n"
4848
"\n"
49-
" -s MIN_CHUNK_SIZE min chunk size (default: 64MB)\n"
49+
" -s MIN_CHUNK_SIZE min chunk size (default: 16M bytes)\n"
5050
" -S MAX_CHUNK_SIZE max chunk size (default: filesize/nr_conn)\n"
5151
" -a NR_AHEAD number of inflight SFTP commands (default: 32)\n"
5252
" -b BUF_SZ buffer size for i/o and transfer\n"

src/mscp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct mscp {
6262
struct mscp_thread scan; /* mscp_thread for mscp_scan_thread() */
6363
};
6464

65-
#define DEFAULT_MIN_CHUNK_SZ (64 << 20) /* 64MB */
65+
#define DEFAULT_MIN_CHUNK_SZ (16 << 20) /* 16MB */
6666
#define DEFAULT_NR_AHEAD 32
6767
#define DEFAULT_BUF_SZ 16384
6868
/* XXX: we use 16384 byte buffer pointed by

0 commit comments

Comments
 (0)