mirror of
https://github.com/upa/mscp.git
synced 2026-05-20 11:47:31 +08:00
change default minimum chunk size to 16MB (Issue #20)
This commit is contained in:
@@ -192,7 +192,7 @@ and remove the checkpoint if it returns 0.
|
|||||||
Specifies the minimum chunk size.
|
Specifies the minimum chunk size.
|
||||||
.B mscp
|
.B mscp
|
||||||
divides a single file into chunks and copies the chunks in
|
divides a single file into chunks and copies the chunks in
|
||||||
parallel. The default value is 67108864 (64MB).
|
parallel. The default value is 16M bytes.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B \-S \fIMAX_CHUNK_SIZE\fR
|
.B \-S \fIMAX_CHUNK_SIZE\fR
|
||||||
|
|||||||
23
doc/mscp.rst
23
doc/mscp.rst
@@ -2,7 +2,7 @@
|
|||||||
MSCP
|
MSCP
|
||||||
====
|
====
|
||||||
|
|
||||||
:Date: v0.2.0
|
:Date: v0.2.0-5-g08660bb
|
||||||
|
|
||||||
NAME
|
NAME
|
||||||
====
|
====
|
||||||
@@ -12,15 +12,14 @@ mscp - copy files over multiple SSH connections
|
|||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
========
|
========
|
||||||
|
|
||||||
**mscp** [**-46vqDpdNh**] [ **-n**\ *NR_CONNECTIONS* ] [
|
**mscp** [**-46vqDpdNh**] [ **-n** *NR_CONNECTIONS* ] [ **-m**
|
||||||
**-m**\ *COREMASK* ] [ **-u**\ *MAX_STARTUPS* ] [ **-I**\ *INTERVAL* ] [
|
*COREMASK* ] [ **-u** *MAX_STARTUPS* ] [ **-I** *INTERVAL* ] [ **-W**
|
||||||
**-W**\ *CHECKPOINT* ] [ **-R**\ *CHECKPOINT* ] [
|
*CHECKPOINT* ] [ **-R** *CHECKPOINT* ] [ **-s** *MIN_CHUNK_SIZE* ] [
|
||||||
**-s**\ *MIN_CHUNK_SIZE* ] [ **-S**\ *MAX_CHUNK_SIZE* ] [
|
**-S** *MAX_CHUNK_SIZE* ] [ **-a** *NR_AHEAD* ] [ **-b** *BUF_SIZE* ] [
|
||||||
**-a**\ *NR_AHEAD* ] [ **-b**\ *BUF_SIZE* ] [ **-L**\ *LIMIT_BITRATE* ]
|
**-L** *LIMIT_BITRATE* ] [ **-l** *LOGIN_NAME* ] [ **-P** *PORT* ] [
|
||||||
[ **-l**\ *LOGIN_NAME* ] [ **-P**\ *PORT* ] [ **-F**\ *SSH_CONFIG* ] [
|
**-F** *SSH_CONFIG* ] [ **-o** *SSH_OPTION* ] [ **-i** *IDENTITY* ] [
|
||||||
**-o**\ *SSH_OPTION* ] [ **-i**\ *IDENTITY* ] [ **-J**\ *DESTINATION* ]
|
**-J** *DESTINATION* ] [ **-c** *CIPHER* ] [ **-M** *HMAC* ] [ **-C**
|
||||||
[ **-c**\ *CIPHER* ] [ **-M**\ *HMAC* ] [ **-C**\ *COMPRESS* ] [
|
*COMPRESS* ] [ **-g** *CONGESTION* ] *source ... target*
|
||||||
**-g**\ *CONGESTION* ] *source ... target*
|
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
===========
|
===========
|
||||||
@@ -98,8 +97,8 @@ OPTIONS
|
|||||||
|
|
||||||
**-s MIN_CHUNK_SIZE**
|
**-s MIN_CHUNK_SIZE**
|
||||||
Specifies the minimum chunk size. **mscp** divides a single file into
|
Specifies the minimum chunk size. **mscp** divides a single file into
|
||||||
chunks and copies the chunks in parallel. The default value is
|
chunks and copies the chunks in parallel. The default value is 16M
|
||||||
67108864 (64MB).
|
bytes.
|
||||||
|
|
||||||
**-S MAX_CHUNK_SIZE**
|
**-S MAX_CHUNK_SIZE**
|
||||||
Specifies the maximum chunk size. The default is file size divided by
|
Specifies the maximum chunk size. The default is file size divided by
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ void usage(bool print_help)
|
|||||||
" -W CHECKPOINT write states to the checkpoint if transfer fails\n"
|
" -W CHECKPOINT write states to the checkpoint if transfer fails\n"
|
||||||
" -R CHECKPOINT resume transferring from the checkpoint\n"
|
" -R CHECKPOINT resume transferring from the checkpoint\n"
|
||||||
"\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"
|
" -S MAX_CHUNK_SIZE max chunk size (default: filesize/nr_conn)\n"
|
||||||
" -a NR_AHEAD number of inflight SFTP commands (default: 32)\n"
|
" -a NR_AHEAD number of inflight SFTP commands (default: 32)\n"
|
||||||
" -b BUF_SZ buffer size for i/o and transfer\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() */
|
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_NR_AHEAD 32
|
||||||
#define DEFAULT_BUF_SZ 16384
|
#define DEFAULT_BUF_SZ 16384
|
||||||
/* XXX: we use 16384 byte buffer pointed by
|
/* XXX: we use 16384 byte buffer pointed by
|
||||||
|
|||||||
Reference in New Issue
Block a user