Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 May 2011 17:43:43 +0000 (UTC)
From:      Alan Cox <alc@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/vm uma_core.c uma_int.h
Message-ID:  <201105211744.p4LHi0ql031025@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
alc         2011-05-21 17:43:43 UTC

  FreeBSD src repository

  Modified files:
    sys/vm               uma_core.c uma_int.h 
  Log:
  SVN rev 222163 on 2011-05-21 17:43:43Z by alc
  
  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().
  
  2. With the aforementioned change, only a modest increase in boot pages is
  necessary to boot UMA on a large number of processors.
  
  3. Retire UMA_MD_SMALL_ALLOC_NEEDS_VM.  It has only been used between
  r182028 and r204128.
  
  Reviewed by:    attilio [1], nwhitehorn [3]
  Tested by:      sbruno
  
  Revision  Changes    Path
  1.170     +8 -7      src/sys/vm/uma_core.c
  1.46      +1 -1      src/sys/vm/uma_int.h



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