From owner-freebsd-embedded@FreeBSD.ORG Tue Aug 20 16:19:29 2013 Return-Path: Delivered-To: freebsd-embedded@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 ESMTP id 323FD548; Tue, 20 Aug 2013 16:19:29 +0000 (UTC) (envelope-from alc@rice.edu) Received: from pp2.rice.edu (proofpoint2.mail.rice.edu [128.42.201.101]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E8FA62B1B; Tue, 20 Aug 2013 16:19:28 +0000 (UTC) Received: from pps.filterd (pp2.rice.edu [127.0.0.1]) by pp2.rice.edu (8.14.5/8.14.5) with SMTP id r7KAvJjX012920; Tue, 20 Aug 2013 11:19:22 -0500 Received: from mh3.mail.rice.edu (mh3.mail.rice.edu [128.42.199.10]) by pp2.rice.edu with ESMTP id 1e96f93j21-1; Tue, 20 Aug 2013 11:19:22 -0500 X-Virus-Scanned: by amavis-2.7.0 at mh3.mail.rice.edu, auth channel Received: from adsl-216-63-78-18.dsl.hstntx.swbell.net (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) (Authenticated sender: alc) by mh3.mail.rice.edu (Postfix) with ESMTPSA id EDB96401A4; Tue, 20 Aug 2013 11:19:20 -0500 (CDT) Message-ID: <52139707.9060807@rice.edu> Date: Tue, 20 Aug 2013 11:19:19 -0500 From: Alan Cox User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/20130127 Thunderbird/17.0.2 MIME-Version: 1.0 To: sbruno@freebsd.org Subject: Re: Dlink DIR-825 B1 status [update 2] References: <1374340359.1421.3.camel@localhost> <1376975321.1445.62.camel@localhost> <1377013002.1325.6.camel@localhost> In-Reply-To: <1377013002.1325.6.camel@localhost> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Sean Bruno , "freebsd-embedded@freebsd.org" X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Aug 2013 16:19:29 -0000 On 08/20/2013 10:36, Sean Bruno wrote: > On Tue, 2013-08-20 at 01:58 -0700, Adrian Chadd wrote: >> woo! cc jeff and alan! It's a VM problem! :-) >> >> >> >> >> >> >> -adrian >> >> > > > Crash on our little mips router with head. Try this: Index: vm/vm_page.c =================================================================== --- vm/vm_page.c (revision 254571) +++ vm/vm_page.c (working copy) @@ -1927,7 +1927,7 @@ vm_page_alloc_freelist(int flind, int req) /* * Do not allocate reserved pages unless the req has asked for it. */ - mtx_lock(&vm_page_queue_free_mtx); + mtx_lock_flags(&vm_page_queue_free_mtx, MTX_RECURSE); if (cnt.v_free_count + cnt.v_cache_count > cnt.v_free_reserved || (req_class == VM_ALLOC_SYSTEM && cnt.v_free_count + cnt.v_cache_count > cnt.v_interrupt_free_min) || > >> >> Inserting a 4G disk with a 1G msdosfs partition seems to let >> me mount >> and poke at files. >> >> Inserting a 1TB disk with a "large" msdosfs partition fails >> pretty >> badly, so I'm not sure if msdosfs is sucking down all the >> memory on the >> system or we're just falling over for some unrelated reason. >> >> >> >> # mount -t msdosfs /dev/da0p1 /mnt >> MAP: No valid partition found at da0 >> MAP: No valid partition found at da0p1 >> mount_msdosfs: /dev/da0p1: Disk too big, try '-o large' mount >> option: >> Invalid argument >> # mount -t msdosfs -o large /dev/da0p1 /mnt >> panic: _mtx_lock_sleep: recursed on non-recursive mutex vm >> page free >> queue @ /home/sbruno/bsd/fbsd_head/sys/vm/vm_page.c:1930 >> >> KDB: enter: panic >> [ thread pid 4 tid 100022 ] >> Stopped at kdb_enter+0x4c: lui at,0x8039 >> db> bt >> Tracing pid 4 tid 100022 td 0x80665660 >> db_trace_thread+30 (?,?,?,?) ra c81e772800000018 sp 0 sz 0 >> 80078d3c+114 (0,?,ffffffff,?) ra c81e774000000020 sp 100000000 >> sz 1 >> 80078084+388 (?,?,?,?) ra c81e7760000000a8 sp 0 sz 0 >> db_command_loop+70 (?,?,?,?) ra c81e780800000018 sp 0 sz 0 >> 8007ab80+f4 (?,?,?,?) ra c81e7820000001a8 sp 0 sz 0 >> kdb_trap+110 (?,?,?,?) ra c81e79c800000030 sp 0 sz 0 >> trap+c24 (?,?,?,?) ra c81e79f8000000b8 sp 0 sz 0 >> MipsKernGenException+134 (0,4,802ebfe8,133) ra >> c81e7ab0000000c8 sp >> 100000001 sz 1 >> kdb_enter+4c (?,?,?,?) ra c81e7b7800000018 sp 0 sz 0 >> 80127320+ec (?,?,?,?) ra c81e7b9000000020 sp 0 sz 0 >> kassert_panic+78 (?,802f55d8,80309db8,78a) ra c81e7bb000000020 >> sp 1 sz 1 >> __mtx_lock_sleep+7c (?,?,?,?) ra c81e7bd000000028 sp 0 sz 0 >> __mtx_lock_flags+148 (?,?,?,?) ra c81e7bf800000030 sp 0 sz 0 >> vm_page_alloc_freelist+64 (?,?,?,?) ra c81e7c2800000020 sp 0 >> sz 0 >> uma_small_alloc+78 (?,?,?,?) ra c81e7c4800000020 sp 0 sz 0 >> 80276120+d4 (?,?,?,?) ra c81e7c6800000038 sp 0 sz 0 >> 80277324+224 (?,?,?,?) ra c81e7ca000000040 sp 0 sz 0 >> 80279538+68 (?,?,?,?) ra c81e7ce000000028 sp 0 sz 0 >> 802784b0+68 (83ffec60,83ff440c,?,101) ra c81e7d0800000038 sp >> 100000001 >> sz 0 >> uma_zalloc_arg+48c (?,?,?,?) ra c81e7d4000000038 sp 0 sz 0 >> vm_radix_insert+190 (806371b4,83ed4688,?,?) ra >> c81e7d7800000040 sp >> 100000001 sz 0 >> vm_page_cache+244 (?,?,?,?) ra c81e7db800000030 sp 0 sz 0 >> 80295590+a10 (?,?,?,?) ra c81e7de800000070 sp 0 sz 0 >> fork_exit+b0 (?,?,?,?) ra c81e7e5800000028 sp 0 sz 0 >> fork_trampoline+10 (?,?,?,?) ra c81e7e8000000000 sp 0 sz 0 >> pid 4 >> >> >> >