git: kernel - Tag vm_map_entry structure, slight optimization to zalloc, misc.

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Dec 16 19:46:17 PST 2016


commit 3091de50a4af0c2f9ee0ed293d2400238de0c48a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Dec 16 19:39:46 2016 -0800

    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.

Summary of changes:
 sys/dev/disk/dm/snapshot/dm_target_snapshot.c | 13 +++++---
 sys/dev/drm/drm_scatter.c                     |  6 ++--
 sys/dev/drm/i915/i915_gem.c                   |  2 +-
 sys/dev/drm/include/linux/vmalloc.h           |  3 +-
 sys/dev/drm/ttm/ttm_bo_util.c                 |  7 ++--
 sys/kern/imgact_aout.c                        |  3 ++
 sys/kern/imgact_elf.c                         |  8 ++---
 sys/kern/imgact_gzip.c                        |  3 +-
 sys/kern/init_main.c                          |  4 +--
 sys/kern/kern_slaballoc.c                     |  4 +--
 sys/kern/link_elf_obj.c                       |  4 +--
 sys/kern/sys_pipe.c                           |  4 +--
 sys/kern/sys_process.c                        |  8 ++---
 sys/kern/sysv_shm.c                           |  2 +-
 sys/kern/vfs_bio.c                            |  3 +-
 sys/netbt/bt_proto.c                          |  7 ++--
 sys/netbt/rfcomm_session.c                    |  3 +-
 sys/platform/pc64/x86_64/efirt.c              |  1 +
 sys/platform/pc64/x86_64/machdep.c            |  3 +-
 sys/platform/pc64/x86_64/mp_machdep.c         | 11 ++++---
 sys/platform/pc64/x86_64/pmap.c               | 11 ++++---
 sys/platform/vkernel64/platform/pmap.c        | 13 +++++---
 sys/platform/vkernel64/x86_64/autoconf.c      | 12 +++++--
 sys/platform/vkernel64/x86_64/mp.c            |  6 ++--
 sys/vfs/hammer2/hammer2_bulkfree.c            |  2 +-
 sys/vfs/procfs/procfs_mem.c                   |  2 +-
 sys/vm/swap_pager.c                           |  3 +-
 sys/vm/vm_contig.c                            |  2 +-
 sys/vm/vm_extern.h                            | 21 ++++++------
 sys/vm/vm_kern.c                              | 45 +++++++++++++-------------
 sys/vm/vm_map.c                               | 24 +++++++-------
 sys/vm/vm_map.h                               | 46 +++++++++++++++++++++++++--
 sys/vm/vm_mmap.c                              | 12 +++----
 sys/vm/vm_object.c                            |  2 +-
 sys/vm/vm_pager.c                             |  7 ++--
 sys/vm/vm_unix.c                              |  4 +--
 sys/vm/vm_zone.c                              | 30 +++++++++--------
 sys/vm/vm_zone.h                              |  5 ++-
 38 files changed, 215 insertions(+), 131 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3091de50a4af0c2f9ee0ed293d2400238de0c48a


-- 
DragonFly BSD source repository



More information about the Commits mailing list