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

cvs commit: src/sys/sys thread.h thread2.h src/sys/kern lwkt_token.c lwkt_thread.c


From: Hiten Pandya <hmp@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Jul 2005 13:28:26 -0700 (PDT)

hmp         2005/07/07 13:28:26 PDT

DragonFly src repository

  Modified files:
    sys/sys              thread.h thread2.h 
    sys/kern             lwkt_token.c lwkt_thread.c 
  Log:
  Add counters for recording Token/MPlock contention, this would help in
  determining the number of times contention has occured in the system.
  
  The contention counters have been made 64-bit quantities because they
  are situated within a tight-loop.
  
  KTR tracepoints have been added for marking start and stop of a token's
  contention.  New field tr_flags added to struct lwkt_tokref.  By adding
  tracepoints in lwkt_chktokens(9),  it gives us interesting data on MP
  machines when it indirectly sends a passive IPI to the remote CPU for
  gaining ownership of a token.  It would be interesting to see KTR dumps
  for a 4-CPU or an 8-CPU system.
  
  Discussed-with: 	Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
  
  Revision  Changes    Path
  1.64      +6 -0      src/sys/sys/thread.h
  1.21      +1 -0      src/sys/sys/thread2.h
  1.22      +18 -0     src/sys/kern/lwkt_token.c
  1.76      +20 -3     src/sys/kern/lwkt_thread.c


http://www.dragonflybsd.org/cvsweb/src/sys/sys/thread.h.diff?r1=1.63&r2=1.64&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/thread2.h.diff?r1=1.20&r2=1.21&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/lwkt_token.c.diff?r1=1.21&r2=1.22&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/lwkt_thread.c.diff?r1=1.75&r2=1.76&f=u



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