Date: Tue, 30 Jun 1998 09:53:10 -0400 (EDT) From: Yee Man Chan <ymc@umich.edu> To: ben@rosengart.com Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: client-server problem Message-ID: <Pine.SOL.3.95.980630094229.25415B-100000@qbert.rs.itd.umich.edu> In-Reply-To: <Pine.GSO.3.96.980630015211.7127A-100000@echonyc.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.3.95.980630094229.25415B-100000>