From owner-freebsd-current@FreeBSD.ORG Tue Jul 2 00:57:34 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A78DC7A6; Tue, 2 Jul 2013 00:57:34 +0000 (UTC) (envelope-from hiren.panchasara@gmail.com) Received: from mail-ea0-x229.google.com (mail-ea0-x229.google.com [IPv6:2a00:1450:4013:c01::229]) by mx1.freebsd.org (Postfix) with ESMTP id 14C981BCB; Tue, 2 Jul 2013 00:57:33 +0000 (UTC) Received: by mail-ea0-f169.google.com with SMTP id h15so2449116eak.28 for ; Mon, 01 Jul 2013 17:57:32 -0700 (PDT) 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=ik6UevDXX+Oq8EqqkAUWJMEU6ZSEh6ocNmiRVQxAaW4=; b=jmYuzDHDougbMTtWGrBnHJpUHQ9UHUHKFxkNwarHl0okfq6AbODzjh1tGfEGefloko Dk8S/GY59YpLw4C/b8x403lyl/qDjzBsr0WQkJbn2LNuw4Wz42b/BFiDQDYVcpgIv8ig sRLUSCw2CLtT1K/BiVYhiI8fPxA2pCIJaRuUAOlP4CsUPSQeFMbg0hd4TPXIR5S+4epW 6FW1/r1ebj74klMadLqtLAK+T2TpoXdK+6iwYrWkNPR+PgF4NwjWYxLNYU8V2gehSTi4 r7bweJAOpRdR+RFXmHHqdml4uUanny0tEyIPQgeQ/NXw2jkcD1HMEByDlHQHH9yIubDK ohVw== MIME-Version: 1.0 X-Received: by 10.14.48.77 with SMTP id u53mr23094306eeb.154.1372726652812; Mon, 01 Jul 2013 17:57:32 -0700 (PDT) Received: by 10.14.119.203 with HTTP; Mon, 1 Jul 2013 17:57:32 -0700 (PDT) In-Reply-To: References: <51C4A067.7010203@semihalf.com> <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> Date: Mon, 1 Jul 2013 17:57:32 -0700 Message-ID: Subject: Re: Kernel build fails on ARM: Cannot fork: Cannot allocate memory From: hiren panchasara To: Jeff Roberson Content-Type: text/plain; charset=UTF-8 Cc: Konstantin Belousov , Zbyszek Bodek , freebsd-current , freebsd-arm , Ruslan Bukin X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jul 2013 00:57:34 -0000 On Mon, Jun 24, 2013 at 8:23 PM, Jeff Roberson wrote: > > 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"