From owner-freebsd-net@FreeBSD.ORG Wed Dec 3 16:27:11 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F2525B86 for ; Wed, 3 Dec 2014 16:27:10 +0000 (UTC) Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com [IPv6:2a00:1450:400c:c00::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7FC4925F for ; Wed, 3 Dec 2014 16:27:10 +0000 (UTC) Received: by mail-wg0-f51.google.com with SMTP id k14so20083372wgh.24 for ; Wed, 03 Dec 2014 08:27:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=SsgVtYYRU1ZQsNAI20+OvNil/8PNrhLKQwXTViZuf5o=; b=ubcD5cqLk11QRdlwOWJlhP0JBhJgRZC31m/17uJmgpAetFie9A52/DR2VEDbE1Mooi JYK6Sz78wdrfUSGoaDVVxHG+RlmF2ge61DdOhcS8ZPP1gaL8q59Xe9brTVBkF/JbOcYY LuSjdTlvmqbppMlNEatXKyQ0QfX7EAaey9lQxLTsoXkxB9sn7JRHuCAaI8Z28D4C4mhO F7Hlxs5J9GEHiWj8kodlyFZhrJ2E6v1SMU9etU9eWVu5erlwxOeoU3Bnv0setEvTnt2o wIYHSACnGPVmzlij3UWS6ZcZ1pyab6XlwSX5aoEqcwnnwbDLsH+x9Lv4UmjswsxbikAK 3BaQ== MIME-Version: 1.0 X-Received: by 10.180.240.201 with SMTP id wc9mr14386847wic.59.1417624028946; Wed, 03 Dec 2014 08:27:08 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.216.106.195 with HTTP; Wed, 3 Dec 2014 08:27:08 -0800 (PST) In-Reply-To: References: <727AB395-CF83-4D13-A2C3-50969C2969B0@patpro.net> <547F3352.3040101@multiplay.co.uk> <43C2162E-2B9F-437F-B4CF-E792CEC5DA7B@patpro.net> Date: Wed, 3 Dec 2014 08:27:08 -0800 X-Google-Sender-Auth: LIxFoLExPka_UWNJSj0w1q2eOrE Message-ID: Subject: Re: Horrendous upload network performance with VLAN (download seems OK) From: Adrian Chadd To: Borja Marcos Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Net , Steven Hartland , Patrick Proniewski X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2014 16:27:11 -0000 hi, try dropping the MSS of the connection down. I wonder if you're hitting some frame size cap when transmitting - adding a VLAN header adds a few bytes to the size of the frame. If the NIC is enforcing some maximum frame transmit size then it may be failing to transmit things. -adrian On 3 December 2014 at 08:25, Borja Marcos wrote: > > On Dec 3, 2014, at 5:21 PM, Patrick Proniewski wrote: > >> On 3 d=C3=A9c. 2014, at 17:09, Borja Marcos wrote: >> >>> On Dec 3, 2014, at 5:05 PM, Patrick Proniewski wrote: >>> >>>> I did and it failed, but maybe I've not used the right syntax: >>>> >>>> # ifconfig bxe0 -vlanmtu >>>> ifconfig: -vlanmtu: Invalid argument >>>> >>>> man bxe makes me think that this driver won't allow this kind of chang= es. >>> >>> Although there's no guarantee it will solve your issues, try disabling = LRO and TSO. I've found situations in which they do more harm than good, de= pending on the particular card and driver. >>> >>> Anyway it's a cheap experiment :) >> >> Sure. >> Same result unfortunately. >> >> I've made few tcpdump experiments during my scp upload tests. One on bxe= 0 that shows a lot of packets for the LLC protocol, and one on bxe0.161 tha= t shows many "suspected TCP retransmissions", and very few LLC packet (6 in= about 350 packets of this capture). > > I forgot, sorry. Sometimes you need to set the interface to down and up a= gain to make sure changes to flags such as LRO and TSO have been applied :/ > > TSO can be disabled in a global way using a sysctl variable: net.inet.tcp= .tso > > > > > > Borja. > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"