From owner-freebsd-arm@freebsd.org Wed Sep 13 07:08:09 2017 Return-Path: Delivered-To: freebsd-arm@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 D2F98E10E28 for ; Wed, 13 Sep 2017 07:08:09 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::22a]) (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 9E6A376594 for ; Wed, 13 Sep 2017 07:08:09 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-io0-x22a.google.com with SMTP id n69so56921874ioi.5 for ; Wed, 13 Sep 2017 00:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:message-id:date:subject:from :in-reply-to:references:to:cc; bh=TNAXK9YVAmFO8/7SwUls/RHU5QyxdyV0zSrPerheygA=; b=nP0sC53/yrd/Q50GcBhYTBkr/mQAolN9sjQ814KYOlCTxWKxaDXp5tabksxff+WbMn 8M8BsUDSNgjUSFTVnjDe21IjqSsy22XSIkHbiUdu7c6oIA8o7NIMsGVXB7NZQErBVgnw MD0UP8MIgUDxUEy4DYocQjdy4yKALR0ZooZ9KUSnA2G0XESEVylskW0ZPFmHljagqaVK S7DZXLWZqdGm/8940rPqqy2z45mf1uNewSGQO+kFeBPwyFNgSb3XSnTGnCtrBvMipjxu VRUZIK+W4xM5kwBvLapUlLhtU++G9s3I3BuqDqQ4QCUhHVFaDqMA1nwWfyVSfdgodQpL RGLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :message-id:date:subject:from:in-reply-to:references:to:cc; bh=TNAXK9YVAmFO8/7SwUls/RHU5QyxdyV0zSrPerheygA=; b=cPy+I2irbShR0WQAvnm1IF3zSlw6eyididYqEY2Fv3dN+EhagBDQtkpBJjsBlP2lcb wC5N2y/aAmMUMVYe0K/20kqahT/Vn4AZ/dh/w3wZSp/aBWBmAsiAlunfUzSlLi5Qdi7F bL3xW9IYOjDzhihGZ4hkUAxhQaOyM546DKsikqUqirz3PzejNwnpa3WGa0BYtOGD305T cyNgKlndWxunsKHi0M930kY8l6C19cSgRx7LV4ygXZY6nVciC0BCGwq1AejBjywdXo8Q HLVRHXRQChslzPMhKlaUf/VVpK8506gqR4/6csiP67c3uTBlMit4B5rQ5kRZF5XoKe41 wnsQ== X-Gm-Message-State: AHPjjUhyEUs7L+PWeQulWIfkncpEK7LJoQ+SLikr9NhiJeicCSVis68d z62kILSrdaneB5QbGYw= X-Google-Smtp-Source: AOwi7QBZcQDXz2jogjxr7TZLGk1kIZAHvfAcOPRAGrgaSVhU0QwI1knja20RV7P1hMCAr8nThqGr5Q== X-Received: by 10.107.189.194 with SMTP id n185mr12794203iof.48.1505286488843; Wed, 13 Sep 2017 00:08:08 -0700 (PDT) Received: from [127.0.0.1] ([204.174.94.196]) by smtp.gmail.com with ESMTPSA id c198sm7056755ioc.67.2017.09.13.00.08.05 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Sep 2017 00:08:06 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: BlackBerry Email (10.3.3.2163) Message-ID: <20170913070805.6545490.83195.31798@gmail.com> Date: Wed, 13 Sep 2017 00:08:05 -0700 Subject: Re: Beaglebone Black + FreeBSD + USB WiFi = WAP? From: Russell Haley In-Reply-To: References: <40EA308E-489D-4A0B-B75A-2CA5A4EC474E@theory14.net> <20170905141711.6545490.14963.31294@gmail.com> <656A5193-7389-476C-AF58-EB013E9155F3@theory14.net> To: Chris Gordon Cc: freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2017 07:08:09 -0000 Need some sort of script to monitor performance of various things.=C2=A0 Netstat Load average Dtrace would be good for looking into locks,mem consumption at specific cal= ls. Start looking at how long each syscall is taking? Once you have some idea of what system calls are stalling, a dev could put = it on a debugger? Have you compared against a linux image on the same unit? Sent=C2=A0from=C2=A0my=C2=A0BlackBerry=C2=A010=C2=A0smartphone=C2=A0on=C2= =A0the=C2=A0Virgin=C2=A0Mobile=C2=A0network. =C2=A0 Original Message =C2=A0 From: Chris Gordon Sent: Tuesday, September 12, 2017 7:00 PM To: Russell Haley Cc: freebsd-arm Subject: Re: Beaglebone Black + FreeBSD + USB WiFi =3D WAP? > On Sep 6, 2017, at 8:13 PM, Russell Haley wrote: >=20 > Argh! I was just in Maryland and we flew home from Dulles!!! I made > the client push the date forward to last week so I could be home for > Labour Day. >=20 > Have fun! (sob, sob, sob). ;) Sorry you missed it. I agree that timing wasn=E2=80=99t great with a holida= y weekend (for the US at least) on one side and EuroBSDcon very soon afterw= ard, but constraints on the availability of the hotel drove the exact date.= Maybe we can see you in 2019 (we do the conference every other year, oppos= ite MeetBSD). >>> I used nuttcp for testing the wired connection, so I would plan to use = that for the Wifi. >=20 > nuttcp. Got it, I'll start playing with it. For the testing described in my original email and the data below, I used t= he most basic options from https://fasterdata.es.net/performance-testing/ne= twork-troubleshooting-tools/nuttcp/. Specifically: Server:=20 nuttcp -S Client: nuttcp -i1 server_hostname and nuttcp -i1 -r server_hostname >>> - Can you run the bbb as a standard device (not an access point) and >>> test the performance of the wlan0 interface using the method of >>> measurement pointed above? I will do the same at some point with my >>> wi-fi dongle. >>=20 >> Yes, that should be easy to do, but will be next week before I have a ch= ance. I did the above -- setup the BBB as a simple WiFi client to my existing (an= cient) access point. I ran nuttcp between the BBB and my desktop (wired net= work, access point connected to same wired network). Both the BBBB and desk= top were run as server and client for nuttcp. Many runs of the various comb= inations were run. I saw the following: - In general between 10 and 20 Mbps, typically on the lower side. This is c= onsistent for what I see for other devices going to my access point (again,= it=E2=80=99s an old access point, circa 2008, so I don=E2=80=99t expect to= o much from it) - I did have one period of slow traffic, 1 Mbps and lower. After a few runs= of this, I did a =E2=80=9Cservice netif restart=E2=80=9D, dealt with pets = for a couple of minutes and when I returned performance was back. - I just hit another period of slow traffic, but this is around 2.5 Mbps in= stead of the really bad < 1 Mbps. Instead of resetting the network, I=E2=80= =99m going to let the BBB sit until morning and test again then. I did test= my iPad with a speed test app and it=E2=80=99s getting a little more than = 10 Mbps to the internet through the same access point that the BBB is using. I=E2=80=99ll follow up with what I see in the morning. My theories at this = time (neither very good) are: - There is a lot of wifi congestion around me and when others are heavily u= sing their wifi, I suffer. This is exacerbated by something about the usb w= ifi NIC I have in the BBB. This doesn=E2=80=99t impact the iPad or other de= vices due to differences in antennae or some other aspect of their devices.= This idea doesn=E2=80=99t quite fit with everything, but a guess. - There is something in kernel or wireless stack that degrades over time/am= ount of traffic passed that ends up limiting performance. Thanks, Chris