kernel - Greatly reduce kernel memory use for x86_64
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 28 Sep 2010 22:42:55 +0000 (15:42 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 28 Sep 2010 22:42:55 +0000 (15:42 -0700)
commit722871d34e51e1c7f2e4faec1ae2bca0e3a8f18a
treeaaef2e2cb1233d7ca6c26aef218cf57f5af9bebe
parent72fe41d3701e05b3331d41074695643dd7afecbc
kernel - Greatly reduce kernel memory use for x86_64

* Remove the kmemusage array entirely and instead store ku_pagecnt
  in the vm_page structure.

  This allows x86_64 to boot with 128G of KVM without eating tons of
  real memory, in addition to another recent commit which reduced
  real memory use w/ large KVM spaces.

Reported-by: John Marino
sys/kern/kern_slaballoc.c
sys/platform/pc32/i386/pmap.c
sys/platform/pc64/x86_64/pmap.c
sys/platform/vkernel/platform/pmap.c
sys/platform/vkernel64/platform/pmap.c
sys/sys/malloc.h
sys/vm/pmap.h
sys/vm/vm_page.h