使用BBCP来提高跨网数据传输速度

网友投稿 1008 2023-02-14

本站部分文章、图片属于网络上可搜索到的公开信息,均用于学习和交流用途,不能代表睿象云的观点、立场或意见。我们接受网民的监督,如发现任何违法内容或侵犯了您的权益,请第一时间联系小编邮箱jiasou666@gmail.com 处理。

使用BBCP来提高跨网数据传输速度

背景介绍:目前项目在美国东西部以及欧洲都有服务器节点,跨互联网的数据传输速度很不稳定,之前我们主要是通过SCP以及Rsync等方式进行数据传输的。无意间发现了BBCP这个软件之后,经过测试,效果非常好,速度提升效果很明显,并且传输速度一直比较稳定,同时支持日志以及失败后重试等参数,非常不错。

安装配置:

创建测试文件:

1
2
3
4
5
6
7
8
$cd dong
$sudo dd if=/dev/zero of=/home/adsymp/dong/file.2gbs=1024Mcount=2
2+0records in
2+0records out
2147483648bytes(2.1GB)copied,45.9129s,46.8MB/s
$ls-lh
total2.0G
-rw-r--r--1root root2.0GMar406:40file.2g

测试:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$time bbcp-r-P2-V-w8m-s16file.2gwest-ads1:/home/adsymp/dong/
bbcp:Window size reduced to245760bytes.
bbcp:Indexing files tobe copied...
bbcp:Copying0files in0directories.
Source sc2-admin1002.drawbrid.ge using initial send window of18700
Target iad2-admin1002.drawbrid.ge using initial recv window of87380
bbcp:Creating/home/adsymp/dong/file.2g
bbcp:14030406:46:120%done;8.5MB/s,avg8.5MB/s
bbcp:14030406:46:141%done;6.9MB/s,avg7.5MB/s
...
bbcp:14030406:51:4699%done;7.7MB/s,avg6.1MB/s
bbcp:14030406:51:4899%done;3.3MB/s,avg6.1MB/s
Source cpu=3.643(sys=3.552usr=0.091).
File/home/adsymp/dong/file.2gcreated;2147483648bytes at6.0MB/s
48buffers used with0reorders;peaking at0.
Source sc2-admin1002.drawbrid.ge usingafinalsend window of433840
Target cpu=15.149(sys=14.505usr=0.644).
Target iad2-admin1002.drawbrid.ge usingafinalrecv window of2298624
1file copied at effectively6.0MB/s
real5m42.236s
user0m0.104s
sys0m3.567s
$time scp file.2gwest-ads1:/home/adsymp/dong/
file.2g100%2048MB2.1MB/s16:06
real16m8.448s
user0m43.497s
sys0m7.548s
上一篇:简单的ipsec开权限工具
下一篇:Axel多线程下载工具使用详解
相关文章

 发表评论

评论列表