cvs commit: src/sys/kern sys_pipe.c
Robert Watson
rwatson at FreeBSD.org
Fri Jul 23 07:11:04 PDT 2004
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
More information about the cvs-src
mailing list