From owner-freebsd-arm@FreeBSD.ORG Sat Sep 20 14:31:24 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 45A5CE14 for ; Sat, 20 Sep 2014 14:31:24 +0000 (UTC) Received: from smtp.smtpout.orange.fr (smtp02.smtpout.orange.fr [80.12.242.124]) by mx1.freebsd.org (Postfix) with ESMTP id 7FB76175 for ; Sat, 20 Sep 2014 14:31:22 +0000 (UTC) Received: from wwinf1p20 ([10.223.75.44]) by mwinf5d56 with ME id tSXE1o00N0xLc3N03SXEzp; Sat, 20 Sep 2014 16:31:14 +0200 X-ME-Helo: wwinf1p20 X-ME-Auth: Z2RhbG1hc0B3YW5hZG9vLmZy X-ME-Date: Sat, 20 Sep 2014 16:31:14 +0200 X-ME-IP: 109.212.56.240 Date: Sat, 20 Sep 2014 16:31:14 +0200 (CEST) From: Gilles DALMAS Reply-To: Gilles DALMAS To: Ganbold Tsagaankhuu Message-ID: <584735728.12399.1411223474805.JavaMail.www@wwinf1p20> In-Reply-To: <284420224.12277.1411223197278.JavaMail.www@wwinf1p20> References: <568188637.10901.1411218668061.JavaMail.www@wwinf1p20> <1886035707.11136.1411219513483.JavaMail.www@wwinf1p20> <284420224.12277.1411223197278.JavaMail.www@wwinf1p20> Subject: Re: kernel debugger on cubietruck MIME-Version: 1.0 X-Originating-IP: [109.212.56.240] X-WUM-FROM: |~| X-WUM-TO: |~| X-WUM-CC: |~| X-WUM-REPLYTO: |~| Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2014 14:31:24 -0000 no need to re make the kernel-toolchain ? > Message du 20/09/14 16:26 > De : "Gilles DALMAS"=20 > A : "Ganbold Tsagaankhuu"=20 > Copie =C3=A0 : "freebsd-arm@freebsd.org"=20 > Objet : Re: kernel debugger on cubietruck >=20 > i comment emac line from : # Ethernet device=C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 loop device=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 ether device=C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 mii device=C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 smscphy #device =C2=A0=C2=A0=C2=A0 cpsw device=C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 bpf device=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 emac # U= SB ethernet support, requires miibus device=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0 miibus =C2=A0 and re run the compilation ? =C2=A0 =C2=A0 no need to = re created the sd card ? just the USB flash ? =C2=A0 > Message du 20/09/14 = 16:09 > De : "Ganbold Tsagaankhuu" > A : "Gilles DALMAS" > Copie =C3=A0 : "= freebsd-arm@freebsd.org" > Objet : Re: kernel debugger on cubietruck > > > = > On Sat, Sep 20, 2014 at 9:25 PM, Gilles DALMAS wrote: > I did not know mu= ch about debug kernel, but when I pass the trace command, I get: > > db> tr= ace > Tracing pid 0 tid 100000 td 0xc08ba870 > db_trace_self() at db_trace_= self > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc04eba6c= =C2=A0 lr =3D 0xc0232780 (db_hex2dec+0x4d8) > =C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5750=C2=A0 fp =3D 0xc08e5768 > =C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r10 =3D 0xc08ba1c4 > db_hex2dec() at db_h= ex2dec+0x4d8 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc0= 232780=C2=A0 lr =3D 0xc02320f0 (db_command_loop+0x2fc) > =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5770=C2=A0 fp =3D 0xc08e5810 > = =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4 =3D 0x00000000=C2=A0 r5= =3D 0x00000000 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0= x00000063 > db_command_loop() at db_command_loop+0x2fc > =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc02320f0=C2=A0 lr =3D 0xc0231e54 (d= b_command_loop+0x60) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp = =3D 0xc08e5818=C2=A0 fp =3D 0xc08e5828 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 r4 =3D 0xc0528609=C2=A0 r5 =3D 0xc0540c1c > =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0xc08ba1b0=C2=A0 r7 =3D 0xc08e5a48= > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r8 =3D 0x00000001=C2=A0= r9 =3D 0xc05d2918 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r10 =3D 0xc= 0615aa4 > db_command_loop() at db_command_loop+0x60 > =C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc0231e54=C2=A0 lr =3D 0xc023481c (X_db= _symbol_values+0x250) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp= =3D 0xc08e5830=C2=A0 fp =3D 0xc08e5950 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 r4 =3D 0x00000000=C2=A0 r5 =3D 0xc08ba1bc > =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0xc0615ac8 > X_db_symbol_values() = at X_db_symbol_values+0x250 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 pc =3D 0xc023481c=C2=A0 lr =3D 0xc0352c88 (kdb_trap+0x15c) > =C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5958=C2=A0 fp =3D 0xc0= 8e5978 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4 =3D 0x00000000= =C2=A0 r5 =3D 0x00000005 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= r6 =3D 0xc0615ac8=C2=A0 r7 =3D 0xc08e5a48 > kdb_trap() at kdb_trap+0x15c >= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc0352c88=C2=A0 l= r =3D 0xc050138c (data_abort_handler+0x680) > =C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5980=C2=A0 fp =3D 0xc08e5998 > =C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4 =3D 0xc08e5a48=C2=A0 r5 =3D 0x00= 000005 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0x600001d3= =C2=A0 r7 =3D 0x00000000 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= r8 =3D 0x00000013=C2=A0 r9 =3D 0xc08e5a48 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 r10 =3D 0x00000001 > data_abort_handler() at data_abort_handle= r+0x680 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc050138= c=C2=A0 lr =3D 0xc0501134 (data_abort_handler+0x428) > =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e59a0=C2=A0 fp =3D 0xc08e5a40 > = =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4 =3D 0xc08e5eb0=C2=A0 r5= =3D 0xc08ba870 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0= xc08ba548=C2=A0 r7 =3D 0x00000005 > data_abort_handler() at data_abort_hand= ler+0x428 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc0501= 134=C2=A0 lr =3D 0xc04ed754 (exception_exit) > =C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5a48=C2=A0 fp =3D 0xc08e5ab0 > =C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4 =3D 0xc3b49f00=C2=A0 r5 =3D 0xc3= b4a080 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r6 =3D 0xc3b4a0b8= =C2=A0 r7 =3D 0x00000000 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= r8 =3D 0xc056b038=C2=A0 r9 =3D 0xc3ae1700 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 r10 =3D 0xc05d4930 > exception_exit() at exception_exit > =C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 pc =3D 0xc04ed754=C2=A0 lr = =3D 0xc024e0f0 (mii_phy_flowstatus+0x2080) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5a98=C2=A0 fp =3D 0xc08e5ab0 > =C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r0 =3D 0x00000000=C2=A0 r1 =3D 0xc0547= c85 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r2 =3D 0x00000072=C2= =A0 r3 =3D 0x00000008 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r4= =3D 0xc3b49f00=C2=A0 r5 =3D 0xc3b4a080 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 r6 =3D 0xc3b4a0b8=C2=A0 r7 =3D 0x00000000 > =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r8 =3D 0xc056b038=C2=A0 r9 =3D 0xc3ae1700= > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 r10 =3D 0xc05d4930 r12 =3D 0x= 00000000 > strcmp() at strcmp+0x4 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 pc =3D 0xc03d7604=C2=A0 lr =3D 0xc024e0f0 (mii_phy_flowstatus+0x2= 080) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 sp =3D 0xc08e5a98= =C2=A0 fp =3D 0xc08e5ab0 > Unwind failure (no registers changed) > > Please= try without=C2=A0emac=C2=A0driver. MII in Cubietruck=C2=A0could be differe= nt. > > Ganbold > > =C2=A0 > > > =C2=A0 > > > Message du 20/09/14 15:13 > >= De : "Boris Astardzhiev" > > A : "Gilles DALMAS" > > Copie =C3=A0 : freebs= d-arm@freebsd.org > > Objet : Re: kernel debugger on cubietruck > > > > > >= Hi, > > > As far as I see strcmp() is passed a NULL pointer, try issuing a= backtrace to get the exact place of calling. > > > Regards > > On Sep 20, = 2014 4:11 PM, "Gilles DALMAS"=C2=A0 wrote: > > hi, > > > > =C2=A0 > > > > I= would compile freebsd for it run on a cubietruck. For this I used the wiki= page: https://wiki.freebsd.org/FreeBSD/arm/Cubieboard using option confifu= ration "CUBIEBOARD2." everything goes well, but starting on the "truck", I = get this message: > > > > =C2=A0 > > > > vm_fault(0xc08bab80, 0, 1, 0) -> 1= > > Fatal kernel mode data abort: 'Translation Fault (S)' > > trapframe: 0= xc08e5a48 > > FSR=3D00000005, FAR=3D00000000, spsr=3Da00001d3 > > r0 =3D000= 00000, r1 =3Dc0547c85, r2 =3D00000072, r3 =3D00000008 > > r4 =3Dc3b49f00, r= 5 =3Dc3b4a080, r6 =3Dc3b4a0b8, r7 =3D00000000 > > r8 =3Dc056b038, r9 =3Dc3a= e1700, r10=3Dc05d4930, r11=3Dc08e5ab0 > > r12=3D00000000, ssp=3Dc08e5a98, s= lr=3Dc024e0f0, pc =3Dc03d7604 > > > > [ thread pid 0 tid 100000 ] > > Stopp= ed at=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 strcmp+0x4:=C2=A0=C2=A0=C2=A0=C2=A0 ldr= b=C2=A0=C2=A0=C2=A0 r3, [r0] > > > > > > > > where is the problem please ? = > > > > _______________________________________________ > > freebsd-arm@fre= ebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd= -arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.= org" > > _______________________________________________ > freebsd-arm@free= bsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ar= m > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" = > _______________________________________________ freebsd-arm@freebsd.org m= ailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arm To unsubs= cribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-arm@FreeBSD.ORG Sat Sep 20 18:44:28 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1BD3A1CA; Sat, 20 Sep 2014 18:44:28 +0000 (UTC) Received: from mail.bein.link (bein.link [37.252.124.82]) (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 D181BBCB; Sat, 20 Sep 2014 18:44:27 +0000 (UTC) Received: from quad.localnet (home.bein.link [172.16.32.6]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bein.link (Postfix) with ESMTPS id 2272C1AF374; Sat, 20 Sep 2014 18:44:24 +0000 (UTC) From: Maxim V FIlimonov To: freebsd-current@freebsd.org Subject: FreeBSD-11.0-CURRENT on ARM: performance and load average Date: Sat, 20 Sep 2014 22:44:23 +0400 Message-ID: <7351653.A2UeEk9AA3@quad> User-Agent: KMail/4.12.5 (FreeBSD/10.0-RELEASE-p8; KDE/4.12.5; amd64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: freebsd-arm@freebsd.org, mav@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Sep 2014 18:44:28 -0000 Hello everyone, Recently, I encountered a problem with -CURRENT on an ARM board (cubieboard2 to be precise). The problem was that the load average was above 2. Including the fact that the board has 2 CPU cores, that's strange. Also, the network throughput was way too slow: from 3 kilobytes per second earlier to 20..50 about now. Here's a workaround for that: > sysctl kern.eventtimer.periodic=1 With that, the network performance increased while LA decreased to a decent 0.3..0.5. -- wbr, Maxim Filimonov che@bein.link