From owner-freebsd-wireless@freebsd.org Fri Mar 3 07:53:28 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 E449ACF5FE0 for ; Fri, 3 Mar 2017 07:53:28 +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 6B56C13CF for ; Fri, 3 Mar 2017 07:53:27 +0000 (UTC) (envelope-from andriyvos@gmail.com) Received: by mail-lf0-f49.google.com with SMTP id k202so43872574lfe.1 for ; Thu, 02 Mar 2017 23:53:27 -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:subject:references:date:cc:mime-version :content-transfer-encoding:from:message-id:in-reply-to:user-agent; bh=N+qqNNoWGRZa9hNNB7LlO/Xi/vNLt95tHhNhziz0MLA=; b=Ea84DAm5lLPXaPaPt0r1NGxomSNi5EuI6oHXklnJl0ljIpGwarQC2fLl+5EEA9NsT2 yQ3jKY3b7FlBVD2atxV1J5pbkYQQSp1dQ3+nqESdtLOYaJF4iQPFt2nGgszZZiDdiGKV YK71QYkUd74B+PaC8WjM9ewUzs/7hCXPaKvnd6f6mS0rYFmlsBu2+S+iaia9/GZIY0FQ t4mcRdjkuJD2jYg6neNSjNfRhqts+Rg47TyPFNrWBNvQWBgEGcT/fYqa1bw7VmxxsOYy SJOSlxAE3FQYweH/ZprUEleWkB39z+jlK/gqdnU5x3H5f2QpaLX2Tf2RgscL7U7QLbMe ugLg== X-Gm-Message-State: AMke39nbDKbnaKOk0hHU7+crnQlsW+MMtVhbTEVAqYwDo/1bXcWCOAGZWAftkMSyl3isQw== X-Received: by 10.46.22.14 with SMTP id w14mr428558ljd.18.1488524361615; Thu, 02 Mar 2017 22:59:21 -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 2sm2142829ljp.29.2017.03.02.22.59.20 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 02 Mar 2017 22:59:21 -0800 (PST) Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: =?utf-8?Q?Otac=C3=ADlio?= Subject: Re: Low performance on rtwn_usb References: <38d16a0b-f60c-4303-f167-9d7ae0e876d7@bsd.com.br> Date: Fri, 03 Mar 2017 08:59:18 +0200 Cc: "freebsd-wireless@freebsd.org" MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Andriy Voskoboinyk" Message-ID: In-Reply-To: <38d16a0b-f60c-4303-f167-9d7ae0e876d7@bsd.com.br> 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 07:53:29 -0000 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). > Dears > > I'm using a USB wifi dongle to connect my baglebone black. This dongle= = > 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 th= e = > 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 ur= tw = > 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"