From owner-freebsd-wireless@freebsd.org Fri Mar 3 08:54:56 2017 Return-Path: Delivered-To: freebsd-wireless@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 9B4F3CF6341 for ; Fri, 3 Mar 2017 08:54:56 +0000 (UTC) (envelope-from andriyvos@gmail.com) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) (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 251341497 for ; Fri, 3 Mar 2017 08:54:55 +0000 (UTC) (envelope-from andriyvos@gmail.com) Received: by mail-lf0-f49.google.com with SMTP id y193so44415644lfd.3 for ; Fri, 03 Mar 2017 00:54:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:subject:references:date:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=aiAIAYFQXqIBxMdDCNnZiEhzjdY+szQHdypO0U6Bjgo=; b=ewdmIaAz88DrgXIdqvprJfZdKm06lQqIhsROdTzfxOHsbWJ49SWHMseMRUFgXS/48F tOIYFD85wX6hIKYDiCJeP6lR1SrJYDgult+XMDXFrOXAlxOic9MOdQkUdJ3SVGYON022 3VJVZWJfTgCMCjOyuWn7XUo3mXpYjlfBu06wbcPf34lBzyP67oDQiuMLf5qT9MEQup73 6RLcqoxI+A4Nm+nD/4cq50UPRAPhfGrjYgr/3UQCUOcR9w75Ve5mNjvhZ9ThaJgd+4nR NeLCpmpxd876hka4PJnCTHTsJNKR49+efoZjnZCGobWu8VablvvCM5v1b1H3pWj83ocy T/3g== X-Gm-Message-State: AMke39mHEZa1hCjnawpefih4w8mNHs3ETRguJz3p2N0IKhHqGI/sNmg3K4C6dNu6msKjyA== X-Received: by 10.46.88.85 with SMTP id x21mr443086ljd.90.1488525468205; Thu, 02 Mar 2017 23:17:48 -0800 (PST) Received: from thinkpad-x220 (host-176-37-109-22.la.net.ua. [176.37.109.22]) by smtp.gmail.com with ESMTPSA id w17sm2048181ljd.54.2017.03.02.23.17.47 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 02 Mar 2017 23:17:47 -0800 (PST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: =?utf-8?Q?Otac=C3=ADlio?= Cc: "freebsd-wireless@freebsd.org" Subject: Re: Low performance on rtwn_usb References: <38d16a0b-f60c-4303-f167-9d7ae0e876d7@bsd.com.br> Date: Fri, 03 Mar 2017 09:17:45 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Andriy Voskoboinyk" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (FreeBSD) X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2017 08:54:56 -0000 Fri, 03 Mar 2017 08:59:18 +0200 =D0=B1=D1=83=D0=BB=D0=BE =D0=BD=D0=B0=D0= =BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE Andriy Voskoboinyk = : > Fri, 03 Mar 2017 04:25:03 +0200 =D0=B1=D1=83=D0=BB=D0=BE =D0=BD=D0=B0=D0= =BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE Otac=C3=ADlio = > : > >> > ieee80211_load_module: load the wlan_amrr module by hand for now. > > Without wlan_amrr module default rate will be set to some fixed value > (1 MBps for 11g, 6 MBps for 11a) (can be modified via > ucastrate / mcastrate / mgtrate ifconfig(8) parameters). > > For now, there are only 2 possibilites: > 1) Kldload / add wlan_amrr to kld_list & use wlan_amrr for automatic > rate adaptation (current activity can be seen via > 'wlandebug -i wlan0 rate') > 2) Set the rate manually via ifconfig(8) (disables automatic rate > adaptation; use 'ifconfig wlan0 *rate -' to return to it). 3) (for rtwn(4) only) Set dev.rtwn.%d.ratectl tunable to 0 - then driver will use MCS4 for 11n, OFDM 36 for 11g/11a and CCK5.5 for 11b (hardcoded, still may be overridden via ifconfig(8)) >> Dears >> >> I'm using a USB wifi dongle to connect my baglebone black. This dongl= e = >> uses the driver rtwn/rtwn_usb. >> >> This driver exhibits a very low performance on both, beaglebone and a= = >> Intel Core 2 Duo notebook. With -ht and without -ht on the ficonfig t= he = >> performance is something like this: >> >> root@beaglebone:/usr/home/ota # netperf -H nostromo >> MIGRATED TCP STREAM TEST from 0.0.0.0 () port 0 AF_INET to nostromo (= ) = >> port 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.91 0.49 >> >> The dongle is this >> >> ugen1.2: at usbus1 >> rtwn0 on uhub1 >> rtwn0: = >> on usbus1 >> rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R >> ieee80211_load_module: load the wlan_amrr module by hand for now. >> wlan0: Ethernet address: 80:3f:5d:11:28:e6 >> >> Someone can give me a hint to enhance performance? Previously, with = >> urtw the throughput was about MBPs. >> >> []'s >> >> -Otacilio >> >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to = >> "freebsd-wireless-unsubscribe@freebsd.org"