From owner-freebsd-arm@freebsd.org Wed Sep 9 22:55:06 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 9927AA01092 for ; Wed, 9 Sep 2015 22:55:06 +0000 (UTC) (envelope-from freebsd.asc@strcmp.org) Received: from olinguito.schwarzes.net (olinguito.schwarzes.net [IPv6:2a01:4f8:7d:1b5::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0BF0F105D for ; Wed, 9 Sep 2015 22:55:05 +0000 (UTC) (envelope-from freebsd.asc@strcmp.org) Received: from [62.109.78.35] (mosquito.schwarzes.net [62.109.78.35]) (authenticated bits=0) by olinguito.schwarzes.net (8.15.2/8.15.2) with ESMTPA id t89Mt2oA014232 for ; Thu, 10 Sep 2015 00:55:03 +0200 (CEST) (envelope-from freebsd.asc@strcmp.org) From: Andreas Schwarz To: freebsd-arm@FreeBSD.org Mail-Reply-To: Andreas Schwarz Mail-Followup-To: freebsd-arm@FreeBSD.org Date: Thu, 10 Sep 2015 00:55:02 +0200 (CEST) Message-ID: <46e495e484.66704618@mail.schwarzes.net> In-Reply-To: <46d8b55830c.48a059ec@mail.schwarzes.net> References: <55A7D8CE.4020809@selasky.org> <55B23276.8090703@selasky.org> <55B73113.2020308@selasky.org> <55B8AB76.7030603@selasky.org> <55B8B297.1010008@selasky.org> <20150729154516.GH78154@funkthat.com> <55B8F5EC.2050908@selasky.org> <46ad096c958.1a82a175@mail.schwarzes.net> <55B9C3E2.5040501@selasky.org> <46ae815c7c3.447237c8@mail.schwarzes.net> <46aece00b53.3c1cdc1f@mail.schwarzes.net> <55BB2A5F.9000502@selasky.org> <46baa16c4ce.6efd29ef@mail.schwarzes.net> <55CF31A1.5080205@selasky.org> <46ce372c895.20050775@mail.schwarzes.net> <46d0a4441bb.41f6f91d@mail.schwarzes.net> <55DD5C0A.2050401@selasky.org> <46d8b55830c.48a059ec@mail.schwarzes.net> User-Agent: YAM/2.9p1 (MorphOS; PPC; rv:20140418r7798) Subject: Re: DWC OTG TX path optimisation for 11-current MIME-Version: 1.0 Content-Type: text/plain X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (olinguito.schwarzes.net [78.47.41.143]); Thu, 10 Sep 2015 00:55:03 +0200 (CEST) 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, 09 Sep 2015 22:55:06 -0000 On 01.09.15, Andreas Schwarz wrote: > On 28.08.15, Svatopluk Kraus wrote: > >> My subjective observation is that the slow system response can be >> caused by slow wake up from idle state. I have tried to change >> scheduler from ULE to BSD one with no MII warning and everything is >> okay result. And buildword was about one hour faster. Note that the >> trigger is very sensitive, so it can be just because system timing and >> many other things are different with different scheduler. > > I've tried the 4BSD scheduler too, amazing, faster and surely prevents > to run into the known problem. I've just started a buildworld loop, will > try to reach 10 rounds. I just want to inform you that I've copmpleted my ten rounds of building (with -j4) and cleaning the world in a loop without any problems (and INVARIANTS switched off) at my RPI2 (see script below). It take ~18 hours for a "round". It's not a fix but a real workaround to prevent this annoying interrupt problems with the sd driver. Seems, that the more "stolid" 4BSD scheduler will not drive the system in situations which trigger the problem. root@pizelot:~ # uname -a FreeBSD pizelot.schwarzes.net 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r287315: Mon Aug 31 12:03:20 CEST 2015 root@pizelot.schwarzes.net:/usr/obj/usr/src/sys/RPI2-B-ASC arm #!/bin/sh cd /usr/src while true do make cleandir make -j4 kernel-toolchain make -j4 buildkernel make -j4 buildworld date >> loop_build.log done -asc