From owner-freebsd-arm@freebsd.org Wed Jul 29 15:45:17 2015 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 DE3639AE1F1 for ; Wed, 29 Jul 2015 15:45:17 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BC6E4FEB for ; Wed, 29 Jul 2015 15:45:17 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id t6TFjH7i007331 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 29 Jul 2015 08:45:17 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id t6TFjHS7007330; Wed, 29 Jul 2015 08:45:17 -0700 (PDT) (envelope-from jmg) Date: Wed, 29 Jul 2015 08:45:16 -0700 From: John-Mark Gurney To: Svatopluk Kraus Cc: Hans Petter Selasky , "freebsd-arm@freebsd.org" Subject: Re: [RPI-B] [HEADS UP] DWC OTG TX path optimisation for 11-current Message-ID: <20150729154516.GH78154@funkthat.com> References: <55A7D8CE.4020809@selasky.org> <55B23276.8090703@selasky.org> <55B73113.2020308@selasky.org> <55B8AB76.7030603@selasky.org> <55B8B297.1010008@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Wed, 29 Jul 2015 08:45:17 -0700 (PDT) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jul 2015 15:45:18 -0000 Svatopluk Kraus wrote this message on Wed, Jul 29, 2015 at 13:52 +0200: > On Wed, Jul 29, 2015 at 1:01 PM, Hans Petter Selasky wrote: > > On 07/29/15 12:42, Svatopluk Kraus wrote: > >> > >> On Wed, Jul 29, 2015 at 12:31 PM, Hans Petter Selasky > >> wrote: > >>> > >>> On 07/29/15 12:08, Svatopluk Kraus wrote: > >>>> > >>>> > >>>> On Tue, Jul 28, 2015 at 9:36 AM, Hans Petter Selasky > >>>> wrote: > >>>>> > >>>>> > >>>>> Hi, > >>>>> > >>>>> Can you test this: > >>>>> > >>>>> https://svnweb.freebsd.org/changeset/base/285935 > >>>>> > >>>> > >>>> I'm hunting some strange behaviour slowdowning my set RPI2 - usb3 hub > >>>> - usb3 disk during buildworld, but I have noticed the following: > >>>> > >>>> make -j6 buildworld > >>>> > >>>> before r285935 -> 60145.29 real 350932.67 user 36402.54 sys > >>>> after r285935 -> 67831.38 real 196310.43 user 19135.73 sys > >>>> > >>>> The kernel before r285935 was day or two older. > >>>> > >>>> These are just one-run times, however the difference is quite big. The > >>>> change r285935 could influence the thing I'm investigating so it's > >>>> worse now, but still ... > >>>> > >>> > >>> Regarding build times you should also take "r285068" into account. > >>> > >> > >> Yes, I know about that. The r285068 was applied in both kernels. > >> > > > > Hi, > > > > The "sys" and "user" times are down. While the "real" time is up. That means > > more sleeping??? There is a knob in "hw.usb.umass.throttle" which you can > > set to slow down the disk access. Maybe it's reading files faster than > > before and then starts swapping? > > > > > The "sys" and "user" times are not reliable much. It was reported on > arm a few times. However, I wanted to report what I noticed just to > let anybody know about it. Maybe somebody would test r285068 for usb > disk too. I need to hunt down my problem firstly to be more sure about > this. > > Just for your information, when I start buildworld, the system > responds very fast (console, ssh). After about one hour, it starts to > print the following warnings: > > smsc0: warning: MII is busy > smsc0: warning: Failed to write register 0x114 > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > smsc0: warning: Failed to read register 0x118 > smsc0: warning: Failed to write register 0x114 > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > smsc0: warning: Failed to write register 0x114 > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > smsc0: warning: Failed to read register 0x114 > smsc0: warning: MII is busy > smsc0: warning: Failed to write register 0x114 > smsc0: warning: Failed to read register 0x114 Are these messages almost constantly scrolling on the terminal? Is your console also a serial console? If so, then it's likely that these printf's are what is causing things to be slow... If you recompiled w/o those, then it's likely that your system won't be slow anymore.. Though the real fix is to figure out why these messages are happen and fix them... > and system responds very slow. When I stop buildworld (or when it > finishes), the warnings are still printed and system is still slow. > Even after several hours. When I disconnect everything (except the > disk itself), it does not help. When I set hw.usb.dwc_otg.debug=1, > there is quite a lot debug printing. Just now, I'm trying to know who > is responsible for such big trafic (almost nothing is running in > system). The generated load is so big that I'm not able to turn off > the debug sometimes. > > Svata > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."