DragonFly commits List (threaded) for 2009-08
DragonFly BSD
DragonFly commits List (threaded) for 2009-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 16 Aug 2009 18:38:12 -0700 (PDT)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]