Date: Fri, 23 Jul 2004 14:11:04 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern sys_pipe.c Message-ID: <200407231411.i6NEB4M9044804@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407231411.i6NEB4M9044804>
