Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 May 2011 20:12:43 +0200
From:      Attilio Rao <attilio@freebsd.org>
To:        Alan Cox <alc@freebsd.org>
Cc:        svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org
Subject:   Re: svn commit: r222163 - head/sys/vm
Message-ID:  <BANLkTina0wF1cQh2BfrQyCWhysnxxoiDHQ@mail.gmail.com>
In-Reply-To: <201105211743.p4LHhhwe039502@svn.freebsd.org>
References:  <201105211743.p4LHhhwe039502@svn.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2011/5/21 Alan Cox <alc@freebsd.org>:
> Author: alc
> Date: Sat May 21 17:43:43 2011
> New Revision: 222163
> URL: http://svn.freebsd.org/changeset/base/222163
>
> Log:
> =C2=A01. Prior to r214782, UMA did not support multipage allocations befo=
re
> =C2=A0uma_startup2() was called. =C2=A0Thus, setting the variable "booted=
" to true in
> =C2=A0uma_startup() was ok on machines with UMA_MD_SMALL_ALLOC defined, b=
ecause
> =C2=A0any allocations made after uma_startup() but before uma_startup2() =
could be
> =C2=A0satisfied by uma_small_alloc(). =C2=A0Now, however, some multipage =
allocations
> =C2=A0are necessary before uma_startup2() just to allocate zone structure=
s on
> =C2=A0machines with a large number of processors. =C2=A0Thus, a Boolean c=
an no longer
> =C2=A0effectively describe the state of the UMA allocator. =C2=A0Instead,=
 make "booted"
> =C2=A0have three values to describe how far initialization has progressed=
. =C2=A0This
> =C2=A0allows multipage allocations to continue using startup_alloc() unti=
l
> =C2=A0uma_startup2(), but single-page allocations may begin using
> =C2=A0uma_small_alloc() after uma_startup().

Thanks.

Attilio


--=20
Peace can only be achieved by understanding - A. Einstein



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTina0wF1cQh2BfrQyCWhysnxxoiDHQ>