Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2013 17:56:31 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Jeff Roberson <jroberson@jroberson.net>
Cc:        freebsd-current@freebsd.org, freebsd-arm@freebsd.org
Subject:   Re: Kernel build fails on ARM: Cannot fork: Cannot allocate memory
Message-ID:  <CAJ-Vmo=WXXq0d%2BWvSxJd4zgRfvt0BDuyt998SfO98DQrxL8aMg@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.00.1306201350330.2005@desktop>
References:  <51C1F53B.2080502@semihalf.com> <alpine.BSF.2.00.1306200755210.2005@desktop> <alpine.BSF.2.00.1306201350330.2005@desktop>

next in thread | previous in thread | raw e-mail | index | archive | help
On 20 June 2013 16:56, Jeff Roberson <jroberson@jroberson.net> wrote:

> Just to add some more information;  On my machine with 16GB of ram the
> handful of recent UMA commits save about 20MB of kmem on boot.  There are
> 30% fewer buckets allocated.  And all of the malloc zones have similar
> amounts of cached space.  Actually the page size malloc bucket is taking up
> much less space.
>
> I don't know if the problem is unique to arm but I have tested x86 limited
> to 512MB of ram without trouble.  I will need the stats I mentioned before
> to understand what has happened.

Have you tried lower than 512MB? Like, 128MB?

I have a 128MB -HEAD VM on i386 and it's working fine but I haven't
done much digging to see how _well_ its working. I'm about to try a
64MB and 96MB VM.

I'd like to go all the way down to 32MB (obviously with a cut down
kernel, as GENERIC is pretty damned big!) and ensure that i386 isn't
behaving poorly. There are still plenty of ARM/MIPS embedded boards
that ship with 32MB (and less) RAM.

I'm going to try stable/9 on 128MB of RAM soon. I know that 9.1-REL
i386 + 128MB RAM results in a crash. Hopefully this stuff is better on
stable/9.

Thanks,



Adrian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=WXXq0d%2BWvSxJd4zgRfvt0BDuyt998SfO98DQrxL8aMg>