cvs commit: src/sys/sys proc.h

Robert Watson rwatson at FreeBSD.org
Tue Jan 27 12:21:14 PST 2004


rwatson     2004/01/27 12:21:07 PST

  FreeBSD src repository

  Modified files:
    sys/sys              proc.h 
  Log:
  Allow the use of a stale p_stops value in STOPEVENT(), grabbing
  the proc lock only if we actually need to perform a stop.  This
  avoids two locks and unlocks of the process lock each system call,
  and wins me about 20% on a simply system call test (getuid(),
  which would otherwise require no locking).  This also has a net
  improvement of about 10MB/s on some of the SMP bandwidth tests
  I'm running.
  
  Reviewed by:    jhb
  
  Revision  Changes    Path
  1.366     +5 -3      src/sys/sys/proc.h


More information about the cvs-src mailing list