git: HAMMER - Add vfs.hammer.yield_check, yield on cpu intensive

看板DFBSD_commit作者時間16年前 (2009/08/17 10:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
commit 3e58344037c4372f07f8c3a946a5d2a07d9c6a11 Author: Matthew Dillon <dillon@apollo.backplane.com> Date: Sun Aug 16 16:18:11 2009 -0700 HAMMER - Add vfs.hammer.yield_check, yield on cpu intensive loops * When running in the kernel HAMMER can wind up cpu-bound. This code allows it to yield to other processes during these periods. This is a bit of a hack and may undergo further development. * Default check for yield every 16 B-tree iterations. Summary of changes: sys/vfs/hammer/hammer.h | 2 ++ sys/vfs/hammer/hammer_btree.c | 13 ++++++++++++- sys/vfs/hammer/hammer_flusher.c | 5 +++++ sys/vfs/hammer/hammer_vfsops.c | 3 +++ 4 files changed, 22 insertions(+), 1 deletions(-) http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3e58344037c4372f07f8c3a946a5d2a07d9c6a11 -- DragonFly BSD source repository
文章代碼(AID): #1AYBdb0x (DFBSD_commit)