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

Hiten Pandya hmp at
Thu Jul 7 13:29:14 PDT 2005

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 
  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 at 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

More information about the Commits mailing list