From owner-freebsd-arm@freebsd.org Wed Jul 29 11:52:49 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 E7B2E9AB309 for ; Wed, 29 Jul 2015 11:52:49 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) (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 B1EE2EE7 for ; Wed, 29 Jul 2015 11:52:49 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: by iodd187 with SMTP id d187so18511841iod.2 for ; Wed, 29 Jul 2015 04:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=YrT9nq0iPKrAfvDM6qdvkhP21oa0lfxssJJEH4nCU9A=; b=DxOd0DNcT49hqcfs7zxBduJaaKvn1szWvpCAMFru5jUGvnxL9ZSroKwejHv6gkV9H0 He19FOMPeIwfcbStalhIFCKVnh+fXd51o8xEg0HuzJk+4zRa1hI1QXh0B99JEFOu/1IF trUSeIm/ufoMLkSvDjZFkc3pMIdudRz+eFxRVPKvNVba2aELWloaGWwn35XbTELkZydV NOm8QOkFI5I+I1fLWNJYFXAN5mJBo2uOvLMAVP2vGDWqBSMOsPlQZqrU9TNp/kbZGb0F Q/qmvqb6CKWx58yzD3DrOyfgN/iqZxFqSZYNZYFl5WbMKCyAwqe70zFm8ztirYtyioh2 Fv6g== MIME-Version: 1.0 X-Received: by 10.107.128.28 with SMTP id b28mr868646iod.84.1438170768760; Wed, 29 Jul 2015 04:52:48 -0700 (PDT) Received: by 10.64.148.84 with HTTP; Wed, 29 Jul 2015 04:52:48 -0700 (PDT) In-Reply-To: <55B8B297.1010008@selasky.org> References: <55A7D8CE.4020809@selasky.org> <55B23276.8090703@selasky.org> <55B73113.2020308@selasky.org> <55B8AB76.7030603@selasky.org> <55B8B297.1010008@selasky.org> Date: Wed, 29 Jul 2015 13:52:48 +0200 Message-ID: Subject: Re: [RPI-B] [HEADS UP] DWC OTG TX path optimisation for 11-current From: Svatopluk Kraus To: Hans Petter Selasky Cc: Jia-Shiun Li , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 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 11:52:50 -0000 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 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