Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Aug 2013 11:19:19 -0500
From:      Alan Cox <alc@rice.edu>
To:        sbruno@freebsd.org
Cc:        Sean Bruno <sean_bruno@yahoo.com>, "freebsd-embedded@freebsd.org" <freebsd-embedded@freebsd.org>
Subject:   Re: Dlink DIR-825 B1 status [update 2]
Message-ID:  <52139707.9060807@rice.edu>
In-Reply-To: <1377013002.1325.6.camel@localhost>
References:  <1374340359.1421.3.camel@localhost> <1376975321.1445.62.camel@localhost> <CAJ-Vmom1GO=PUTysV0BX6YfeFUrvFdCSc1hCX=-yzA=EV5OYjQ@mail.gmail.com> <1377013002.1325.6.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
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
>>
>>
> <bcc jeff@ alc@>
>
> 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
>>
>>
>>
>





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52139707.9060807>