From owner-cvs-src@FreeBSD.ORG Fri Jul 23 14:11:04 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A758C16A4CE; Fri, 23 Jul 2004 14:11:04 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89B7843D1D; Fri, 23 Jul 2004 14:11:04 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i6NEB4wd044805; Fri, 23 Jul 2004 14:11:04 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i6NEB4M9044804; Fri, 23 Jul 2004 14:11:04 GMT (envelope-from rwatson) Message-Id: <200407231411.i6NEB4M9044804@repoman.freebsd.org> From: Robert Watson Date: Fri, 23 Jul 2004 14:11:04 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern sys_pipe.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jul 2004 14:11:04 -0000 rwatson 2004-07-23 14:11:04 UTC FreeBSD src repository Modified files: sys/kern sys_pipe.c Log: Don't perform pipe endpoint locking during pipe_create(), as the pipe can't yet be referenced by other threads. In microbenchmarks, this appears to reduce the cost of pipe();close();close() on UP by 10%, and SMP by 7%. The vast majority of the cost of allocating a pipe remains VM magic. Suggested by: silby Revision Changes Path 1.173 +20 -11 src/sys/kern/sys_pipe.c