kernel - Tag vm_map_entry structure, slight optimization to zalloc, misc.
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 17 Dec 2016 03:39:46 +0000 (19:39 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 17 Dec 2016 03:39:46 +0000 (19:39 -0800)
commit3091de50a4af0c2f9ee0ed293d2400238de0c48a
treef4cb1c201f25839bf72cadfe047a8adbcc8f8e51
parent6fe294aeab8ee15cd7a543c950ed3d644755dc18
kernel - Tag vm_map_entry structure, slight optimization to zalloc, misc.

* Tag the vm_map_entry structure, allowing debugging programs to
  break-down how KMEM is being used more easily.

  This requires an additional argument to vm_map_find() and most
  kmem_alloc*() functions.

* Remove the page chunking parameter to zinit() and zinitna().  It was
  only being used degeneratively.  Increase the chunking from one page
  to four pages, which will reduce the amount of vm_map_entry spam in
  the kernel_map.

* Use atomic ops when adjusting zone_kern_pages.
38 files changed:
sys/dev/disk/dm/snapshot/dm_target_snapshot.c
sys/dev/drm/drm_scatter.c
sys/dev/drm/i915/i915_gem.c
sys/dev/drm/include/linux/vmalloc.h
sys/dev/drm/ttm/ttm_bo_util.c
sys/kern/imgact_aout.c
sys/kern/imgact_elf.c
sys/kern/imgact_gzip.c
sys/kern/init_main.c
sys/kern/kern_slaballoc.c
sys/kern/link_elf_obj.c
sys/kern/sys_pipe.c
sys/kern/sys_process.c
sys/kern/sysv_shm.c
sys/kern/vfs_bio.c
sys/netbt/bt_proto.c
sys/netbt/rfcomm_session.c
sys/platform/pc64/x86_64/efirt.c
sys/platform/pc64/x86_64/machdep.c
sys/platform/pc64/x86_64/mp_machdep.c
sys/platform/pc64/x86_64/pmap.c
sys/platform/vkernel64/platform/pmap.c
sys/platform/vkernel64/x86_64/autoconf.c
sys/platform/vkernel64/x86_64/mp.c
sys/vfs/hammer2/hammer2_bulkfree.c
sys/vfs/procfs/procfs_mem.c
sys/vm/swap_pager.c
sys/vm/vm_contig.c
sys/vm/vm_extern.h
sys/vm/vm_kern.c
sys/vm/vm_map.c
sys/vm/vm_map.h
sys/vm/vm_mmap.c
sys/vm/vm_object.c
sys/vm/vm_pager.c
sys/vm/vm_unix.c
sys/vm/vm_zone.c
sys/vm/vm_zone.h