From owner-freebsd-hackers@freebsd.org Thu Jun 23 16:28:09 2016 Return-Path: Delivered-To: freebsd-hackers@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 479EFB73429; Thu, 23 Jun 2016 16:28:09 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-it0-x230.google.com (mail-it0-x230.google.com [IPv6:2607:f8b0:4001:c0b::230]) (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 1183527B1; Thu, 23 Jun 2016 16:28:09 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-it0-x230.google.com with SMTP id g127so3550055ith.1; Thu, 23 Jun 2016 09:28:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6smSpgiO0a+prCsH1gSTgnBcHU5IhwQsj2/uTRkqWSk=; b=O4a6hwSQY1UeyksOmOXOjedUWWdu//zBgP08GktX0FuZAkS1wLxEq8Bv5oCqOzuHET dei8KCgqQZVqduUInNyAR4kBuWu6R00MCt4rokgsoi+Glw/ZIHGPzD6XQ3w4Ikk5U7Po B/6LDLX/Xb3rSkHl820TMdPyJPxHrekmiqmvXyIJPXfaTb/aqzQwKJSmONKcEEjXGg2+ asXehCJ+XAzRixE0LvtVKjSkiHKoixal1+99OfvLpuEnobEexJDw95pmquon2b+wZ/X0 Mn0bdtFq5AufghvpZV5YhMoOjloXpcUH25fd5kZ2ogLLCxpRQrHXJ2Boudg9ODTlCUBm S0jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6smSpgiO0a+prCsH1gSTgnBcHU5IhwQsj2/uTRkqWSk=; b=OtQ4xcxNUnmFvokedslIO3rrlGEKpaPw7XEhV9uau04bBlOKRmzMWcP1ZrU3eb0r5d CjvCncbbJwje5Cd+362KFbsM2uj9pypRmPrzFrPLPZKnqKJQH/ByJtGJvdTKl+U/AjS8 nfropjSexe02oS2d/IOCvdsbO1960cytOuRlC2OgJjRAugstwTS11BHyKNnZg+0s59q7 2M0U3T/mdECer+1WV78QrSozl2DTmi5Spa4/Kbyzh7fKNywi0q3p7c9ub3RietXCiTg3 Eit4lZRIHOYJpa8nzxYGZtvEFBQYveGdbvWNW9P6L3Z3wR2FyUGYA1MUkoeNk3O/A8ai eSzA== X-Gm-Message-State: ALyK8tIcCQPjLwlMYZiCuKNekLzplfaFIBAddll/ZShPl3vWieqiA9qYeEVkJN63RhvCOg7F2OrvBrPUDSoAYw== X-Received: by 10.36.200.131 with SMTP id w125mr1662838itf.80.1466699288138; Thu, 23 Jun 2016 09:28:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.210.212 with HTTP; Thu, 23 Jun 2016 09:28:07 -0700 (PDT) In-Reply-To: <9688c9e7-3619-82ef-a10e-00ef97d435c4@bsd.com.br> References: <8751579c-68ae-7330-eb9b-c67d84ae18db@bsd.com.br> <9688c9e7-3619-82ef-a10e-00ef97d435c4@bsd.com.br> From: Adrian Chadd Date: Thu, 23 Jun 2016 09:28:07 -0700 Message-ID: Subject: Re: Poor performance when using urtwn on beaglebone black To: =?UTF-8?B?T3RhY8OtbGlv?= Cc: "freebsd-arm@freebsd.org" , "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Thu, 23 Jun 2016 16:35:16 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2016 16:28:09 -0000 Hm, okay. I'll go try and reproduce this locally. can you do an 'ifconfig -v wlan0 list scan' and 'ifconfig -v wlan0 list sta' and privately email it to me? That way I can try to see what environment you have. the 2x2 NICs don't do rate control at the moment, so I bet part of the problem there is the default fixed value is terrible :( -adrian On 23 June 2016 at 09:23, Otac=C3=ADlio wrote: > I did the tests with two adapters. Bellow RTL8192CU > > poor performance > % dmesg | grep urtwn > urtwn0: = on > usbus1 > urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R > urtwn0: enabling 11n > % netperf -H squitch > MIGRATED TCP STREAM TEST from 0.0.0.0 () port 0 AF_INET to squitch () por= t 0 > AF_INET : histogram : interval : dirty data : demo > Recv Send Send > Socket Socket Message Elapsed > Size Size Size Time Throughput > bytes bytes bytes secs. 10^6bits/sec > > 65536 32768 32768 10.72 1.06 > > good performance (after create the interface using -ht) > % dmesg | grep urtwn > urtwn0: = on > usbus1 > urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R > urtwn0: enabling 11n > % netperf -H squitch > MIGRATED TCP STREAM TEST from 0.0.0.0 () port 0 AF_INET to squitch () por= t 0 > AF_INET : histogram : interval : dirty data : demo > Recv Send Send > Socket Socket Message Elapsed > Size Size Size Time Throughput > bytes bytes bytes secs. 10^6bits/sec > > 65536 32768 32768 10.16 7.41 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > poor performance for RTL8188CUS > > % dmesg | grep urtwn > urtwn0: = on > usbus1 > urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R > urtwn0: enabling 11n > % netperf -H squitch > MIGRATED TCP STREAM TEST from 0.0.0.0 () port 0 AF_INET to squitch () por= t 0 > AF_INET : histogram : interval : dirty data : demo > Recv Send Send > Socket Socket Message Elapsed > Size Size Size Time Throughput > bytes bytes bytes secs. 10^6bits/sec > > 65536 32768 32768 14.03 0.02 > > > good performance (after create the interface using -ht) > urtwn0: = on > usbus1 > urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R > urtwn0: enabling 11n > % netperf -H squitch > MIGRATED TCP STREAM TEST from 0.0.0.0 () port 0 AF_INET to squitch () por= t 0 > AF_INET : histogram : interval : dirty data : demo > Recv Send Send > Socket Socket Message Elapsed > Size Size Size Time Throughput > bytes bytes bytes secs. 10^6bits/sec > > 65536 32768 32768 10.15 5.81 > > > Em 23/06/2016 13:06, Adrian Chadd escreveu: >> >> which urtwn is it? can you do a dmesg | grep urtwn? >> >> I'd like to see which NIC it is and whether firmware rate control is >> working. >> >> Thanks, >> >> >> >> -adrian >> >> >> On 22 June 2016 at 10:52, Otac=C3=ADlio wrote= : >>> >>> Dears >>> >>> I'm getting poor performance when using wifi by urtwn on beaglebone >>> black. >>> I'm using netperf to do benchmarks and I'm getting less than 1Mbps >>> normally >>> and between 3Mbps and 7.5Mbps when creating the interface with -ht >>> option. I >>> think that previous versions has better performance. >>> >>> FreeBSD beaglebone 11.0-ALPHA4 FreeBSD 11.0-ALPHA4 #0 r302064: Wed Jun = 22 >>> 00:25:52 BRT 2016 >>> >>> ota@squitch:/root/workdir/crochet/work/obj/arm.armv6/usr/src/sys/BEAGLE= BONE >>> arm >>> >>> []'s >>> >>> -Otac=C3=ADlio >>> >>> >>> _______________________________________________ >>> freebsd-arm@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-arm >>> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > >