From owner-freebsd-hackers Tue Jan 25 13:48:32 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from bomber.avantgo.com (ws1.avantgo.com [207.214.200.194]) by hub.freebsd.org (Postfix) with ESMTP id C0BFD1539E for ; Tue, 25 Jan 2000 13:48:02 -0800 (PST) (envelope-from scott@avantgo.com) Received: from river ([10.0.128.30]) by bomber.avantgo.com (Netscape Messaging Server 3.5) with SMTP id 213; Tue, 25 Jan 2000 13:44:05 -0800 Message-ID: <0f0f01bf677d$b307a9a0$1e80000a@avantgo.com> From: "Scott Hess" To: "Alfred Perlstein" Cc: References: <01b601bf6696$60701930$1e80000a@avantgo.com> <200001241939.LAA91219@apollo.backplane.com> <0be801bf6715$601423d0$1e80000a@avantgo.com> <200001251752.JAA04953@apollo.backplane.com> <20000125120506.W26520@fw.wintelcom.net> Subject: Re: Performance issue with rfork() and single socketpairs versus multiple socketpairs. Date: Tue, 25 Jan 2000 13:46:56 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Alfred Perlstein" wrote: > I think you probably want to experiment with pools attached to the > pipe, and you ought to be using pipe rather than socketpair. My tests indicate that pipe performance in this case is identical to socketpair performance. Perhaps because I'm sending so little data over the wire (in the real thing, most of the data is in shared memory, the pipes just provide the queuing). > Meaning > have a group of children share a pipe, but not more than N, where N > is where you start to see performance problems. Actually, the hit comes rather quickly, 8 procs per pipe causes half the hit, even 4 is substantial. In any case, once I've gone away from having one pipe, I've already lost the advantage and might as well have a pipe per worker. I'd much rather manage one pipe than 32 pipes, but managing 4 pipes versus 32 pipes is less compelling. Thanks, scott To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message