From owner-svn-src-head@FreeBSD.ORG Sat May 21 18:12:44 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DA5E106564A; Sat, 21 May 2011 18:12:44 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id DB6C58FC08; Sat, 21 May 2011 18:12:43 +0000 (UTC) Received: by gwb15 with SMTP id 15so2121746gwb.13 for ; Sat, 21 May 2011 11:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=J6VzmTOaoCS40fMaoEeZUxcMHMVNfV+Fn5YLaR4hsGU=; b=aDYwPDZaOq/pzffzcWMiEvMBhiAIkzZ5ezqyRug+PcW6WzdFN0MVZqfntlxOjhcYNG k0dIsGcEyLbwgf+nOjAAPXJYXy1STn/XhwY8LShf1PBaGTCa3+bsqqjKIW36vQqePnVO HN2gk71s5Kve8d1XyMPOkc/kQAt/cgjxLHkfE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=UFI2fRMsERE1axmcFx05Q4USRpmHGWi1dzxzmZVwijw7mvCiU1omFO9vDPrpvqv3eG +Z9A6ZhnJQ0nrv7xvB5aEGrKJKErAX+uKwdFxHEPBWm8b1PTK7FrTnAE+RwpHXad70IN 7GrUsCdQE10pi1XDSK3k4LITjlr1/M8G785+A= MIME-Version: 1.0 Received: by 10.236.183.193 with SMTP id q41mr914260yhm.80.1306001563054; Sat, 21 May 2011 11:12:43 -0700 (PDT) Sender: asmrookie@gmail.com Received: by 10.236.103.130 with HTTP; Sat, 21 May 2011 11:12:43 -0700 (PDT) In-Reply-To: <201105211743.p4LHhhwe039502@svn.freebsd.org> References: <201105211743.p4LHhhwe039502@svn.freebsd.org> Date: Sat, 21 May 2011 20:12:43 +0200 X-Google-Sender-Auth: 4hBhvgVHVydsb1ramdIQ2b506MM Message-ID: From: Attilio Rao To: Alan Cox Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r222163 - head/sys/vm X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 May 2011 18:12:44 -0000 2011/5/21 Alan Cox : > 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