From owner-freebsd-hackers Tue Jun 30 06:53:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA24526 for freebsd-hackers-outgoing; Tue, 30 Jun 1998 06:53:30 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from donkeykong.rs.itd.umich.edu (smtp@donkeykong.rs.itd.umich.edu [141.211.63.19]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA24467 for ; Tue, 30 Jun 1998 06:53:14 -0700 (PDT) (envelope-from ymc@umich.edu) Received: from qbert.rs.itd.umich.edu (smtp@qbert.rs.itd.umich.edu [141.211.63.94]) by donkeykong.rs.itd.umich.edu (8.8.8/4.3-mailhub) with ESMTP id JAA12207; Tue, 30 Jun 1998 09:53:11 -0400 (EDT) Received: from localhost (ymc@localhost) by qbert.rs.itd.umich.edu (8.8.8/5.1-client) with SMTP id JAA27422; Tue, 30 Jun 1998 09:53:10 -0400 (EDT) Date: Tue, 30 Jun 1998 09:53:10 -0400 (EDT) From: Yee Man Chan X-Sender: ymc@qbert.rs.itd.umich.edu To: ben@rosengart.com cc: freebsd-hackers@FreeBSD.ORG Subject: Re: client-server problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 30 Jun 1998, Snob Art Genre wrote: > On Mon, 29 Jun 1998, Yee Man Chan wrote: > > > Here is how the program performs under FreeBSD 3.0-CURRENT with different > > n: > > 1-100 Very fast > > 101-207 Very Slow (This range is the strangest I've ever seen) > > 208-1024 Very fast (just like 1-100) > > >1024 strange errors like unknown host or connection timedout > > > > Any clue? > > 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? Yee Man P.S. Did I send the email attached with my server-client code? You should be able to get it and show me where my bugs are. If there is no files being attached, tell me and I will put the source code in the email. > > > > Ben > > "You have your mind on computers, it seems." > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message