git: kernel - Fix crypto boots and rescue boots

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jul 12 11:54:43 PDT 2014


commit 4864d54178795d61ee7c614a053728fc9f31de23
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Jul 12 11:49:13 2014 -0700

    kernel - Fix crypto boots and rescue boots
    
    * The kernel text+data+bss is too big, the loader's 64MB heap can't fit
      it plus modules plus the initrd image any more.  Fix by reducing the
      kernel's BSS.
    
    * Reduce the BSS allocation for CPU_prvspace[] from 11MB (45056 x 256 cpus)
      to ~45056 for the BSP and dynamically allocate the globaldata space for
      the APs.  Also saves ~11MB of ram or so on normal systems.
    
    * Reduce the BSS allocation for cpu_map_entry_init[].  Only the BSP needs
      MAXCPU+1 pre-cached vm_map_entry structures.  The APs can make due with
      8 or so before the VM system comes up sufficiently to dynamically allocate
      these structures.  This saves around ~6.5MB of ram on normal systems.

Summary of changes:
 sys/ddb/db_ps.c                        |  2 +-
 sys/platform/pc64/include/globaldata.h |  2 +-
 sys/platform/pc64/x86_64/global.s      |  6 ------
 sys/platform/pc64/x86_64/machdep.c     | 18 +++++++++++++-----
 sys/platform/pc64/x86_64/mp_machdep.c  | 17 +++++++++--------
 sys/vm/vm_map.c                        | 21 +++++++++++++++++----
 6 files changed, 41 insertions(+), 25 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4864d54178795d61ee7c614a053728fc9f31de23


-- 
DragonFly BSD source repository


More information about the Commits mailing list