-
之前有公司同事反应,为什么我们内网万兆光纤,使用scp传输大文件时,传输速率也只有120-140Mb/s。
-
因scp工具设计加上历史遗留原因,首先scp是基于安全的ssh隧道所开发的,结合红帽知识库我们发现,scp慢的原因归根于以下几点:
SSH/SCP use single-threaded encryption which is taxing on the CPU. Assuming the network and storage are fast enough, the CPU will become the bottleneck in this transfer.
The performance of any network transfer can be limited to the speed of the disks involved.
SSH/SCP performance is also limited by the hard-coded 64k buffer inside OpenSSH.
The default aes128-ctr cipher l