Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jul 2013 17:57:32 -0700
From:      hiren panchasara <hiren.panchasara@gmail.com>
To:        Jeff Roberson <jroberson@jroberson.net>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, Zbyszek Bodek <zbb@semihalf.com>, freebsd-current <freebsd-current@freebsd.org>, freebsd-arm <freebsd-arm@freebsd.org>, Ruslan Bukin <br@bsdpad.com>
Subject:   Re: Kernel build fails on ARM: Cannot fork: Cannot allocate memory
Message-ID:  <CALCpEUHp0Tp-vFW3SdsWmkXSyvdE5wxcSui3LaZH6nYapSd=CA@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1306241719550.95115@desktop>
References:  <alpine.BSF.2.00.1306201350330.2005@desktop> <51C4A067.7010203@semihalf.com> <alpine.BSF.2.00.1306221636360.43796@desktop> <20130623065706.GV91021@kib.kiev.ua> <20130623083220.GA41511@mail.bsdpad.com> <20130623143248.GA91021@kib.kiev.ua> <20130623144346.GA69378@mail.bsdpad.com> <20130623161617.GC91021@kib.kiev.ua> <20130623164425.GA77339@mail.bsdpad.com> <20130623165040.GD91021@kib.kiev.ua> <20130623170507.GA79364@mail.bsdpad.com> <alpine.BSF.2.00.1306241719550.95115@desktop>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 24, 2013 at 8:23 PM, Jeff Roberson <jroberson@jroberson.net> wrote:
<skip>
>
> Would any of the arm users be interested in testing a larger patch that
> changes the way the kernel allocations KVA?  It also has some UMA code that
> lessens kernel memory utilization.
>
> http://people.freebsd.org/~jeff/vmem.diff
>
> Any reports would be helpful.  Is there any ETA on getting stack tracing
> fixed?  I suspect the pmap recursion encountered with Kostik's patch exist
> in the current kernel.  The other changes in this patch my fix that as well.

I know mine is not a failed case but I still went ahead and gave your
diffs a whirl.
I have pretty much working beaglebone black running 10.0-CURRENT
FreeBSD 10.0-CURRENT #0 r252049M:

Applied your patch and rebuilt the kernel. Everything seem sane right now.

For reference:

root@beaglebone:~ # cc -v
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: armv6-unknown-freebsd10.0
Thread model: posix
root@beaglebone:~ # df -k
Filesystem     1024-blocks    Used   Avail Capacity  Mounted on
/dev/mmcsd0s2a    13129204 6459024 5619844    53%    /
devfs                    1       1       0   100%    /dev
/dev/mmcsd0s1         2020     660    1359    33%    /boot/msdos
/dev/md0             29340      24   26972     0%    /tmp
/dev/md1             14492      64   13272     0%    /var/log
/dev/md2              4508       8    4140     0%    /var/tmp
root@beaglebone:~ #
root@beaglebone:~ # sysctl hw.physmem
hw.physmem: 536870912

root@beaglebone:~ # dmesg | less
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2013 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.0-CURRENT #0: Wed Jun 26 09:51:05 UTC 2013
    root@beaglebone:/usr/obj/usr/src/sys/BEAGLEBONE arm
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
WARNING: WITNESS option enabled, expect reduced performance.
CPU: Cortex A8-r3 rev 2 (Cortex-A core)
 Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
 WB disabled EABT branch prediction enabled
LoUU:2 LoC:2 LoUIS:1
Cache level 1:
 32KB/64B 4-way data cache WT WB Read-Alloc
 32KB/64B 4-way instruction cache Read-Alloc
Cache level 2:
 256KB/64B 8-way unified cache WT WB Read-Alloc Write-Alloc
real memory  = 536870912 (512 MB)
avail memory = 511758336 (488 MB)
Texas Instruments AM3358 Processor, Revision ES1.1


Anything in particular you want me to test other than, it seems to be
working fine for me?

Thanks,
Hiren

>
> Thanks,
> Jeff
>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"



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