git: kernel - Finish implementing PG_RAM / pipelined mmap operation

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Jan 17 18:02:30 PST 2010


commit 1c48c95257b6b028b6cd5f31af60e0d545e951bc
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Jan 17 17:53:47 2010 -0800

    kernel - Finish implementing PG_RAM / pipelined mmap operation
    
    * Finish implementing the PG_RAM read-ahead mark code.  This code
      allows the VM system to generate pipelining faults when reading a
      memory mapped file sequentially.
    
      This allows programs which scan files via mmap() to max-out the I/O system,
      similar to read().  Before this change programs using mmap() could not get
      better then ~70-80% disk utilization for sequential I/O.
    
      This commit passes the sequential access flag through to the VOP_GETPAGES
      code which then adjusts the sequential access heuristic in the ioflags
      accordingly.

Summary of changes:
 sys/kern/vfs_default.c          |    2 +-
 sys/kern/vfs_vopops.c           |    3 ++-
 sys/sys/vfsops.h                |    7 ++++---
 sys/vfs/gnu/ext2fs/ext2_vnops.c |    7 +++++--
 sys/vfs/nwfs/nwfs_io.c          |    2 +-
 sys/vfs/ufs/ufs_readwrite.c     |    7 ++++---
 sys/vfs/union/union_vnops.c     |    5 +++--
 sys/vm/vnode_pager.c            |    6 +++---
 sys/vm/vnode_pager.h            |    2 +-
 9 files changed, 24 insertions(+), 17 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1c48c95257b6b028b6cd5f31af60e0d545e951bc


-- 
DragonFly BSD source repository





More information about the Commits mailing list