From owner-freebsd-net@freebsd.org Sat Oct 1 00:56:08 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 73E80C0235F for ; Sat, 1 Oct 2016 00:56:08 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3FEF61C6D for ; Sat, 1 Oct 2016 00:56:07 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id u910txTL029782 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 30 Sep 2016 17:55:59 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id u910twwn029781; Fri, 30 Sep 2016 17:55:58 -0700 (PDT) (envelope-from jmg) Date: Fri, 30 Sep 2016 17:55:58 -0700 From: John-Mark Gurney To: Achilleas Mantzios Cc: freebsd-net@freebsd.org, Ilias Seperis Subject: Re: Strange issue with scp performance Message-ID: <20161001005558.GB1751@funkthat.com> Mail-Followup-To: Achilleas Mantzios , freebsd-net@freebsd.org, Ilias Seperis References: <57EB9AC8.3050102@matrix.gatewaynet.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57EB9AC8.3050102@matrix.gatewaynet.com> X-Operating-System: FreeBSD 11.0-ALPHA2 amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Fri, 30 Sep 2016 17:56:00 -0700 (PDT) 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: Sat, 01 Oct 2016 00:56:08 -0000 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 -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."