]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't perform pipe endpoint locking during pipe_create(), as the pipe
authorrwatson <rwatson@FreeBSD.org>
Fri, 23 Jul 2004 14:11:04 +0000 (14:11 +0000)
committerrwatson <rwatson@FreeBSD.org>
Fri, 23 Jul 2004 14:11:04 +0000 (14:11 +0000)
commit882656d16c73f00727eb12c05f01ab01e471d8b1
tree973f5e66bd2f89a5955fe2f0d899748ae35a4339
parent3654de90d4d4834214e36df0573e0872900e114c
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
sys/kern/sys_pipe.c