git: DragonFly_RELEASE_4_6 kernel - Refactor buffer cache code in preparation for vm_page repurposing

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Jul 23 21:00:54 PDT 2016


commit e3eedc46fed7298f25e5bb5f0291ba17f90a6abe
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Jul 18 11:44:11 2016 -0700

    kernel - Refactor buffer cache code in preparation for vm_page repurposing
    
    * Keep buffer_map but no longer use vm_map_findspace/vm_map_delete to manage
      buffer sizes.  Instead, reserve MAXBSIZE of unallocated KVM for each buffer.
    
    * Refactor the buffer cache management code.  bufspace exhaustion now has
      hysteresis, bufcount works just about the same.
    
    * Start work on the repurposing code (currently disabled).

Summary of changes:
 sys/bus/cam/scsi/scsi_da.c               |   2 +-
 sys/gnu/vfs/ext2fs/ext2_readwrite.c      |   2 +-
 sys/kern/vfs_bio.c                       | 524 +++++++++++++++++--------------
 sys/kern/vfs_vnops.c                     |   2 +-
 sys/platform/pc64/x86_64/machdep.c       |  20 +-
 sys/platform/vkernel64/x86_64/autoconf.c |  14 +-
 sys/sys/buf.h                            |   4 +-
 sys/sys/param.h                          |  23 +-
 sys/vfs/devfs/devfs_vnops.c              |   2 +-
 sys/vfs/hammer/hammer_vnops.c            |   4 +-
 sys/vfs/hammer2/hammer2.h                |   2 +-
 sys/vfs/hammer2/hammer2_vnops.c          |   2 +-
 sys/vfs/isofs/cd9660/cd9660_vnops.c      |   2 +-
 sys/vfs/nfs/nfs_bio.c                    |   2 +-
 sys/vfs/ufs/ffs_alloc.c                  |   2 +-
 sys/vfs/ufs/ffs_balloc.c                 |   2 +-
 sys/vfs/ufs/ffs_subr.c                   |   2 +-
 sys/vm/vm_page.c                         |  45 +++
 sys/vm/vm_page.h                         |   2 +
 19 files changed, 366 insertions(+), 292 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e3eedc46fed7298f25e5bb5f0291ba17f90a6abe


-- 
DragonFly BSD source repository



More information about the Commits mailing list