From owner-freebsd-net@freebsd.org Thu Feb 16 16:55:56 2017 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 09299CDCDD6 for ; Thu, 16 Feb 2017 16:55:56 +0000 (UTC) (envelope-from meyer.sydney@googlemail.com) Received: from mail-wr0-x233.google.com (mail-wr0-x233.google.com [IPv6:2a00:1450:400c:c0c::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9BFD215B7 for ; Thu, 16 Feb 2017 16:55:55 +0000 (UTC) (envelope-from meyer.sydney@googlemail.com) Received: by mail-wr0-x233.google.com with SMTP id z61so15825881wrc.1 for ; Thu, 16 Feb 2017 08:55:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=la1VDx8zCfIKDuHm+y1a38TOvPCfVw2g5T8ruB9SQdo=; b=ZxmVDuaefLIHu77kFkicjY9e8SfkyRbGgFor3JVm1GA3K0V1dovBLhjPSGtKqRDNZd utngoWXZWKdWNmwEgjqybhh4oa4PlZnDtkYgNIWNYSAVYUrDDm1qx9Hy74G3qfDjzcQX L+s5cgBdvt/0OWk+c5Vc5iXBr09WVqdCLB0rRK7rAGrRryrO4KwTcETZfs18Kig1/1Vn SGkNyw8oGtGAphMK2zra26+ddIb3w1S6ljNwFnSlmHcY2m5a6PM2U3Xf/fkGbtYzHjYz P7aIf45KtU2keRO19WgXLG5tctkfTUSLRRoHIKfONr/N9RgvH46QIkGtDRkWVjtBeX67 Yz0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=la1VDx8zCfIKDuHm+y1a38TOvPCfVw2g5T8ruB9SQdo=; b=VB1ZUw2jQMi6nmwP1OOdO2p7HX1k4+tQLN6eYR9ezOhvg3BzjfbS6+YtWsrk2QJOl/ sP3wlm4bWyNeBKXMBv3ylLsmk0YZzdEDwgOZab8Zk+LnOD9PvWJfhpqKxEs1QgRgDnss ZtOTZXV+v2hxrCEb65nYuUOcEjSqMc+6bn4Nogv389R/kHULt5iUq4XAerpqdLGFKAnM o7GREFP5UrCp3Qk1Sxwt+aVQrdm2IBb952UHYFCUlFY5SOc+V/xOwd6YyYwx+keIgCob BStTuNZepgYy+DkkZ14iNeQxciw8Z/qzfNnx3gGBVACYiAaW0CRVeFO1d99l8FNDckLS p+/w== X-Gm-Message-State: AMke39kVg5eYr43NPL27HzPn2FIz+fEuUZoOePkPicCE7AB+AGIYzbIeGSCOxzrQ79e0Cg== X-Received: by 10.223.151.138 with SMTP id s10mr3101628wrb.65.1487264152545; Thu, 16 Feb 2017 08:55:52 -0800 (PST) Received: from ?IPv6:2a02:a03f:aa6:3501:9466:41ef:a2b7:878f? ([2a02:a03f:aa6:3501:9466:41ef:a2b7:878f]) by smtp.googlemail.com with ESMTPSA id d42sm9661261wrd.7.2017.02.16.08.55.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Feb 2017 08:55:51 -0800 (PST) From: Sydney Meyer Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: Slow Download Speeds from AWS S3 Date: Thu, 16 Feb 2017 17:55:51 +0100 References: <18e49da9-47eb-1803-e223-b4385e7d8690@multiplay.co.uk> To: freebsd-net@freebsd.org In-Reply-To: <18e49da9-47eb-1803-e223-b4385e7d8690@multiplay.co.uk> Message-Id: <30F9FC69-CEBE-4CBE-93A9-DEDBD053C6C6@googlemail.com> X-Mailer: Apple Mail (2.3259) 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: Thu, 16 Feb 2017 16:55:56 -0000 Hi Steve, increasing the buffer size did indeed enhance throughput. I am obviously not an expert in this field, but i don't understand why = or if the TCP Receive Window Size shouldn't increase automatically. I found this thread on the ML and i'm reading myself a bit more into the = topic right now. https://lists.freebsd.org/pipermail/freebsd-net/2014-August/039495.html Thank you for your tip, however.. Sydney > On 16 Feb 2017, at 16:35, Steven Hartland = wrote: >=20 > Window scaling and receive buffer scaling is the most likely cause. >=20 > Check what the sysctl net.inet.tcp.recvspace is set to, then try = increasing it e.g. > sysctl net.inet.tcp.recvspace=3D655360 >=20 > This jumped the transfer rate with a wget and your test URL from 3MB/s = to 30MB/s here. >=20 > Regards > Steve >=20 > On 16/02/2017 14:34, Sydney Meyer via freebsd-net wrote: >> Hello, >>=20 >> I'm seeing continuous slow download speeds from Amazon S3, but only = on FreeBSD. Other OSes saturate the connection without problems. >>=20 >> This happens with 10.3-RELEASE and 11.0-RELEASE and only with AWS S3 = in different regions (Ireland, London, Frankfurt, US Standard have been = tested) whilst using fetch, curl, et. al. >>=20 >> I have tested this on multiple machines, bare metal, bhyve, Xen and = VMware VMs, routed setups and direct pppoe links.. all the same. >>=20 >> Anyone seeing similar issues? >>=20 >> Here's a url to try: >>=20 >> = http://s3.eu-central-1.amazonaws.com/4f48caf1d8bcbef8/c5b38f8b3625d2b6/zer= ofile.raw >>=20 >> Also, when doing double NAT, i.e. VMware Fusion FreeBSD Guest with = "Share with my Mac"-Interface, the machine is doing completely fine, as = in saturates the link, 90Mbps otherwise between 12-15Mbps.. >>=20 >> I also switched the FreeBSD Routers with Linux-based ones and with = the isp-provided router box, with the same result. >>=20 >> I have launched VMs with Digital Ocean to "rule out" my ISP and there = seems to be the same issue. Downloading from S3 is multiple times slower = than any other connection to services outside of S3 or on any other OS. >>=20 >> It seems like other people are seeing the same issue: >>=20 >> https://forums.freebsd.org/threads/59756/#post-343064 >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to = "freebsd-net-unsubscribe@freebsd.org" >=20 > _______________________________________________ > freebsd-net@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"