From owner-freebsd-net@freebsd.org Tue Oct 4 06:02:20 2016 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E17E4AF48B5 for ; Tue, 4 Oct 2016 06:02:20 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (host3.dynacom.ondsl.gr [62.103.35.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smadev.internal.net", Issuer "smadev.internal.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D893A3E; Tue, 4 Oct 2016 06:02:19 +0000 (UTC) (envelope-from achill@matrix.gatewaynet.com) Received: from smadev.internal.net (smadev [10.9.200.131]) by smadev.internal.net (8.15.2/8.15.2) with ESMTP id u94629m4093459; Tue, 4 Oct 2016 09:02:15 +0300 (EEST) (envelope-from achill@matrix.gatewaynet.com) Subject: Re: Strange issue with scp performance To: freebsd-net@freebsd.org, Julian Elischer References: <57EB9AC8.3050102@matrix.gatewaynet.com> <20161001005558.GB1751@funkthat.com> <57F2072B.6000403@matrix.gatewaynet.com> Cc: jmg@funkthat.com From: Achilleas Mantzios Message-ID: <57F345E1.3050902@matrix.gatewaynet.com> Date: Tue, 4 Oct 2016 09:02:09 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <57F2072B.6000403@matrix.gatewaynet.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2016 06:02:21 -0000 Hello Julian, (pls include me in your To/Cc pls) > of course we just removed the HPN option for FreebSD's ssh/scpwhat version are you using? I am using OpenSSH_6.6.1p1, OpenSSL 1.0.1p-freebsd 9 Jul 2015 on 10.2-RELEASE-p7 . I read the news about dropping the HPN patch. Recently we had experienced low scp performance between a new (modern) linux host we cloned to some cloud provider and a local quite old linux machine. I noticed that I had the same low performance between the new remote linux and my FreeBSD box, so I tried to address this. However no matter the HPN tuning, on this particular connection (about 100ms latency), the bhyve Ubuntu is *always* faster than its host (my FreeBSD box), so I guess the benefit from HPN would be marginal anyway. On 03/10/2016 10:22, Achilleas Mantzios wrote: > On 01/10/2016 03:55, John-Mark Gurney wrote: >> Achilleas Mantzios wrote this message on Wed, Sep 28, 2016 at 13:26 +0300: >>> We have a weird situation here. We just made a clone of a virtual image running Linux and sent it over to some could provider. The problem is that the scp performance to *many* hosts in our office >>> center has worsened considerably, including one freebsd box. >>> >>> In this freebsd box I run also a jail, and a linux ubuntu image with bhyve. The crazy thing here is that : >>> >>> 1) scp from the original (local office center) linux image to the host FreeBSD, its jailed FreeBSD and its bhyve linux is 2.7 MB/s >>> 2) scp from the cloud linux image to the host FreeBSD is slow (~300KB/s) >>> 3) scp from the cloud linux image to the above FreeBSD's jail is slow(~300KB/s) >>> 4) scp from the cloud linux image to the above FreeBSD's bhyve ubuntu is fast(~1->1.5MB/s) >>> >>> What can cause this behavior? >>> >>> PS >>> Please answer to me directly as I am not subscribed to -net. >>> Thanks a lot for any ideas. >> I worked on this last year a bit, but was never able to track it down. >> >> It may be an issue w/ internal SSH's buffering not growing properly to >> handle the latency. >> >> I posted some info on the wiki about this: >> https://wiki.freebsd.org/SSHPerf > > Thanks tons! > In this case of mine, just playing around with HPN: > > HPNDisabled no > HPNBufferSize 8192 > > in sshd_config was enough to bring it on par with linux. > >> > > -- Achilleas Mantzios IT DEV Lead IT DEPT Dynacom Tankers Mgmt