git: kernel - Record token & mplock collisions in thread->td_wmesg

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Dec 11 00:43:37 PST 2010


commit 2a9d466332523e6c2d4eb9fd0495ec2f79314658
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Dec 11 00:38:45 2010 -0800

    kernel - Record token & mplock collisions in thread->td_wmesg
    
    * Record token & mplock collisions which the lwkt thread schedule spins
      on in the thread wmesg, which will show up in ps, top, etc.
    
      This makes it a lot more obvious when a thread is stalling on a token
      or the mplock and is generally superior to the old per-cpu collision
      record.

Summary of changes:
 sys/kern/lwkt_thread.c |   26 +++++---------------------
 sys/kern/lwkt_token.c  |    5 ++---
 sys/sys/mplock2.h      |   13 +++++++++++++
 sys/sys/thread.h       |    2 +-
 4 files changed, 21 insertions(+), 25 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2a9d466332523e6c2d4eb9fd0495ec2f79314658


-- 
DragonFly BSD source repository





More information about the Commits mailing list