[英]throttle data transfer using dd over ssh connection
I am using dd to transfer data over two machines, command which used is ,我正在使用 dd 在两台机器上传输数据,使用的命令是,
dd bs=1M if=/dev/loop0 status=progress | sshpass -p mypassword ssh root@192.168.111.11 dd bs=1M of=/dev/loop0 iflag=fullblock conv=sparse
Aim is to throttle the network usage while data transfer using throttle command, But which is not present in server machine Oracle Linux Server - Linux 3.10.0-957.el7.x86_64 x86_64
目的是在使用限制命令进行数据传输时限制网络使用,但在服务器机器
Oracle Linux Server - Linux 3.10.0-957.el7.x86_64 x86_64
中不存在
How can I install throttle in server machine ?如何在服务器机器上安装节流阀?
Is there any other mechanism to throttle data transfer through the above command ?是否有任何其他机制可以通过上述命令限制数据传输?
Thanks in advance提前致谢
Done this using trickle使用涓涓细流完成此操作
dd bs=1M if=/dev/loop0 status=progress | trickle -s -d 1024 -u 1024 sshpass -p mypassword ssh root@192.168.111.11 dd bs=1M of=/dev/loop0 iflag=fullblock conv=sparse
The above trickle command will limit the download bandwidth (-d) 1024 KB/s and limit the upload bandwidth (-u) 1024 KB/s.
上述涓流命令将下载带宽 (-d) 限制为 1024 KB/s,并将上传带宽 (-u) 限制为 1024 KB/s。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.