Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Jan 2004 12:21:07 -0800 (PST)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/sys proc.h
Message-ID:  <200401272021.i0RKL7YC091228@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401272021.i0RKL7YC091228>