Re: speeding up zfs send | recv (update)

From: Miroslav Lachman <000.fbsd_at_quip.cz>
Date: Wed, 22 Feb 2023 21:31:00 UTC
On 22/02/2023 22:08, mike tancsa wrote:
> On 2/22/2023 4:03 PM, Miroslav Lachman wrote:
>> Interresting numbers. I think I am the only one who get best speed 
>> with chacha20-poly1305@openssh.com
>>
>>
>> It seems the speed of SSH is limited by single core performance which 
>> is very poor on this machine (Intel(R) Pentium(R) DualĀ  CPU E2160). 
>> Even if CPU has 50% idle, ssh runs on 99.8% of single core.
> 
> The CPU I have has
> aesni0: <AES-CBC,AES-CCM,AES-GCM,AES-ICM,AES-XTS> on motherboard
> 
> which probably helps.

That explains it
aesni0: No AES or SHA support.

>> I know there were some HPN patches to ssh, beside that is there any 
>> option I can try to use less CPU?
>>
>> I will play with cpuset to pin ssh on one core and everything else on 
>> the other core.
> 
> It looks like you are running into a CPU bottleneck TBH

Yes. Pinning on cores with cpuset helps a bit (about +3MiB/s) but 
without some tweaks on ssh I will not gain more speed :(

Thank you for your help!

Miroslav Lachman