mirror of
https://github.com/upa/mscp.git
synced 2026-05-13 22:07:29 +08:00
set default NR_AHEAD to 32
This commit is contained in:
@@ -23,7 +23,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DEFAULT_MIN_CHUNK_SZ (64 << 20) /* 64MB */
|
#define DEFAULT_MIN_CHUNK_SZ (64 << 20) /* 64MB */
|
||||||
#define DEFAULT_NR_AHEAD 16
|
#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
|
||||||
* https://api.libssh.org/stable/libssh_tutor_sftp.html. The larget
|
* https://api.libssh.org/stable/libssh_tutor_sftp.html. The larget
|
||||||
@@ -95,7 +95,7 @@ void usage(bool print_help) {
|
|||||||
" -s MIN_CHUNK_SIZE min chunk size (default: 64MB)\n"
|
" -s MIN_CHUNK_SIZE min chunk size (default: 64MB)\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"
|
||||||
"\n"
|
"\n"
|
||||||
" -a NR_AHEAD number of inflight SFTP commands (default: 16)\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"
|
||||||
"\n"
|
"\n"
|
||||||
" -v increment verbose output level\n"
|
" -v increment verbose output level\n"
|
||||||
@@ -489,7 +489,6 @@ void mscp_copy_thread_cleanup(void *arg)
|
|||||||
{
|
{
|
||||||
struct mscp_thread *t = arg;
|
struct mscp_thread *t = arg;
|
||||||
t->finished = true;
|
t->finished = true;
|
||||||
__sync_synchronize();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void *mscp_copy_thread(void *arg)
|
void *mscp_copy_thread(void *arg)
|
||||||
|
|||||||
Reference in New Issue
Block a user