git: kernel - Finish implementing PG_RAM / pipelined mmap operat

看板DFBSD_commit作者時間16年前 (2010/01/18 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 1c48c95257b6b028b6cd5f31af60e0d545e951bc Author: Matthew Dillon <dillon@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
文章代碼(AID): #1BKyWeLQ (DFBSD_commit)