From owner-freebsd-hackers Tue Jun 30 09:55:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA21877 for freebsd-hackers-outgoing; Tue, 30 Jun 1998 09:55:27 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mail-out2.apple.com (mail-out2.apple.com [17.254.0.51]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA21857 for ; Tue, 30 Jun 1998 09:55:19 -0700 (PDT) (envelope-from justin@lilith.apple.com) Received: from mailgate.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out2.apple.com (8.8.5/8.8.5) with ESMTP id JAA30358 for ; Tue, 30 Jun 1998 09:49:35 -0700 Received: from scv2.apple.com (scv2.apple.com [17.128.100.140]) by mailgate.apple.com (mailgate.apple.com2.0.15) with ESMTP id for ; Tue, 30 Jun 1998 09:48:09 -0700 Received: from lilith.apple.com (lilith.apple.com [17.202.41.78]) by scv2.apple.com (8.8.5/8.8.5) with ESMTP id JAA23980 for ; Tue, 30 Jun 1998 09:48:08 -0700 Received: (justin@localhost) by lilith.apple.com (8.6.9/A/UX 3.1) id JAA13643; Tue, 30 Jun 1998 09:48:48 -0700 Date: Tue, 30 Jun 1998 09:48:48 -0700 From: "Justin C. Walker" Message-Id: <199806301648.JAA13643@lilith.apple.com> To: freebsd-hackers@FreeBSD.ORG In-Reply-To: Yee Man Chan's message of Tue, 30 Jun 1998 09:53:10 -0400 (EDT) Subject: Re: client-server problem Reply-To: justin@apple.com Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG /* * > I don't know about your >1024 problems, but the rest is explainable. It * > has to do with the way memory is allocated in the kernel for network * > i/o. I don't remember the exact details, but it's all put forth quite * > clearly in W. Richard Stevens' _TCP/IP Illustrated Vol. 3_, with graphs * > and everything. * > * > Are you using TCP or UDP? What kind of link are you going over? * * Thanks for your response. I will consult Stevens' book. * * I am using TCP. I don't think anything is going over a link. The program * assumes localhost communication, so nothing should be go over a link. * * I run the program in SunOS but unlike FreeBSD, 101<=n<=207 is just as fast * as <100 and >207 <1025. Why? Is it because SunOS and FreeBSD have * different memory allocated in the kernel for network i/o? */ Could be that SunOS uses 256-byte mbufs rather than FreeBSD's 128. Unless this is SunOS 5 (Solaris), and then the buffering scheme is completely different (but with possibly similar profiles; I've never looked at Solaris). I'd think that the crossover points for 256-byte mbufs would be <= 228, 229 - 464, > 1024, but here, the details really matter. Regards, Justin Justin C. Walker, Curmudgeon-At-Large * Institute for General Semantics | They sentenced me to 20 years Apple CoreOS Networking | of boredom Apple Computer, Inc. | For trying to change the system 2 Infinite Loop | from within Cupertino, CA 95014 | LC *---------------------------------------*------------------------------------* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message