From owner-freebsd-arm@FreeBSD.ORG Wed Nov 26 10:54:43 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E89A1131; Wed, 26 Nov 2014 10:54:43 +0000 (UTC) Received: from mail-qa0-x22c.google.com (mail-qa0-x22c.google.com [IPv6:2607:f8b0:400d:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 99B2865D; Wed, 26 Nov 2014 10:54:43 +0000 (UTC) Received: by mail-qa0-f44.google.com with SMTP id i13so1735256qae.3 for ; Wed, 26 Nov 2014 02:54:42 -0800 (PST) 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=eNNrkPW8fbpf0wqxXtjLxhI2wbtZPHFdlrsxQV6p4+4=; b=MOLop+/B9UVrCN3BXxg6mBZxqvWPt5ckUj0lXBhEFR3HFrwYqDmNmvLld628jI0WqO oKRm/PRihEKgGYQBsF95tTHRoL5m/yYsdxWRoMfcECTAFtu31NLzQMTBLQbSV0Oy7A1Q 4IW68gmQskB5zKvU8c9oKQqbPMixpDAQZYTQ9Jbqvah12fpQeYRsyBEe4lZfXkAJvdp6 7gY+ZsI1pT12HM3o4fxIzPgunR7gZSmYKzKp3gP4tn/7TZqIqUCXjGJIpdf5yTmTmwVv EcRSCHzNaC4qJafRjVJmk6d/0sdXL9Bf114S4LwwPugpvnhnb8TOo4g93fkScz1YE3xZ nNNg== MIME-Version: 1.0 X-Received: by 10.224.129.9 with SMTP id m9mr45095722qas.50.1416999282856; Wed, 26 Nov 2014 02:54:42 -0800 (PST) Received: by 10.140.23.242 with HTTP; Wed, 26 Nov 2014 02:54:42 -0800 (PST) In-Reply-To: <20141125225451.924a5df4bdb4753db273b8c5@ulrich-grey.de> References: <20141113125236.b16cd4e5f0e339eac0494cd4@ulrich-grey.de> <20141115143444.5ad037548e06f289d2532fb7@ulrich-grey.de> <20141119225903.81fbbc7809093a0e6e0de9d5@ulrich-grey.de> <20141120151900.a68c6d8316b96a62cb65d17a@ulrich-grey.de> <20141121115941.54d4e36b103341c3adf7eb36@ulrich-grey.de> <20141124132733.4e96b906f0d1ab69969dddd9@ulrich-grey.de> <1416840814.1147.380.camel@revolution.hippie.lan> <20141125225451.924a5df4bdb4753db273b8c5@ulrich-grey.de> Date: Wed, 26 Nov 2014 11:54:42 +0100 Message-ID: Subject: Re: Another Test Run with Alternative pmap Implementation From: Svatopluk Kraus To: Ulrich Grey Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-arm@freebsd.org, Ian Lepore 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: Wed, 26 Nov 2014 10:54:44 -0000 On Tue, Nov 25, 2014 at 10:54 PM, Ulrich Grey wrote: > Hello, > > I updated the source tree from Svatopluk Kraus and build an Image (crochet, > wandboard-quad). The kernel is compiled with ARM_NEW_PMAP: > > root@quad:/usr/home/gwgpi # uname -a > FreeBSD quad 11.0-CURRENT FreeBSD 11.0-CURRENT #0 428e9d2(master)-dirty: > Tue Nov 25 > 09:45:07 UTC 2014 > root@quad:/usr/local/DEVEL/obj/usr/local/DEVEL/STREJDA/freebsd/sys/WANDBOARD-QUAD > arm > > root@quad:/usr/home/gwgpi # sysctl vm.pmap. > vm.pmap.pv_entry_max: 1745184 > vm.pmap.shpgperproc: 200 > vm.pmap.nkpt2pg: 32 > vm.pmap.sp_enabled: 1 > vm.pmap.pte1.demotions: 22 > vm.pmap.pte1.mappings: 0 > vm.pmap.pte1.p_failures: 122 > vm.pmap.pte1.promotions: 38 > vm.pmap.pv_entry_count: 12369 > vm.pmap.pc_chunk_count: 43 > vm.pmap.pc_chunk_allocs: 1981 > vm.pmap.pc_chunk_frees: 1938 > vm.pmap.pc_chunk_tryfail: 0 > vm.pmap.pv_entry_frees: 417470 > vm.pmap.pv_entry_allocs: 429839 > vm.pmap.pv_entry_spare: 2079 > > # > Then I did: > root@quad:/usr/src # make -j20 buildworld > > # > The build hangs here (not for the first time): > > --- cpp_helpers --- > > c++ -O -pipe -I/usr/local/DEVEL/STREJDA/freebsd/contrib/atf > -Qunused-arguments -Wno-c+ > +11-extensions > -L/usr/obj/usr/local/DEVEL/STREJDA/freebsd/tmp/usr/lib/private > -rpath /usr/lib/private -o cpp_helpers > cpp_helpers.o > /usr/obj/usr/local/DEVEL/STREJDA/freebsd/lib/atf/libatf-c++/libatf-c+ > +.so /usr/obj/usr/local/DEVEL/STREJDA/freebsd/lib/atf/libatf-c/libatf-c.so > > # > I did a break into the debugger and this is the output: > [...] > Please tell me: (0) Does system hang or only the build? Can you terminate the build when it hangs by ctrl c? (1) Invariants was on or off? (2) Memory attributes for DMA buffers was VM_MEMATTR_NOCACHE or VM_MEMATTR_SO? (3) How long does the build run before it hangs? (4) Does it really hang on same place? Can you run the test with invariants on if it was off and with memory attributes for DMA buffers VM_MEMATTR_SO if it was VM_MEMATTR_NOCACHE? If it helps, set invariants off and try again. It's always worth to try it with vm.pmap.sp_enabled=0. Considering debug terminal, after you type "show all pcpu", look at output and type "where #pid" for current threads on all cpus except idle ones. For example, in sent debug output, there is only one non idle current thread on cpu #3, so it would be "where 92540". Svatopluk Kraus