[OmniOS-discuss] Slow ssh transfers

Martin Waldenvik waldenvik at gmx.com
Wed Oct 12 14:21:43 UTC 2016


On 10/12/2016 02:02 AM, Guo-Rong Koh wrote:
> On Tue, 2016-10-11 at 21:58 +0200, Martin Waldenvik wrote:
>> On 10/11/2016 09:14 PM, Dan McDonald wrote:
>>> Dumb question - is your FreeBSD frame size jumbo? Also, try this on
>>> OmniOS: ipadm set-prop -p send_buf=1048576 tcp ipadm set-prop -p
>>> recv_buf=1048576 tcp And see if that helps if the frame size isn't
>>> smaller on OmniOS. Dan Sent from my iPhone (typos, autocorrect, and all)
>>>> On Oct 11, 2016, at 1:53 PM, Martin Waldenvik <waldenvik at gmx.com
>>>> <mailto:waldenvik at gmx.com>> wrote: Hi I'm wondering if anyone can
>>>> shed some light on a problem I have. I'm using lftp sftp a lot and
>>>> it is very slow. I can work around that sometimes by using another
>>>> server. But I am also using zrep (using ssh) to replicate my pool to
>>>> a backup server. This is also slow. Transfer is about 40 megabyte
>>>> (omnios to omnios). When doing this on freebsd it is about 100
>>>> megabyte and it saturates my gigabit link (freebsd to freebsd). Same
>>>> hardware. I'm using the latest Omios LTS release and openssh. Is
>>>> there any way to speed this up on Omnios? Regards Martin
>>>> _______________________________________________ OmniOS-discuss
>>>> mailing list OmniOS-discuss at lists.omniti.com
>>>> <mailto:OmniOS-discuss at lists.omniti.com>
>>>> http://lists.omniti.com/mailman/listinfo/omnios-discuss
>>
>>
>> Hi Dan
>>
>> Thanks for your input. I have had this problem for a long time, then i
>> thought is was the old SunSSH but the problem seems to persist with OpenSSH.
>>
>> I have not touched the frame size, the only thing i have is LACP with
>> L3,L4. Intel NIC on a supermicro board.
>>
>> Tried to set send and recv buffer but there was no difference. It's
>> about the same speed with both sending and recieving ~40-45M/s.
>>
>> I have found that zrep is simple enough for me that manually replicates
>> my system on an irregular basis. Maybe there is something that simple
>> around that works with netcat.
>
> Hi Martin,
>
> Have you considered changing/choosing the cipher used in the sftp transfer?
> I found something like this:
> https://turecki.net/content/getting-most-out-ssh-hardware-acceleration-tuning-aes-ni
> enabled scp to saturate my gigabit link whilst saving CPU.
>
> Prior to that, the default negotiated cipher seemed to peak at ~50MB/s.
>
> regards,
> Guo-Rong
>
>
> _______________________________________________
> OmniOS-discuss mailing list
> OmniOS-discuss at lists.omniti.com
> http://lists.omniti.com/mailman/listinfo/omnios-discuss
>
Thank you so much Guo-Rong for your help. When i changed from:
Ciphers 
chacha20-poly1305 at openssh.com,aes256-gcm at openssh.com,aes128-gcm at openssh.com,aes256-ctr,aes192-ctr,aes128-ctr

to Ciphers 
aes256-gcm at openssh.com,aes128-gcm at openssh.com,aes256-ctr,aes192-ctr,aes128-ctr

I get full speed. I am so happy for this.

Warm regards
Martin



More information about the OmniOS-discuss mailing list