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

cvs commit: src/sys/sys globaldata.h thread2.h


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 24 Jul 2003 22:51:20 -0700 (PDT)

dillon      2003/07/24 22:51:20 PDT

  Modified files:
    sys/sys              globaldata.h thread2.h 
  Log:
  Performance cleanup.  Greatly reduce the number of %fs prefixed globaldata
  lookups by taking advantage of the fact that DragonFly does not preemptively
  switch threads to other cpus to cache the globaldata pointer, to pass the
  current thread to certain inlines rather then force them to reload it from
  %fs, and to use td->td_gd to access the globaldata pointer when td is
  available rather then mycpu.
  
  This coupled with the curthread optimization done in a prior commit improved
  syscall overheads by 60-100ns (about 7%).
  
  Revision  Changes    Path
  1.13      +2 -0      src/sys/sys/globaldata.h
  1.9       +27 -6     src/sys/sys/thread2.h




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