kernel - Add vm.cache_vmspaces boot-time tunable
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Mar 2011 02:19:56 +0000 (18:19 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 9 Mar 2011 02:19:56 +0000 (18:19 -0800)
commit521f81c79cb57003c483abe5964022bad01ae54c
treef3a9b3318fbe684e6baffcc95580a94d636e7f1b
parent765b1ae0159cca211559c3035641d842f28defd7
kernel - Add vm.cache_vmspaces boot-time tunable

* Add vm.cache_vmspaces boot-time tunable, defaulting to 32 objects.
  This controls how many free vmspace+pmap structures can be maintained
  in the objcache.

* Change the sysref API a bit.  mag_capacity becomes nom_cache.

Related-to: IRC conversion thesjg & vsrinivas
sys/kern/kern_sysref.c
sys/kern/vfs_lock.c
sys/sys/sysref.h
sys/vfs/devfs/devfs_core.c
sys/vm/vm_map.c