cvs commit: src/sys/vm uma_int.h

Alan Cox alc at cs.rice.edu
Fri Jun 17 17:47:00 GMT 2005


On Thu, Jun 16, 2005 at 11:39:14PM -0700, David O'Brien wrote:
> On Thu, Jun 16, 2005 at 05:06:34PM +0000, Alan Cox wrote:
> > alc         2005-06-16 17:06:34 UTC
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:
> >     sys/vm               uma_int.h 
> >   Log:
> >   Increase UMA_BOOT_PAGES to prevent a crash during initialization.  See
> >   http://docs.FreeBSD.org/cgi/mid.cgi?42AD8270.8060906 for a detailed
> >   description of the crash.
> 
> Today, I finally got a traceback of my insta-reboots after marius' atkbd
> commit (2005-06-10 20:56:38 UTC) and it was exactly this same traceback.
> Funny that such an innocuous commit started causing my 'i386' workstation
> to panic.  We were that much on the edge of having enough UMA_BOOT_PAGES?
> Is 48 enough?

I recall that 42 was the minimum to fix Eric's panic.  I chose 48 so
that we would have some space to spare.

> It looks like the code attempts to help the poor user out:
>     sys/vm/uma_core.c:911:  panic("UMA: Increase UMA_BOOT_PAGES");
> But why wasn't that being triggered in Eric Anderson's case and mine?

My untested understanding of this problem has two parts. (1) UMA has
completed its own internal boot sequence.  Hence, the Boolean "booted"
is set to TRUE and the above panic does not occur.  (2) However, the
VM system has not completed its overall initialization.  Specifically,
the call to vm_init2() has not been performed.  Hence, the correct
allocator for the kernel address space's map entry zone has not been
set and any attempt to allocate a kernel map entry that is not
satisfiable from boot pages results in a panic.

Alan


More information about the cvs-src mailing list