Over the 1Gb private local connection on an amd 3900x using 2x nvme raid0 LVM thin ext4 container lxc copy is only able to transfer at about 40MB/s or 300Mbps with rsync cpu at 100% on one core.
Here is the rysnc process spawned by lxc copy:
sh -c /snap/lxd/current/bin/lxd netcat @lxd/6a92977a-7acd-4f61-bd3f-df53e1a3a64b xxx localhost rsync --server -logD tpXrSze.iLsfxC --compress-level=2 --delete --partial --numeric-ids . /tmp/foo
The 2 local servers is able to sustain full 1Gbp/s transfer and we believe the
compression-level=2 option is causing rsync to use 100% of cpu.
However, we have not found a way to optionally disable or pass options to rsync that is started by lxc copy.
Any help is appreciated. Thanks.
Name Version Rev Tracking Publisher Notes core18 20200724 1885 latest/stable canonical✓ base lxd 4.6 17320 latest/stable canonical✓ - snapd 2.46.1 9279 latest/stable canonical✓ snapd