kernel - Fix crypto boots and rescue boots
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 12 Jul 2014 18:49:13 +0000 (11:49 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 12 Jul 2014 18:49:13 +0000 (11:49 -0700)
commit4864d54178795d61ee7c614a053728fc9f31de23
tree4d44ea7a28b0da0189d0a5f8584d0117cf496409
parent55676870b8941211db5f447304434df6a9f4725b
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.
sys/ddb/db_ps.c
sys/platform/pc64/include/globaldata.h
sys/platform/pc64/x86_64/global.s
sys/platform/pc64/x86_64/machdep.c
sys/platform/pc64/x86_64/mp_machdep.c
sys/vm/vm_map.c