svn commit: r222163 - head/sys/vm
Attilio Rao
attilio at freebsd.org
Sat May 21 18:12:44 UTC 2011
2011/5/21 Alan Cox <alc at freebsd.org>:
> Author: alc
> Date: Sat May 21 17:43:43 2011
> New Revision: 222163
> URL: http://svn.freebsd.org/changeset/base/222163
>
> Log:
> 1. Prior to r214782, UMA did not support multipage allocations before
> uma_startup2() was called. Thus, setting the variable "booted" to true in
> uma_startup() was ok on machines with UMA_MD_SMALL_ALLOC defined, because
> any allocations made after uma_startup() but before uma_startup2() could be
> satisfied by uma_small_alloc(). Now, however, some multipage allocations
> are necessary before uma_startup2() just to allocate zone structures on
> machines with a large number of processors. Thus, a Boolean can no longer
> effectively describe the state of the UMA allocator. Instead, make "booted"
> have three values to describe how far initialization has progressed. This
> allows multipage allocations to continue using startup_alloc() until
> uma_startup2(), but single-page allocations may begin using
> uma_small_alloc() after uma_startup().
Thanks.
Attilio
--
Peace can only be achieved by understanding - A. Einstein
More information about the svn-src-head
mailing list