Re: Kernel build fails on ARM: Cannot fork: Cannot allocate memory

From: hiren panchasara <hiren.panchasara_at_gmail.com>
Date: Mon, 1 Jul 2013 17:57:32 -0700
On Mon, Jun 24, 2013 at 8:23 PM, Jeff Roberson <jroberson_at_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_at_beaglebone:~ # cc -v
FreeBSD clang version 3.3 (tags/RELEASE_33/final 183502) 20130610
Target: armv6-unknown-freebsd10.0
Thread model: posix
root_at_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_at_beaglebone:~ #
root_at_beaglebone:~ # sysctl hw.physmem
hw.physmem: 536870912

root_at_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_at_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_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Mon Jul 01 2013 - 22:57:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:39 UTC