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

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Aug 16 18:40:15 PDT 2009


commit 3e58344037c4372f07f8c3a946a5d2a07d9c6a11
Author: Matthew Dillon <dillon at 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





More information about the Commits mailing list