From owner-cvs-all@FreeBSD.ORG Tue Jan 27 12:21:14 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FE9516A4CE; Tue, 27 Jan 2004 12:21:14 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09F4B43D62; Tue, 27 Jan 2004 12:21:07 -0800 (PST) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0RKL70B091232; Tue, 27 Jan 2004 12:21:07 -0800 (PST) (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0RKL7YC091228; Tue, 27 Jan 2004 12:21:07 -0800 (PST) (envelope-from rwatson) Message-Id: <200401272021.i0RKL7YC091228@repoman.freebsd.org> From: Robert Watson Date: Tue, 27 Jan 2004 12:21:07 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/sys proc.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 20:21:14 -0000 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