Re: close() slow on socketpairs?

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Tue Oct 17 2000 - 06:28:19 EST


> On both 2.2.14 and 2.2.16, pipe and socketpair are nice and speedy.
> close() is fine for pipes, but at 8000 socketpairs, each call to close()
> takes 14 *milliseconds* at 100% cpu usage. What's up with that?

Welcome to the world of mark sweep garbage collection. The folks who allowed
file handle passing on AF_UNIX sockets dug a very large hole and jumped down it

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:11 EST