git: kernel - Enhance getcacheblk() (improve saturated write per

看板DFBSD_commit作者時間15年前 (2011/01/11 17:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 72d6a027d96b30c52d242ce162021efcecfe2bb9 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Tue Jan 11 01:19:55 2011 -0800 kernel - Enhance getcacheblk() (improve saturated write performance (3)). * Change getcacheblk() to use getblk() instead of findblk() when the block size is known, allowing a cached buffer to be reinstantiated from VM backing store in the MPSAFE path. Well, mostly MPSAFE, the vm_token is still acquired, but this is still much faster than what HAMMER does when the buffer is not in-cache. * This more than doubles blogbench performance w/HAMMER and further reduces concurrent read vs write conflicts. Summary of changes: sys/kern/vfs_bio.c | 39 ++++++++++++++++++++++++++++++--------- sys/sys/buf.h | 2 +- sys/vfs/hammer/hammer_vnops.c | 2 +- sys/vfs/tmpfs/tmpfs_vnops.c | 2 +- 4 files changed, 33 insertions(+), 12 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/72d6a027d96b30c52d242ce162021efcecfe2bb9 -- DragonFly BSD source repository
文章代碼(AID): #1DB2EOwO (DFBSD_commit)