For some reason when copying containers between two hosts (DO droplets) over a private network that should be more than capable bandwidthwise (iperf3 output):
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 255 MBytes 2.14 Gbits/sec 4048 660 KBytes
[ 4] 1.00-2.00 sec 221 MBytes 1.86 Gbits/sec 26 754 KBytes
[ 4] 2.00-3.00 sec 192 MBytes 1.61 Gbits/sec 146 612 KBytes
[ 4] 3.00-4.00 sec 235 MBytes 1.97 Gbits/sec 18 771 KBytes
[ 4] 4.00-5.00 sec 218 MBytes 1.82 Gbits/sec 492 498 KBytes
[ 4] 5.00-6.00 sec 181 MBytes 1.52 Gbits/sec 44 570 KBytes
[ 4] 6.00-7.00 sec 172 MBytes 1.45 Gbits/sec 577 426 KBytes
[ 4] 7.00-8.00 sec 175 MBytes 1.47 Gbits/sec 70 512 KBytes
[ 4] 8.00-9.00 sec 178 MBytes 1.49 Gbits/sec 65 539 KBytes
[ 4] 9.00-10.00 sec 192 MBytes 1.61 Gbits/sec 375 327 KBytes
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 1.97 GBytes 1.69 Gbits/sec 5861 sender
[ 4] 0.00-10.00 sec 1.96 GBytes 1.69 Gbits/sec receiver
the copying of LXD containers however is drastically slower (5-50Mbits/sec).
Another interesting thing is that I also have two systems with LXD 2.0.11, one located in Finland and the other one on DO FRA1 and copying containers between these hosts is MUCH faster (400-500 Mbits/sec). Which of course is surprising as the network bandwidth between these hosts is smaller:
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-1.00 sec 58.7 MBytes 493 Mbits/sec 8 6.03 MBytes
[ 4] 1.00-2.00 sec 85.0 MBytes 713 Mbits/sec 0 6.03 MBytes
[ 4] 2.00-3.00 sec 88.8 MBytes 745 Mbits/sec 0 6.03 MBytes
[ 4] 3.00-4.00 sec 87.5 MBytes 734 Mbits/sec 0 6.03 MBytes
[ 4] 4.00-5.00 sec 92.5 MBytes 776 Mbits/sec 0 6.03 MBytes
[ 4] 5.00-6.00 sec 92.5 MBytes 776 Mbits/sec 0 6.03 MBytes
[ 4] 6.00-7.00 sec 91.2 MBytes 765 Mbits/sec 0 6.03 MBytes
[ 4] 7.00-8.00 sec 93.8 MBytes 786 Mbits/sec 0 6.03 MBytes
[ 4] 8.00-9.00 sec 92.5 MBytes 776 Mbits/sec 0 6.03 MBytes
[ 4] 9.00-10.00 sec 92.5 MBytes 776 Mbits/sec 0 6.03 MBytes
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-10.00 sec 875 MBytes 734 Mbits/sec 8 sender
[ 4] 0.00-10.00 sec 874 MBytes 733 Mbits/sec receiver
All the systems mentioned use are Ubuntu 16.04 systems and LXD is using ZFS as the storage backend.
So the question is why is copying between 2.21 hosts on a faster network so slow?